Creates a fixed size matrix from a vector of data pointed to by parameters of the constructor. The data is interpreted as data of adjacent rows of the matrix.
- Template Parameters
-
value_t | is a type of an array element to be explicitly converted into value_type . |
interpretation_t | is a type of the vector_interpretation parameter denoting a way to copy the data elements into the matrix. |
- Parameters
-
pVector | is a pointer to memory with elements of the created matrix. Every element of the vector is copied to the internal storage with respect to values of other parameters. An amount of elements read from the buffer is a product of ColumnCount and RowCount of the template instantiation. |
vector_interpretation | is an interpretation mark which is set to either interpret_array_as_matrix_rows_set to specify that the input data is a set of adjacent rows, or interpret_array_as_matrix_columns_set to interpret the data as a set of adjacent columns. |
alloc | is an allocator object used to manage storage of the matrix elements. |
- Deprecated:
- The input vector
pVector
must contain a number of elements which is at least a product of the ColumnCount
and the RowCount
class template arguments. The behaviour is undefined otherwise. Hence, the constructor is not safe. Consider construction of the matrix from iterators.