|
template<typename U > |
| Array (seq_to_t, T t1, T t2, U by, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
| construct a sequence in place, from 't1' to 't2'.
|
|
template<typename U > |
| Array (seq_n_t, T t1, U by, idx_type n, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
| construct a sequence in place, from 't1', with 'n' elements.
|
|
template<typename INIT_TYPE_TAG > |
| Array (INIT_TYPE_TAG init, const Vector< idx_type > dim_p, const vector< Vector< zstring >> names_p=vector< Vector< zstring >>(), std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
| Array (std::unique_ptr< AllocFactory > &&allocf_p) |
|
| Array (const Vector< idx_type > dim_p, const Array< T > &v_p, const vector< Vector< zstring >> names_p=vector< Vector< zstring >>(), std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
| Array (const Vector< idx_type > dim_p, const Vector< T, O > &v_p, const vector< Vector< zstring >> names_p=vector< Vector< zstring >>(), std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
| Array (const Vector< idx_type > dim_p, const vector< unique_ptr< Vector< T, O >>> &v_p, const vector< unique_ptr< Dname >> &names_p, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
| Array (const Array &u, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
template<typename U , typename OU = std::less<U>> |
| Array (convert_cons_t, const Array< U, OU > &u, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
| Convert to another array type.
|
|
| Array (Array &&u) |
|
template<typename U , class G > |
| Array (const Array< U > &u, G g, bool abba, std::unique_ptr< AllocFactory > &&allocf_p=std::make_unique< MemAllocFactory >()) |
|
| Array (Vector< T, O > &&vv) |
|
Array & | operator= (Array u) |
|
Array & | swap (Array &u) |
|
bool | operator== (const Array< T > &u) const |
|
T & | operator[] (idx_type i) |
|
const T & | operator[] (idx_type i) const |
|
size_t | getBufferSize () const |
|
size_t | to_buffer (char *buf) const |
|
template<typename INDEX > |
Array< T > | operator() (const INDEX &i) const |
| Complex subsetting. More...
|
|
template<typename INDEX > |
Array | operator() (const vector< INDEX > &i, bool drop=true, idx_type dropfirst=0) const |
|
template<typename INDEX , typename U > |
Array & | operator() (const vector< INDEX > &i, const Array< U > &u) |
| subassign an array.
|
|
template<typename INDEX , typename U > |
Array & | operator() (const vector< INDEX > &i, U u) |
| subassign a scalar.
|
|
T | operator[] (const vector< idx_type > &i) const |
|
Array | subsetRows (idx_type n, idx_type from=0, bool addrownums=false) const |
| Subset the specified row range:
|
|
bool | hasNames () const |
|
bool | hasNames (idx_type d) const |
|
const Dname & | getNames (idx_type d) const |
|
const Vector< zstring > & | getNamesVector (idx_type d) const |
|
bool | isVector () const |
|
bool | isScalar () const |
|
bool | isOrdered () const |
|
bool | isOrdered (idx_type i) const |
|
const AllocFactory & | getAllocFactory () const |
|
Array & | addprefix (const string &prefix, idx_type d) |
|
idx_type | size () const |
| Get the total number of elements in the array.
|
|
idx_type | ncols () const |
|
idx_type | nrows () const |
|
const Vector< T, O > & | getcol (idx_type i) const |
|
Vector< T, O > & | getcol (idx_type i) |
|
const Dname & | getnames (idx_type d) const |
| Get the vector of names in dimention d.
|
|
const Vector< idx_type > & | getdim () const |
|
const idx_type | getdim (idx_type d) const |
|
fsys::path | getAllocfDirname () const |
|
bool | isPersistent () const |
|
void | msync (bool async) const |
|
template<typename U > |
Array & | concat (const Array< U > &u, const string &prefix="") |
|
template<typename U > |
Array & | concat (const U &u, const string &name="") |
|
template<typename U > |
Array & | abind (const Array< U > &u, idx_type d, const string &prefix="") |
|
template<typename U > |
Array & | rbind (const Array< U > &u) |
|
template<typename U > |
Array & | cbind (const Array< U > &u) |
|
Array & | append (const char *buf, size_t buflen, size_t &offset) |
|
Array & | appendVector (const char *buf, size_t buflen) |
|
Array & | resize (idx_type d, idx_type sz, idx_type from=0) |
|
template<class F > |
Array & | applyf (F f) |
| Apply a function on every element of an array.
|
|
template<typename F , typename ... U> |
Array & | apply (const U &... u) |
|
template<class F , typename U > |
Array & | apply_scalar_post (U u) |
|
template<typename F , typename U > |
Array & | apply (const U &u) |
|
template<class F , typename U , typename A > |
Array & | apply_attrib (const Array< U > &u, const A &a) |
|
template<class F , typename U , typename A > |
Array & | apply_attrib_scalar_post (U u, const A &a) |
|
template<typename AO = O> |
Array & | sort () |
|
template<typename AO = O> |
Array & | sort (idx_type col) |
|
template<class UnaryFunction > |
UnaryFunction | for_each (UnaryFunction f) const |
|
template<typename U , typename AO = O> |
Array< U > | sort_idx (idx_type base) const |
|
template<typename T, typename O = std::less<T>>
struct arr::Array< T, O >
Defines an array type. It is multidimensional, the storage is one vector per column.