Generic class Block which wraps a matrix class and contains block specific information, providing a uniform way to deal with matrix blocks for all supported backend matrices.
Public 类型 | |
typedef Matrix::Scalar | Scalar |
Public 成员函数 | |
Block (Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size) | |
Public 属性 | |
Matrix | m_matrix |
index_t | m_row_begin |
index_t | m_col_begin |
index_t | m_row_size |
index_t | m_col_size |
constructor
matrix | the matrix on which the block is defined |
row_begin | the row index at which the block starts |
col_begin | the col index at which the block starts |
row_size | the number of rows in the block |
col_size | the number of cols in the block |
For example, row_begin 0, col_begin 4 and row_size 5, col_size 6 represents the block that starts at index (0,4) in the matrix and goes upto (0+5-1,4+6-1) i.e. (4,9) both inclusive