ztsdb
Public Member Functions | Public Attributes | List of all members
arr::BoolIndex Struct Reference

Public Member Functions

bool getfirst (idx_type &val, idx_type &i) const
 
bool getnext (idx_type &val, idx_type &i) const
 
size_t trueSize () const
 
size_t size () const
 
template<typename T >
void subset (Vector< T > &rv, const Vector< T > &v) const
 
template<typename T >
void subset (Vector< T > &rv, const Vector< T > &v, idx_type &ii) const
 
template<typename T , typename U >
void subassign (Vector< T > &rv, const 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

const Vector< bool > & vb
 

Member Function Documentation

◆ subset()

template<typename T >
void arr::BoolIndex::subset ( Vector< T > &  rv,
const Vector< T > &  v,
idx_type &  ii 
) 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: