Constructs a copy of given matrix transformed from some other instantiation of the Matrix template.
Val2 | is a type of elements of a given matrix which should be explicitly convertible to value_type . |
Alloc2 | is a type of an allocator of a given matrix which is rebinded to an allocator instance for value_type and then explicitly converted to allocator_type . |
Derived2_t | is a type implementing the matrix specified as the argument. |
Policy2 | is a policy of execution of methods of the matrix specified as the argument. Policy is not considered by the constructor. |
r | is a given matrix instance of another type. It is converted to the current type with a result (of conversion) to be a constructed matrix. |
Example code:
Output is