A lightweight array for POD types. If the amount of memory requested is small, the stack is used. More...
#include <podarray_proto.hpp>
Public Member Functions | |
~podarray () | |
podarray () | |
podarray (const podarray &x) | |
const podarray & | operator= (const podarray &x) |
arma_inline | podarray (const u32 new_N) |
arma_inline | podarray (const eT *X, const u32 new_N) |
arma_inline eT & | operator[] (const u32 i) |
arma_inline eT | operator[] (const u32 i) const |
arma_inline eT & | operator() (const u32 i) |
arma_inline eT | operator() (const u32 i) const |
void | set_size (const u32 new_n_elem) |
void | fill (const eT val) |
void | zeros () |
void | zeros (const u32 new_n_elem) |
arma_inline eT * | memptr () |
arma_inline const eT * | memptr () const |
Public Attributes | |
arma_aligned const u32 | n_elem |
number of elements held | |
arma_aligned const eT *const | mem |
pointer to memory used by the object | |
Protected Member Functions | |
void | init (const u32 new_n_elem) |
Protected Attributes | |
arma_aligned eT | mem_local [16] |
Internal memory, to avoid calling the 'new' operator for small amounts of memory. |
A lightweight array for POD types. If the amount of memory requested is small, the stack is used.
Definition at line 25 of file podarray_proto.hpp.
number of elements held
Definition at line 29 of file podarray_proto.hpp.
Referenced by podarray< eT >::fill(), podarray< eT >::init(), auxlib::lu(), podarray< eT >::operator()(), podarray< eT >::operator=(), and podarray< eT >::~podarray().
pointer to memory used by the object
Definition at line 30 of file podarray_proto.hpp.
Referenced by auxlib::det(), op_dotext::direct_rowvec_mat_colvec(), op_dotext::direct_rowvec_transmat_colvec(), podarray< eT >::fill(), podarray< eT >::init(), auxlib::log_det(), podarray< eT >::memptr(), podarray< eT >::operator()(), podarray< eT >::operator[](), diskio::save_pgm_binary(), diskio::save_ppm_binary(), and podarray< eT >::~podarray().
Internal memory, to avoid calling the 'new' operator for small amounts of memory.
Definition at line 35 of file podarray_proto.hpp.
Referenced by podarray< eT >::init(), and podarray< eT >::~podarray().