Function uw12::linalg::sub_mat
Defined in File linalg.hpp
Function Documentation
-
inline Mat uw12::linalg::sub_mat(const Mat &mat, const size_t row1, const size_t col1, const size_t n_row, const size_t n_col)
Output a sub-matrix of input matrix
mat- Parameters
mat – Input matrix
row1 – Index of first row of sub-matrix
col1 – Index of first column of sub-matrix
n_row – Number of rows of sub-matrix
n_col – Number of columns of sub-matrix
- Returns
Sub-matrix of size
n_row * n_col