![]() |
NumCpp
2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Convenience container for holding a uniform array of NdArrays. More...
#include <DataCube.hpp>
Public Types | |
| using | const_iterator = typename std::deque< NdArray< dtype > >::const_iterator |
| using | iterator = typename std::deque< NdArray< dtype > >::iterator |
Public Member Functions | |
| DataCube ()=default | |
| DataCube (uint32 inSize) | |
| NdArray< dtype > & | at (uint32 inIndex) |
| const NdArray< dtype > & | at (uint32 inIndex) const |
| NdArray< dtype > & | back () noexcept |
| iterator | begin () noexcept |
| const_iterator | cbegin () const noexcept |
| const_iterator | cend () const noexcept |
| void | dump (const std::string &inFilename) const |
| iterator | end () noexcept |
| NdArray< dtype > & | front () noexcept |
| bool | isempty () noexcept |
| const NdArray< dtype > & | operator[] (uint32 inIndex) const noexcept |
| NdArray< dtype > & | operator[] (uint32 inIndex) noexcept |
| void | pop_back () noexcept |
| void | push_back (const NdArray< dtype > &inArray) |
| const Shape & | shape () const noexcept |
| uint32 | sizeZ () const noexcept |
| NdArray< dtype > | sliceZ (int32 inIndex, Slice inSliceZ) const |
| NdArray< dtype > | sliceZ (int32 inRow, int32 inCol, Slice inSliceZ) const |
| NdArray< dtype > | sliceZ (int32 inRow, Slice inCol, Slice inSliceZ) const |
| NdArray< dtype > | sliceZ (Slice inRow, int32 inCol, Slice inSliceZ) const |
| DataCube< dtype > | sliceZ (Slice inRow, Slice inCol, Slice inSliceZ) const |
| NdArray< dtype > | sliceZAll (int32 inIndex) const |
| NdArray< dtype > | sliceZAll (int32 inRow, int32 inCol) const |
| NdArray< dtype > | sliceZAll (int32 inRow, Slice inCol) const |
| NdArray< dtype > | sliceZAll (Slice inRow, int32 inCol) const |
| DataCube< dtype > | sliceZAll (Slice inRow, Slice inCol) const |
| NdArray< dtype > | sliceZAllat (int32 inIndex) const |
| NdArray< dtype > | sliceZAllat (int32 inRow, int32 inCol) const |
| NdArray< dtype > | sliceZAllat (int32 inRow, Slice inCol) const |
| NdArray< dtype > | sliceZAllat (Slice inRow, int32 inCol) const |
| DataCube< dtype > | sliceZAllat (Slice inRow, Slice inCol) const |
| NdArray< dtype > | sliceZat (int32 inIndex, Slice inSliceZ) const |
| NdArray< dtype > | sliceZat (int32 inRow, int32 inCol, Slice inSliceZ) const |
| NdArray< dtype > | sliceZat (int32 inRow, Slice inCol, Slice inSliceZ) const |
| NdArray< dtype > | sliceZat (Slice inRow, int32 inCol, Slice inSliceZ) const |
| DataCube< dtype > | sliceZat (Slice inRow, Slice inCol, Slice inSliceZ) const |
Convenience container for holding a uniform array of NdArrays.
| using nc::DataCube< dtype >::const_iterator = typename std::deque<NdArray<dtype> >::const_iterator |
| using nc::DataCube< dtype >::iterator = typename std::deque<NdArray<dtype> >::iterator |
|
default |
Default Constructor
|
inlineexplicit |
Constructor, preallocates to the input size
| inSize |
|
inline |
Access method, with bounds checking. Returns the 2d z "slice" element of the cube.
| inIndex |
|
inline |
Const access method, with bounds checking. Returns the 2d z "slice" element of the cube.
| inIndex |
|
inlinenoexcept |
Returns a reference to the last 2d "slice" of the cube in the z-axis
|
inlinenoexcept |
Returns an iterator to the first 2d z "slice" of the cube.
|
inlinenoexcept |
Returns an const_iterator to the first 2d z "slice" of the cube.
|
inlinenoexcept |
Returns an const_iterator to 1 past the last 2d z "slice" of the cube.
|
inline |
Outputs the DataCube as a .bin file
| inFilename |
|
inlinenoexcept |
Returns an iterator to 1 past the last 2d z "slice" of the cube.
|
inlinenoexcept |
Returns a reference to the front 2d "slice" of the cube in the z-axis
|
inlinenoexcept |
Tests whether or not the container is empty
|
inlinenoexcept |
Const access operator, no bounds checking. Returns the 2d z "slice" element of the cube.
| inIndex |
|
inlinenoexcept |
Access operator, no bounds checking. Returns the 2d z "slice" element of the cube.
| inIndex |
|
inlinenoexcept |
Removes the last z "slice" of the cube
|
inline |
Adds a new z "slice" to the end of the cube
| inArray |
|
inlinenoexcept |
Returns the x/y shape of the cube
|
inlinenoexcept |
Returns the size of the z-axis of the cube
|
inline |
Slices the z dimension of the cube
| inIndex | the flattend 2d index (row, col) to slice |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with NO bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with NO bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with NO bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with NO bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube
| inIndex | the flattend 2d index (row, col) to slice |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Slices the z dimension of the cube with bounds checking
| inIndex | the flattend 2d index (row, col) to slice |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Slices the z dimension of the cube with bounds checking
| inIndex | the flattend 2d index (row, col) to slice |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |
|
inline |
Slices the z dimension of the cube with bounds checking
| inRow | |
| inCol | |
| inSliceZ | the slice dimensions of the z-axis |