Member
|
Where defined
|
Description
|
enum
{ N = 0 }
|
|
|
sparsity
|
|
This is a sparse vector
|
entry_type
|
|
The index-value pair type
|
dimension
|
|
This is a 1D container
|
scaled_type
|
|
The scaled type
|
value_type
|
|
The value type
|
pointer
|
|
The type for pointers to the value type
|
size_type
|
|
The unsigned integral type for dimensions and indices
|
difference_type
|
|
The type for differences between iterators
|
reference
|
|
The type for references to the value type
|
const_reference
|
|
The type for const references to the value type
|
iterator
|
|
The iterator type
|
const_iterator
|
|
The const iterator type
|
reverse_iterator
|
|
The reverse iterator type
|
const_reverse_iterator
|
|
The const reverse iterator type
|
IndexArray
|
|
The type for the index array
|
IndexArrayRef
|
|
The reference type for the index array
|
subrange_type
|
|
The type for subrange vectors
|
iterator
__find_set (int i)
|
|
|
iterator
__find_normal (int i)
|
|
|
sparse1D ()
|
|
Default Constructor
|
sparse1D (size_type n)
|
|
Length N Constructor
|
sparse1D (const self& x)
|
|
Copy Constructor
|
template <class IndexArray>
sparse1D (const IndexArray& x, size_type n)
|
|
Construct from index array
|
self&
operator= (const self& x)
|
|
Assignment Operator
|
iterator
begin ()
|
Container
|
Return an iterator pointing to the beginning of the vector
|
iterator
end ()
|
Container
|
Return an iterator pointing past the end of the vector
|
const_iterator
begin () const
|
Container
|
Return a const iterator pointing to the begining of the vector
|
const_iterator
end () const
|
Container
|
Return a const iterator pointing past the end of the vector
|
reverse_iterator
rbegin ()
|
Reversible Container
|
Return a reverse iterator pointing to the last element of the vector
|
reverse_iterator
rend ()
|
Reversible Container
|
Return a reverse iterator pointing past the end of the vector
|
const_reverse_iterator
rbegin () const
|
Reversible Container
|
Return a const reverse iterator pointing to the last element of the vector
|
const_reverse_iterator
rend () const
|
Reversible Container
|
Return a const reverse iterator pointing past the end of the vector
|
const_reference
operator[] (int i) const
|
|
Element Access, return element with index i
|
reference
operator[] (int i)
|
|
Element Access, return element with index i
|
iterator
insert (int i, const value_type& value)
|
|
Insert the value at index i of the vector
|
void
clear ()
|
|
|
void
push_back (int i, const value_type& value)
|
|
|
int
size () const
|
|
Returns length of the vector (including non-zeroes)
|
int
nnz () const
|
|
Number of non-zero (stored) elements
|
template <class R> void
resize_imp (int n, R*)
|
|
|
template <class R> void
resize_imp (int n, R*)
|
|
|
void
resize (int n)
|
|
Resizes the vector to size n
|
rep_type&
get_rep ()
|
|
|
void
print () const
|
|
|
IndexArrayRef
nz_struct () const
|
|
Return an array of indices describing the non-zero structure
|