Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
podarray< eT > Class Template Reference

A lightweight array for POD types. If the amount of memory requested is small, the stack is used. More...

#include <podarray_bones.hpp>

Public Member Functions

arma_hot void copy_row (const Mat< eT > &A, const uword row)
 
void fill (const eT val)
 
arma_inline eT * memptr ()
 
arma_inline const eT * memptr () const
 
arma_inline eT & operator() (const uword i)
 
arma_inline eT operator() (const uword i) const
 
const podarrayoperator= (const podarray &x)
 
arma_inline eT & operator[] (const uword i)
 
arma_inline eT operator[] (const uword i) const
 
 podarray ()
 
 podarray (const podarray &x)
 
arma_inline podarray (const uword new_N)
 
arma_inline podarray (const eT *X, const uword new_N)
 
void reset ()
 
void set_size (const uword new_n_elem)
 
void zeros ()
 
void zeros (const uword new_n_elem)
 
 ~podarray ()
 

Public Attributes

arma_aligned const eT *const mem
 pointer to memory used by the object More...
 
arma_aligned const uword n_elem
 number of elements held More...
 

Protected Member Functions

void init (const uword new_n_elem)
 

Protected Attributes

arma_aligned eT mem_local [podarray_prealloc_n_elem::val]
 Internal memory, to avoid calling the 'new' operator for small amounts of memory. More...
 

Detailed Description

template<typename eT>
class podarray< eT >

A lightweight array for POD types. If the amount of memory requested is small, the stack is used.

Definition at line 29 of file podarray_bones.hpp.

Member Data Documentation

template<typename eT>
arma_aligned const eT* const podarray< eT >::mem

pointer to memory used by the object

Definition at line 34 of file podarray_bones.hpp.

template<typename eT>
arma_aligned eT podarray< eT >::mem_local[podarray_prealloc_n_elem::val]
protected

Internal memory, to avoid calling the 'new' operator for small amounts of memory.

Definition at line 39 of file podarray_bones.hpp.

template<typename eT>
arma_aligned const uword podarray< eT >::n_elem

number of elements held

Definition at line 33 of file podarray_bones.hpp.


The documentation for this class was generated from the following files:


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:01