|
Ones
This is a static function that creates and returns a new matrix filled with ones.
static matrix matrix::Ones(
|
Parameters
rows
[in] Number of rows.
cols
[in] Number of columns.
Return Value
A new matrix of given rows and columns, filled with ones.
MQL5 example:
matrix ones=matrix::Ones(4, 4);
|
Python example:
np.ones((4, 1))
|