|
| CS_F_HOST void * | operator new (std::size_t count, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Custom new operator. More...
|
| |
| CS_F_HOST void * | operator new[] (std::size_t count, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Custom new[] operator. More...
|
| |
| CS_F_HOST void | operator delete (void *ptr) |
| | Custom delete operator. More...
|
| |
| CS_F_HOST void | operator delete[] (void *ptr) |
| | Custom delete[] operator. More...
|
| |
| CS_F_HOST_DEVICE | array () |
| | Default constructor method leading to "empty container". More...
|
| |
| CS_F_HOST | array (cs_lnum_t size, cs_alloc_mode_t alloc_mode=cs_alloc_mode, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Constructor method using only size. More...
|
| |
| CS_F_HOST | array (const cs_lnum_t(&dims)[N], cs_alloc_mode_t alloc_mode=cs_alloc_mode, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Constructor method using dimensions. More...
|
| |
| CS_F_HOST | array (cs_lnum_t size1, cs_lnum_t size2, cs_alloc_mode_t alloc_mode=cs_alloc_mode, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Constructor method for 2D array based on sizes. More...
|
| |
| CS_F_HOST | array (cs_lnum_t size1, cs_lnum_t size2, cs_lnum_t size3, cs_alloc_mode_t alloc_mode=cs_alloc_mode, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Constructor method for 3D array based on sizes. More...
|
| |
| CS_F_HOST | array (cs_lnum_t size1, cs_lnum_t size2, cs_lnum_t size3, cs_lnum_t size4, cs_alloc_mode_t alloc_mode=cs_alloc_mode, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Constructor method for 4D array based on sizes. More...
|
| |
| template<typename... Args> |
| CS_F_HOST_DEVICE | array (T *data, Args... indices) |
| | Constructor method for non owner version. More...
|
| |
| CS_F_HOST_DEVICE | array (T *data, const cs_lnum_t(&dims)[N]) |
| | Constructor method for non owner version in multidimensional. More...
|
| |
| CS_F_HOST_DEVICE | array (const array &other) |
| | Constructor method using copy results in a shallow copy. If a deep copy is needed, use "get_deep_copy" method! More...
|
| |
| CS_F_HOST_DEVICE | array (array &&other) |
| | Move constructor. More...
|
| |
| CS_F_HOST_DEVICE | ~array () |
| | Destructor method. More...
|
| |
| CS_F_HOST_DEVICE array & | operator= (array other) |
| | Assignment operator. More...
|
| |
| CS_F_HOST_DEVICE void | clear () |
| | Clear data (empty container). More...
|
| |
| CS_F_HOST array< T, N, L > | get_deep_copy (const char *file_name=__FILE__, const int line_number=__LINE__) const |
| |
| CS_F_HOST_DEVICE mdspan< T, N, L > | view () |
| | Get span view of array, same dimensions as array. More...
|
| |
| template<int _N_, layout _L_ = L> |
| CS_F_HOST_DEVICE mdspan< T, _N_, _L_ > | get_mdspan (const cs_lnum_t(&dims)[_N_]) |
| | Get span view of array with a given array of dimensions (extent). If total size of span is different than that of the array an error is raised. More...
|
| |
| template<layout _L_ = L, typename... Args> |
| CS_F_HOST_DEVICE mdspan< T, sizeof...(Args), _L_ > | get_mdspan (Args... indices) |
| | Get span view of array with a given array of dimensions (extent). If total size of span is different than that of the array an error is raised. More...
|
| |
| CS_F_HOST_DEVICE void | set_empty () |
| | Initializer method for empty containers. More...
|
| |
| CS_F_HOST void | reshape (cs_lnum_t new_size, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array. More...
|
| |
| CS_F_HOST void | reshape_and_copy (cs_lnum_t new_size, cs_lnum_t size_to_keep, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and copy old data. More...
|
| |
| CS_F_HOST void | reshape (const cs_lnum_t(&dims)[N], const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and do not keep old data. More...
|
| |
| CS_F_HOST void | reshape_and_copy (const cs_lnum_t(&dims)[N], cs_lnum_t size_to_keep=-1, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and copy old data. More...
|
| |
| CS_F_HOST void | reshape (const cs_lnum_t size1, const cs_lnum_t size2, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array 2D (no explicit copy, only realloc) More...
|
| |
| CS_F_HOST void | reshape_and_copy (const cs_lnum_t size1, const cs_lnum_t size2, cs_lnum_t size_to_keep, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and copy old data (2D) More...
|
| |
| CS_F_HOST void | reshape (const cs_lnum_t size1, const cs_lnum_t size2, const cs_lnum_t size3, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array 3D (no explicit copy, only realloc) More...
|
| |
| CS_F_HOST void | reshape_and_copy (const cs_lnum_t size1, const cs_lnum_t size2, const cs_lnum_t size3, cs_lnum_t size_to_keep, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and copy old data (3D) More...
|
| |
| CS_F_HOST void | reshape_and_copy (const cs_lnum_t size1, const cs_lnum_t size2, const cs_lnum_t size3, const cs_lnum_t size4, cs_lnum_t size_to_keep, const char *file_name=__FILE__, const int line_number=__LINE__) |
| | Resize data array and copy old data (4D) More...
|
| |
| CS_F_HOST_DEVICE void | set_alloc_mode (cs_alloc_mode_t mode) |
| | Set memory allocation mode. More...
|
| |
| CS_F_HOST_DEVICE bool | owner () const |
| | Getter function for owner status. More...
|
| |
| CS_F_HOST_DEVICE cs_alloc_mode_t | mode () const |
| | Getter function for allocation mode. More...
|
| |
| CS_F_HOST void | copy_data (const array &other, const cs_lnum_t n_vals=-1) |
| | Copy data from another array, we suppose that data size is same as that of the array. An assert test the sizes in debug. More...
|
| |
| CS_F_HOST void | copy_data (cs_dispatch_context &ctx, const array &other, const cs_lnum_t n_vals=-1) |
| | Copy data from raw pointer, we suppose that data size is same as that of the array. A dispatch_context is provided, hence no implicit synchronization which should be done by the caller. More...
|
| |
| CS_F_HOST_DEVICE | mdspan () |
| | Default constructor method leading to "empty container". More...
|
| |
| CS_F_HOST_DEVICE | mdspan (T *data, Args... indices) |
| | Constructor method using only global size (works for N=1). More...
|
| |
| CS_F_HOST_DEVICE | mdspan (T *data, const cs_lnum_t(&dims)[N]) |
| | Constructor method using dimensions. More...
|
| |
| CS_F_HOST_DEVICE | mdspan (const mdspan &other) |
| | Constructor method using copy. May be a shallow copy. More...
|
| |
| CS_F_HOST_DEVICE | mdspan (mdspan &&other) |
| | Move constructor. More...
|
| |
| CS_F_HOST_DEVICE | ~mdspan () |
| | Desstructor method using dimensions. More...
|
| |
| CS_F_HOST mdspan & | operator= (const mdspan &other) |
| | Assignment operator. More...
|
| |
| CS_F_HOST_DEVICE mdspan & | operator= (mdspan &&other) |
| |
| CS_F_HOST_DEVICE | operator T* () const |
| | Cast operator to "T*" from this class. More...
|
| |
| CS_F_HOST_DEVICE T & | operator[] (cs_lnum_t i) |
| | Overloaded [] operator to access the ith value (val[i]). More...
|
| |
| CS_F_HOST_DEVICE T & | operator[] (cs_lnum_t i) const |
| | Overloaded [] operator to access the ith value (val[i]). More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Id1 >::value &&N==1, T & > | operator() (Id1 i) |
| | Overloaded () operator to access the ith value (val[i]). More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Id1 >::value &&N==1, T & > | operator() (Id1 i) const |
| | Overloaded [] operator to access the ith value (val[i]). More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Id1, Id2 >::value &&N==2, T & > | operator() (Id1 i, Id2 j) |
| | Overloaded () operator to access the (i,j)-th value couple. More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Id1, Id2 >::value &&N==2, T & > | operator() (Id1 i, Id2 j) const |
| | Overloaded () operator to access the (i,j)-th value couple. More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Args... >::value &&(N!=2) &&(N!=1), T & > | operator() (Args... indices) |
| | Overloaded () operator to access the (i,j,k)-th value tuple. More...
|
| |
| CS_F_HOST_DEVICE std::enable_if_t< cs::always_true< Args... >::value &&(N!=2) &&(N!=1), T & > | operator() (Args... indices) const |
| | Overloaded () operator to access the (i,j,k)-th value tuple. More...
|
| |
| CS_F_HOST_DEVICE void | set_data_ptr (T *data_ptr) const |
| | Set data pointer. More...
|
| |
| CS_F_HOST_DEVICE void | update_data (T *data_ptr, Args... dims) |
| | Update data pointer and dimensions of span. More...
|
| |
| CS_F_HOST_DEVICE bool | empty () const |
| | Check if object is empty or not. More...
|
| |
| CS_F_HOST_DEVICE cs_lnum_t | size () const |
| | Getter for total size. More...
|
| |
| CS_F_HOST_DEVICE cs_lnum_t | extent (int i) const |
| | Getter for extent along a given dimension. More...
|
| |
| CS_F_HOST_DEVICE cs_lnum_t | offset (int i) const |
| | Getter for extent along a given dimension. More...
|
| |
| CS_F_HOST_DEVICE T * | data () const |
| | Getter for data raw pointer. More...
|
| |
| CS_F_HOST_DEVICE U * | data () const |
| | Getter for data raw pointer with recast (casts T* to U*) More...
|
| |
| CS_F_HOST_DEVICE mdspan< T, 1, L > | view_1d () |
| | Get span 1D view of the array, same total size. More...
|
| |
| CS_F_HOST_DEVICE mdspan< T, N-sizeof...(Args), L > | sub_view (Args... indices) |
| | Getter for a subspan based on first dimension. More...
|
| |
| CS_F_HOST_DEVICE T * | sub_array (Args... indices) |
| | Get sub array based on index. More...
|
| |
| CS_F_HOST_DEVICE T * | sub_array (Args... indices) const |
| | Get sub array based on index. More...
|
| |
| CS_F_HOST void | set_to_val (T val, const cs_lnum_t n_vals=-1) |
| | Set all values of the data array to a constant value. More...
|
| |
| CS_F_HOST void | set_to_val (cs_dispatch_context &ctx, T val, const cs_lnum_t n_vals=-1) |
| | Set all values of the data array to a constant value while providing a dispatch context. It is up to the call to synchronize the context after this call. More...
|
| |
| CS_F_HOST void | set_to_val_on_subset (T val, const cs_lnum_t n_elts, const cs_lnum_t elt_ids[]) |
| | Set subset of values of the data array to a constant value. More...
|
| |
| CS_F_HOST void | set_to_val_on_subset (cs_dispatch_context &ctx, T val, const cs_lnum_t n_elts, const cs_lnum_t elt_ids[]) |
| | Set a subset of values of the data array to a constant value while providing a dispatch context. It is up to the call to synchronize the context after this call. More...
|
| |
| CS_F_HOST void | zero () |
| | Set all values of the data array to 0. More...
|
| |
| CS_F_HOST void | zero (cs_dispatch_context &ctx) |
| | Set all values of the data array to 0. More...
|
| |
| CS_F_HOST void | copy_data (const T *data, const cs_lnum_t n_vals=-1) |
| | Copy data from const raw pointer, we suppose that data size is same as that of the array. More...
|
| |
| CS_F_HOST void | copy_data (mdspan &other, const cs_lnum_t n_vals=-1) |
| | Copy data from another mdspan, we suppose that data size is same as that of the array. An assert test the sizes in debug. More...
|
| |
| CS_F_HOST void | copy_data (cs_dispatch_context &ctx, T *data, const cs_lnum_t n_vals=-1) |
| | Copy data from raw pointer, we suppose that data size is same as that of the array. A dispatch_context is provided, hence no implicit synchronization which should be done by the caller. More...
|
| |
| CS_F_HOST void | copy_data (cs_dispatch_context &ctx, const T *data, const cs_lnum_t n_vals=-1) |
| | Copy data from const raw pointer, we suppose that data size is same as that of the array. A dispatch_context is provided, hence no implicit synchronization which should be done by the caller. More...
|
| |
| CS_F_HOST void | copy_data (cs_dispatch_context &ctx, mdspan &other, const cs_lnum_t n_vals=-1) |
| | Copy data from another mdspan, we suppose that data size is same as that of the array. An assert test the sizes in debug. More...
|
| |