|
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
template<matrix_order O, matrix_style S>
Submatrix constructor.
The submatrix constructor takes a reference to an existing matrix and a set of indices, and generates a new Matrix object referencing the submatrix described by the indices. One can only construct a submatrix with a view template and this constructor will throw an error if one tries to use it to construct a concrete matrix.
- Note:
- The submatrix-returning operators provide the same functionality as this constructor with less obtuse syntax. Users should generally employ these methods instead of this constructor.
- Parameters:
-
M | The Matrix to view. |
x1 | The first row coordinate, x1 <= x2. |
y1 | The first column coordinate, y1 <= y2. |
x2 | The second row coordinate, x2 > x1. |
y2 | The second column coordinate, y2 > y1. |
- See also:
- Matrix()
-
Matrix(T_type)
-
Matrix(uint, uint, bool, T_type)
-
Matrix(uint, uint, T_iterator)
-
Matrix(const std::string&)
-
Matrix(const Matrix&)
-
Matrix(const Matrix<T_type, O, S> &)
-
Matrix(const Matrix<S_type, O, S> &)
-
operator()(uint, uint, uint, uint)
-
operator()(uint, uint, uint, uint) const
-
operator()(all_elements, uint)
-
operator()(all_elements, uint) const
-
operator()(uint, all_elements)
-
operator()(uint, all_elements) const
-
reference(const Matrix<T_type, O, S> &)
- Exceptions:
-
|