Sacado  Development
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Static Public Member Functions | List of all members
Sacado::ds_array< T, true > Struct Template Reference

Dynamic array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...). More...

#include <Sacado_DynamicArrayTraits.hpp>

Static Public Member Functions

static T * get (int sz)
 Get memory for new array of length sz.
 
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>
struct Sacado::ds_array< T, true >

Dynamic array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...).


The documentation for this struct was generated from the following file: