Assign
Copies a matrix, vector or array with auto cast.
bool matrix::Assign(
|
Parameters
m, v or array
[in] The matrix, vector or array the values are copied from.
Return Value
Returns true if successful, otherwise — false.
Note
Unlike Copy, the Assign method allows copying arrays as well. In this case, the auto cast takes place, while the resulting matrix or vector adjusts to the size of the copied array.
Example:
//--- copy the matrices
|
See also