def gaussian_random_matrix(n_components, n_features, random_state=None):
 _check_input_size(n_components, n_features)
 rng = check_random_state(random_state)
 components = rng.normal(loc=0.0, scale=(1.0 / np.sqrt(n_components)), size=(n_components, n_features))
 return components

def gaussian_random_matrix ( n_components , n_features , random_state = None ) : _check_input_size ( n_components , n_features ) rng = check_random_state ( random_state ) components = rng . normal ( loc = 0.0 , scale = ( 1.0 / np . sqrt ( n_components ) ) , size = ( n_components , n_features ) ) return components
generate a dense gaussian random matrix .