$search

podarray< eT > Class Template Reference
[Podarray]

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

#include <podarray_bones.hpp>

List of all members.

Public Member Functions

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

Public Attributes

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

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.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Mar 5 12:27:58 2013