ztsdb
Public Member Functions | Public Attributes | List of all members
arr::IntIndexNeg_T< I > Struct Template Reference

Public Member Functions

 IntIndexNeg_T (const Vector< I > &vi_p, idx_type sz_p)
 
bool getfirst (idx_type &iv, idx_type &ii) const
 
bool getnext (idx_type &iv, idx_type &ii) const
 
size_t trueSize () const
 
size_t size () const
 
template<typename T >
void subset (Vector< T > &rv, const Vector< T > &v) const
 Subset 'v' and store in 'rv'.
 
template<typename T >
void subset (Vector< T > &rv, const Vector< T > &v, idx_type &ii, idx_type &iv, idx_type pos) const
 
template<typename T , typename U >
void subassign (Vector< T > &rv, U &u, idx_type &vj) const
 
template<typename T , typename U >
void subassignScalar (Vector< T > &rv, U u) const
 
void selectNames (Dname &tonames, const Dname &fromnames) const
 

Public Attributes

Vector< I > vi
 
idx_type sz
 

Member Function Documentation

◆ subset()

template<typename I >
template<typename T >
void arr::IntIndexNeg_T< I >::subset ( Vector< T > &  rv,
const Vector< T > &  v,
idx_type &  ii,
idx_type &  iv,
idx_type  pos 
) const
inline

Subset and store state in 'ii' (index for index). 'iv' is the index into 'v' when considered as a vector. This is useful in order to subset a matrix as if it were a vector. This function is called repeatedly on the columns of the matrix.


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