Multiplies a scalar and a matrix.
- Template Parameters
-
elem_t | is a type of the scalar multiplied to the matrix. |
val_t | is a type of an element of the matrix. |
alloc_t | is a type of an allocator used by the matrix. |
der_t | is a derived type of the matrix. See Matrix::derived_type. |
policy_t | is an execution policy of the matrix. |
- Parameters
-
val | is the scalar multiplied to the matrix from the left. |
right | is a reference to the matrix. |
- Returns
- A new matrix which is a product of the operands. A type of elements of the resulting matrix is determined by the std::common_type metafunction.