NestVector
-
class NestVector : public godzilla::Vector
Vector type consisting of nested subvectors, each stored separately.
Public Functions
-
Int get_nest_size() const
Returns the size of the nest vector.
-
Vector get_sub_vector(Int idx) const
Returns a single, sub-vector from a nest vector.
- Parameters:
idx – Index of the vector within the nest
-
std::vector<Vector> get_sub_vectors() const
Returns the entire array of vectors defining a nest vector.
- Returns:
Array of vectors
-
void set_sub_vector(Int idx, Vector sx)
Set a single component vector in a nest vector at specified index.
- Parameters:
idx – Index of the vector within the nest vector
sx – Vector at index
idxwithin the nest vector
-
void set_sub_vectors(const std::vector<Int> &idx, const std::vector<Vector> &sx)
Sets the component vectors at the specified indices in a nest vector.
- Parameters:
idx – Indices of component vectors that are to be replaced
sx – Array of vectors
-
NestVector duplicate() const
Duplicate the vector.
-
Int get_nest_size() const