Sacado::ds_array< T, isScalar > Struct Template Reference

Dynamic array allocation class that works for any type. More...

#include <Sacado_DynamicArrayTraits.hpp>

List of all members.

Static Public Member Functions

static T * get_and_fill (int sz)
 Get memory for new array of length sz and fill with zeros.
static T * get_and_fill (const T *src, int sz)
 Get memory for new array of length sz and fill with entries from src.
static T * strided_get_and_fill (const T *src, int stride, int sz)
 Get memory for new array of length sz and fill with entries from src.
static void copy (const T *src, T *dest, int sz)
 Copy array from src to dest of length sz.
static void strided_copy (const T *src, int src_stride, T *dest, int dest_stride, int sz)
 Copy array from src to dest of length sz.
static void zero (T *dest, int sz)
 Zero out array dest of length sz.
static void strided_zero (T *dest, int stride, int sz)
 Zero out array dest of length sz.
static void destroy_and_release (T *m, int sz)
 Destroy array elements and release memory.

Detailed Description

template<typename T, bool isScalar = IsScalarType<T>::value>
struct Sacado::ds_array< T, isScalar >

Dynamic array allocation class that works for any type.

Definition at line 46 of file Sacado_DynamicArrayTraits.hpp.


Member Function Documentation

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::ds_array< T, isScalar >::get_and_fill ( int  sz  )  [inline, static]

Get memory for new array of length sz and fill with zeros.

Definition at line 49 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::ds_array< T, isScalar >::get_and_fill ( const T *  src,
int  sz 
) [inline, static]

Get memory for new array of length sz and fill with entries from src.

Definition at line 61 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::ds_array< T, isScalar >::strided_get_and_fill ( const T *  src,
int  stride,
int  sz 
) [inline, static]

Get memory for new array of length sz and fill with entries from src.

Definition at line 73 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::ds_array< T, isScalar >::copy ( const T *  src,
T *  dest,
int  sz 
) [inline, static]

Copy array from src to dest of length sz.

Definition at line 84 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::ds_array< T, isScalar >::strided_copy ( const T *  src,
int  src_stride,
T *  dest,
int  dest_stride,
int  sz 
) [inline, static]

Copy array from src to dest of length sz.

Definition at line 90 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::ds_array< T, isScalar >::zero ( T *  dest,
int  sz 
) [inline, static]

Zero out array dest of length sz.

Definition at line 100 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::ds_array< T, isScalar >::strided_zero ( T *  dest,
int  stride,
int  sz 
) [inline, static]

Zero out array dest of length sz.

Definition at line 106 of file Sacado_DynamicArrayTraits.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::ds_array< T, isScalar >::destroy_and_release ( T *  m,
int  sz 
) [inline, static]

Destroy array elements and release memory.

Definition at line 114 of file Sacado_DynamicArrayTraits.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:19:43 2011 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.6.3