![]() |
NumCpp
1.0
A 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 | pop_front () noexcept |
void | push_back (const NdArray< dtype > &inArray) |
void | push_front (const NdArray< dtype > &inArray) |
const Shape & | shape () const noexcept |
uint32 | size () const noexcept |
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
|
inline |
Constructor, preallocates to the input size
inSize |
|
inline |
|
inline |
|
inlinenoexcept |
Returns a reference to the last element of the array
|
inlinenoexcept |
Returns an iterator to the beginning of the container
|
inlinenoexcept |
Returns a const_iterator to the beginning of the container
|
inlinenoexcept |
Returns a const_iterator to 1 past the end of the container
|
inline |
Outputs the DataCube as a .bin file
inFilename |
|
inlinenoexcept |
Returns an iterator to 1 past the end of the container
|
inlinenoexcept |
returns a reference to the first element of the array
|
inlinenoexcept |
Tests whether or not the container is empty
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Removes the last element in the container
|
inlinenoexcept |
Removes the first element in the container
|
inline |
Adds a new element at the end of the container
inArray |
|
inline |
Adds a new element at the beginning of the container
inArray |
|
inlinenoexcept |
returns the number shape of the element arrays
|
inlinenoexcept |
Returns the size of the container array