LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Classes | Namespaces | Functions
initialization.h File Reference

Construction functions for array. More...

#include "ndarray/Array.h"
#include "ndarray/Manager.h"

Go to the source code of this file.

Classes

struct  ndarray::detail::NullOwner
 
class  ndarray::detail::Initializer< N, Derived >
 
class  ndarray::detail::SimpleInitializer< N >
 
class  ndarray::detail::ExternalInitializer< T, N, Owner >
 

Namespaces

 ndarray
 
 ndarray::detail
 

Functions

template<int N>
detail::SimpleInitializer< N > ndarray::allocate (Vector< int, N > const &shape)
 Create an expression that allocates uninitialized memory for an array. More...
 
detail::SimpleInitializer< 1 > ndarray::allocate (int n)
 Create an expression that allocates uninitialized memory for a 1-d array. More...
 
detail::SimpleInitializer< 2 > ndarray::allocate (int n1, int n2)
 Create an expression that allocates uninitialized memory for a 2-d array. More...
 
detail::SimpleInitializer< 3 > ndarray::allocate (int n1, int n2, int n3)
 Create an expression that allocates uninitialized memory for a 3-d array. More...
 
template<typename Derived >
ArrayRef< typename
boost::remove_const< typename
Derived::Element >::type,
Derived::ND::value,
Derived::ND::value > 
ndarray::copy (ExpressionBase< Derived > const &expr)
 Create a new Array by copying an Expression. More...
 
template<int N>
Vector< int, N > ndarray::computeStrides (Vector< int, N > const &shape, DataOrderEnum order=ROW_MAJOR)
 Compute row- or column-major strides for the given shape. More...
 
template<typename T , int N, typename Owner >
detail::ExternalInitializer< T,
N, Owner > 
ndarray::external (T *data, Vector< int, N > const &shape, Vector< int, N > const &strides, Owner const &owner)
 Create an expression that initializes an Array with externally allocated memory. More...
 
template<typename T , int N>
detail::ExternalInitializer< T,
N, detail::NullOwner > 
ndarray::external (T *data, Vector< int, N > const &shape, Vector< int, N > const &strides)
 Create an expression that initializes an Array with externally allocated memory. More...
 
template<typename T , int N, typename Owner >
detail::ExternalInitializer< T,
N, Owner > 
ndarray::external (T *data, Vector< int, N > const &shape, DataOrderEnum order, Owner const &owner)
 Create an expression that initializes an Array with externally allocated memory. More...
 
template<typename T , int N>
detail::ExternalInitializer< T,
N, detail::NullOwner > 
ndarray::external (T *data, Vector< int, N > const &shape, DataOrderEnum order=ROW_MAJOR)
 Create an expression that initializes an Array with externally allocated memory. More...
 

Detailed Description

Construction functions for array.

Definition in file initialization.h.