You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This is a QOL feature to make it simple to create a matrix that is filled with the same value. So you want to create a 10 x 10 matrix filled with the value 5. This feature would allow one to write:
let a = scale(5.0)*Mat::<f64>::ones(10,10);
Rather than:
let a =Mat::<f64>::from_fn(10,10, |_, _| 5.0)
Or
letmut a = Mat::<f64>::zeros(10,10);
a.fill(5.0);
Describe the solution you'd like
A new matrix creation method called "ones" which creates a matrix of specified dimensions filled with ones.
Describe alternatives you've considered
This is a QOL feature. There are certainly options to do the same thing outlined above.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
This is a QOL feature to make it simple to create a matrix that is filled with the same value. So you want to create a 10 x 10 matrix filled with the value 5. This feature would allow one to write:
Rather than:
Or
Describe the solution you'd like
A new matrix creation method called "ones" which creates a matrix of specified dimensions filled with ones.
Describe alternatives you've considered
This is a QOL feature. There are certainly options to do the same thing outlined above.
Additional context
N/A
The text was updated successfully, but these errors were encountered: