|
|
using | rep_t = std::array< size_t, 2 > |
| |
|
using | index_t = pyre::grid::index_t< rep_t > |
| |
|
using | layout_t = pyre::grid::layout_t< index_t > |
| |
|
using | grid_t = pyre::grid::grid_t< cell_t, layout_t, pyre::memory::view_t< cell_t >> |
| |
|
using | view_t = typename grid_t::view_type |
| |
|
using | shape_t = typename layout_t::shape_type |
| |
|
using | slice_t = typename layout_t::slice_type |
| |
|
using | packing_t = typename layout_t::packing_type |
| |
|
|
| Matrix () |
| | Default constructor.
|
| |
| | Matrix (size_t nrows, size_t ncols) |
| | Constructor with number of rows and number of columns. More...
|
| |
| | Matrix (const Matrix< cell_t > &m) |
| | Deep copy constructor from another matrix - allocates memory and copies values. More...
|
| |
| | Matrix (Matrix< cell_t > &m) |
| | Shallow copy constructor from another matrix - does not allocate own memory. More...
|
| |
| | Matrix (const view_t &view) |
| | Copy constructor from a grid view (copy values) More...
|
| |
| | Matrix (cell_t *data, size_t nrows, size_t ncols) |
| | Shallow copy constructor from raw pointer to data - does not allocate own memory. More...
|
| |
| | Matrix (std::valarray< cell_t > &data, size_t ncols) |
| | Shallow copy constructor from an std::valarray - does not allocate own memory. More...
|
| |
| | Matrix (std::vector< cell_t > &data, size_t ncols) |
| | Shallow copy constructor from an std::vector - does not allocate own memory. More...
|
| |
|
| ~Matrix () |
| | Destructor.
|
| |
| Matrix< cell_t > & | operator= (const Matrix< cell_t > &m) |
| | Deep assignment operator - allocates memory and copies values. More...
|
| |
| Matrix< cell_t > & | operator= (Matrix< cell_t > &m) |
| | Shallow assignment operator - does not allocate own memory. More...
|
| |
| Matrix< cell_t > & | operator= (const view_t &view) |
| | Assignment operator from a grid view (copy values) More...
|
| |
| void | resize (size_t nrows, size_t ncols) |
| | Resize memory for a given number of rows and columns. More...
|
| |
| const view_t | submat (size_t row, size_t col, size_t rowspan, size_t colspan) |
| | Extract copy of sub-matrix given starting indices and span. More...
|
| |
|
cell_t * | data () |
| | Access to data buffer.
|
| |
|
const cell_t * | data () const |
| | Read-only access to data buffer.
|
| |
| cell_t * | rowptr (size_t row) |
| | Access to data buffer at a specific row. More...
|
| |
| const cell_t * | rowptr (size_t row) const |
| | Read-only access to data buffer at a specific row. More...
|
| |
| cell_t & | operator() (size_t row, size_t col) |
| | Access matrix value for a given row and column. More...
|
| |
| const cell_t & | operator() (size_t row, size_t col) const |
| | Read-only access to matrix value for a given row and column. More...
|
| |
| cell_t & | operator() (size_t index) |
| | Access matrix value for a flattened index. More...
|
| |
| const cell_t & | operator() (size_t index) const |
| | Read-only access to matrix value for a flattened index. More...
|
| |
| cell_t & | operator[] (const index_t &index) |
| | Access matrix value for a given grid::index_type. More...
|
| |
| const cell_t & | operator[] (const index_t &index) const |
| | Read-only access to matrix value for a given grid::idnex_type. More...
|
| |
|
void | zeros () |
| | Fill with zeros.
|
| |
|
void | fill (cell_t value) |
| | Fill with a constant value.
|
| |
|
shape_t | shape () const |
| | Get shape information as grid::shape_type.
|
| |
|
size_t | width () const |
| | Get matrix width.
|
| |
|
size_t | length () const |
| | Get matrix length.
|
| |
| shape_t | byteoffset () const |
| | Get byteoffset for row and column for reading flat binary buffer. More...
|
| |
|
auto | map () const |
| |
template<class>
class isce3::core::Matrix< class >
Data structure for a 2D row-major matrix.