|
using | rep_t = std::array< size_t, 3 > |
|
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 |
|
|
| Cube () |
| Default constructor.
|
|
| Cube (size_t nslices, size_t nrows, size_t ncols) |
| Constructor with number of slices, rows and columns. More...
|
|
| Cube (const Cube< cell_t > &m) |
| Deep copy constructor from another cube - allocates memory and copies values. More...
|
|
| Cube (Cube< cell_t > &m) |
| Shallow copy constructor from another cube - does not allocate own memory. More...
|
|
| Cube (cell_t *data, size_t nslices, size_t nrows, size_t ncols) |
| Shallow copy constructor from raw pointer to data - does not allocate own memory. More...
|
|
| Cube (std::valarray< cell_t > &data, size_t nrows, size_t ncols) |
| Shallow copy constructor from an std::valarray - does not allocate own memory. More...
|
|
| Cube (std::vector< cell_t > &data, size_t nrows, size_t ncols) |
| Shallow copy constructor from an std::vector - does not allocate own memory. More...
|
|
| ~Cube () |
| Destructor.
|
|
Cube< cell_t > & | operator= (const Cube< cell_t > &m) |
| Deep assignment operator - allocates memory and copies values. More...
|
|
Cube< cell_t > & | operator= (Cube< cell_t > &m) |
| Shallow assignment operator - does not allocate own memory. More...
|
|
void | resize (size_t nslices, size_t nrows, size_t ncols) |
| Resize memory for a given number of slices, rows and columns. More...
|
|
const view_t | subcube (size_t slice, size_t row, size_t col, size_t slicespan, size_t rowspan, size_t colspan) |
| Extract copy of sub-cube 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 * | sliceptr (size_t slice) |
| Access to data buffer at a specific slice. More...
|
|
const cell_t * | sliceptr (size_t slice) const |
| Read-only access to data buffer at a specific slice. More...
|
|
cell_t & | operator() (size_t slice, size_t row, size_t col) |
| Access matrix value for a given slice, row and column. More...
|
|
const cell_t & | operator() (size_t slice, size_t row, size_t col) const |
| Read-only access to matrix value for a given slice, 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 cube width.
|
|
size_t | length () const |
| Get cube length.
|
|
size_t | height () const |
| Get cube height.
|
|
shape_t | byteoffset () const |
| Get byteoffset for row and column for reading flat binary buffer. More...
|
|