Scythe-1.0.3
template<typename T , matrix_order O, matrix_style S>
Matrix< double, Col, Concrete > scythe::ones ( unsigned int  rows,
unsigned int  cols 
) [inline]

Create a matrix of ones.

This function creates a matrix of ones, with the given dimensions rows and cols.

Parameters:
rowsThe number of rows in the resulting Matrix.
colsThe number of columns in the resulting Matrix.
See also:
eye (unsigned int k)
Exceptions:
scythe_alloc_error(Level 1)