Scythe-1.0.3
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
template<matrix_order O, matrix_style S>
scythe::Matrix< T_type, ORDER, STYLE >::Matrix ( const Matrix< T_type, O, S > &  M,
uint  x1,
uint  y1,
uint  x2,
uint  y2 
) [inline]

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:
MThe Matrix to view.
x1The first row coordinate, x1 <= x2.
y1The first column coordinate, y1 <= y2.
x2The second row coordinate, x2 > x1.
y2The 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:
scythe_style_error(Level 0)
scythe_alloc_error(Level 1)