logical indexing, ie NumericVector[ LogicalVector ].
We should flip the problem and delegate the responsability of extracting to a class. For example do something like this;
template <typename T>
Extractor<Vector,T> operator[]( const T& x) ;
So that we define the meaning in a separate class Extractor or something. This way we would just have to redefine Extractor when we want to handle a new extractor type.
logical indexing, ie
NumericVector[ LogicalVector ].We should flip the problem and delegate the responsability of extracting to a class. For example do something like this;
So that we define the meaning in a separate class
Extractoror something. This way we would just have to redefineExtractorwhen we want to handle a new extractor type.