Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random matrices #36

Closed
lindahua opened this issue Dec 30, 2012 · 0 comments
Closed

Random matrices #36

lindahua opened this issue Dec 30, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@lindahua
Copy link
Owner

Introduce a set of random matrix expressions

template<class Engine, class Distribution>  class random_expr;

Distr distr;
rand_mat( m, n,  distr, eng ); // ==> random_expr<Eng, Distr>
rand_mat( shape, distr, eng );

randu<T> ( m, n, eng );  // ==> random_expr<Eng, uniform_real_distribution<T> > 
randu<T> ( shape, eng ); 

randn<T> ( m, n, deg ); // ==> random_expr<Eng, normal_distribution<T> >
randn<T> ( shape, eng );

Notes:

  • The value type should be inferrable from Distribution at compile-time.
  • random_expr should implement IEWiseMatrix
@ghost ghost assigned lindahua Dec 30, 2012
@lindahua lindahua closed this as completed Jan 6, 2013
@lindahua lindahua reopened this Jan 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant