|
SoPlex
|
Semi sparse vector. More...
#include <ssvectorbase.h>
Public Member Functions | |
| SSVectorBase< Rational > & | assign (const SVectorBase< Rational > &rhs) |
Assigns only the elements of rhs. | |
Methods for setup SSVectorBases | |
/** | |
| int | index (int n) const |
Returns index of the n 'th nonzero element. | |
| R | value (int n) const |
Returns value of the n 'th nonzero element. | |
| int | pos (int i) const |
Finds the position of index i in the IdxSet, or -1 if i doesn't exist. | |
| int | size () const |
| Returns the number of nonzeros. | |
| void | add (int i, R x) |
Adds nonzero (i, x) to SSVectorBase. | |
| void | setValue (int i, R x) |
Sets i 'th element to x. | |
| void | scaleValue (int i, int scaleExp) |
Scale i 'th element by a. | |
| void | clearIdx (int i) |
Clears element i. | |
| void | clearNum (int n) |
Sets n 'th nonzero element to 0 (index n must exist). | |
Methods independent of the Status | |
| R | operator[] (int i) const |
Returns i 'th value. | |
| const int * | indexMem () const |
| Returns array indices. | |
| const R * | values () const |
| Returns array values. | |
| const IdxSet & | indices () const |
| Returns indices. | |
| int * | altIndexMem () |
| Returns array indices. | |
| R * | altValues () |
| Returns array values. | |
| IdxSet & | altIndices () |
| Returns indices. | |
Arithmetic operations | |
| template<class S> | |
| SSVectorBase< R > & | operator+= (const VectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| SSVectorBase< R > & | operator+= (const SVectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| SSVectorBase< R > & | operator+= (const SSVectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| SSVectorBase< R > & | operator-= (const VectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| SSVectorBase< R > & | operator-= (const SVectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| SSVectorBase< R > & | operator-= (const SSVectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| SSVectorBase< R > & | operator*= (S x) |
| Scaling. | |
| template<class S> | |
| R | operator* (const SSVectorBase< S > &w) |
| template<class S, class T> | |
| SSVectorBase< R > & | multAdd (S xx, const SVectorBase< T > &vec) |
| Addition of a scaled vector. | |
| template<class S, class T> | |
| SSVectorBase< R > & | multAdd (S x, const VectorBase< T > &vec) |
| Addition of a scaled vector. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assignPWproduct4setup (const SSVectorBase< S > &x, const SSVectorBase< T > &y) |
| Assigns pair wise vector product to SSVectorBase. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2product (const SSVectorBase< S > &x, const SVSetBase< T > &A) |
| Assigns \(x^T \cdot A\) to SSVectorBase. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2product4setup (const SVSetBase< S > &A, const SSVectorBase< T > &x, Timer *timeSparse, Timer *timeFull, int &nCallsSparse, int &nCallsFull) |
Assigns SSVectorBase to \(A \cdot x\) for a setup x. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2productAndSetup (const SVSetBase< S > &A, SSVectorBase< T > &x) |
Assigns SSVectorBase to \(A \cdot x\) thereby setting up x. | |
| R | maxAbs () const |
| Maximum absolute value, i.e., infinity norm. | |
| R | length2 () const |
| Squared euclidian norm. | |
| R | length () const |
| Floating point approximation of euclidian norm (without any approximation guarantee). | |
Miscellaneous | |
| int | dim () const |
| Dimension of VectorBase. | |
| void | reDim (int newdim) |
Resets dimension to newdim. | |
| void | setSize (int n) |
| Sets number of nonzeros (thereby unSetup SSVectorBase). | |
| void | reMem (int newsize) |
Resets memory consumption to newsize. | |
| void | clear () |
| Clears vector. | |
| bool | isConsistent () const |
| consistency check. | |
Constructors / Destructors | |
| SSVectorBase (int p_dim, std::shared_ptr< Tolerances > tol=nullptr) | |
| Default constructor. | |
| template<class S> | |
| SSVectorBase (const SSVectorBase< S > &vec) | |
| Copy constructor. | |
| SSVectorBase (const SSVectorBase< R > &vec) | |
| Copy constructor. | |
| template<class S> | |
| SSVectorBase (const VectorBase< S > &vec) | |
Constructs nonsetup copy of vec. | |
| template<class S> | |
| void | setup_and_assign (SSVectorBase< S > &rhs) |
Sets up rhs vector, and assigns it. | |
| template<class S> | |
| SSVectorBase< R > & | assign (const SVectorBase< S > &rhs) |
Assigns only the elements of rhs. | |
| template<class S> | |
| SSVectorBase< R > & | operator= (const SSVectorBase< S > &rhs) |
| Assignment operator. | |
| SSVectorBase< R > & | operator= (const SSVectorBase< R > &rhs) |
| Assignment operator. | |
| template<class S> | |
| SSVectorBase< R > & | operator= (const SVectorBase< S > &rhs) |
| Assignment operator. | |
| template<class S> | |
| SSVectorBase< R > & | operator= (const VectorBase< S > &rhs) |
| Assignment operator. | |
| ~SSVectorBase () | |
| destructor | |
| Public Member Functions inherited from VectorBase< R > | |
| bool | isConsistent () const |
| Consistency check. | |
| Rational | operator* (const VectorBase< Rational > &vec) const |
| Inner product. | |
| VectorBase () | |
| Constructor. | |
| VectorBase (int dimen, R *p_val) | |
| VectorBase (int p_dimen) | |
| template<typename S> | |
| VectorBase (const VectorBase< S > &vec) | |
| VectorBase (const VectorBase< R > &&vec) noexcept | |
| VectorBase (const VectorBase< R > &vec) | |
| template<class S> | |
| VectorBase< R > & | operator= (const VectorBase< S > &vec) |
| Assignment operator. | |
| VectorBase< R > & | operator= (const VectorBase< R > &vec) |
| Assignment operator. | |
| VectorBase< R > & | operator= (const VectorBase< R > &&vec) |
| Move assignment operator. | |
| VectorBase< R > & | scaleAssign (int scaleExp, const VectorBase< R > &vec) |
| scale and assign | |
| VectorBase< R > & | scaleAssign (const int *scaleExp, const VectorBase< R > &vec, bool negateExp=false) |
| scale and assign | |
| template<class S> | |
| VectorBase< R > & | operator= (const SVectorBase< S > &vec) |
| Assignment operator. | |
| template<class S> | |
| VectorBase< R > & | operator= (const SSVectorBase< S > &vec) |
| Assignment operator. | |
| template<class S> | |
| VectorBase< R > & | assign (const SVectorBase< S > &vec) |
Assign values of vec. | |
| template<class S> | |
| VectorBase< R > & | assign (const SSVectorBase< S > &vec) |
Assign values of vec. | |
| void | clear () |
| Set vector to contain all-zeros (keeping the same length). | |
| template<class S> | |
| VectorBase< R > & | operator+= (const VectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| VectorBase< R > & | operator+= (const SVectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| VectorBase< R > & | operator+= (const SSVectorBase< S > &vec) |
| Addition. | |
| template<class S> | |
| VectorBase< R > & | operator-= (const VectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| VectorBase< R > & | operator-= (const SVectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| VectorBase< R > & | operator-= (const SSVectorBase< S > &vec) |
| Subtraction. | |
| template<class S> | |
| VectorBase< R > & | operator*= (const S &x) |
| Scaling. | |
| template<class S> | |
| VectorBase< R > & | operator/= (const S &x) |
| Division. | |
| R | operator* (const VectorBase< R > &vec) const |
| Inner product. | |
| R | operator* (const SVectorBase< R > &vec) const |
| Inner product. | |
| R | operator* (const SSVectorBase< R > &vec) const |
| Inner product. | |
| R | maxAbs () const |
| Maximum absolute value, i.e., infinity norm. | |
| R | minAbs () const |
| Minimum absolute value. | |
| R | length () const |
| Floating point approximation of euclidian norm (without any approximation guarantee). | |
| R | length2 () const |
| Squared norm. | |
| template<class S, class T> | |
| VectorBase< R > & | multAdd (const S &x, const VectorBase< T > &vec) |
| Addition of scaled vector. | |
| template<class S, class T> | |
| VectorBase< R > & | multAdd (const S &x, const SVectorBase< T > &vec) |
| Addition of scaled vector. | |
| template<class S, class T> | |
| VectorBase< R > & | multSub (const S &x, const SVectorBase< T > &vec) |
| Subtraction of scaled vector. | |
| template<class S, class T> | |
| VectorBase< R > & | multAdd (const S &x, const SSVectorBase< T > &vec) |
| Addition of scaled vector. | |
| int | dim () const |
| Dimension of vector. | |
| R & | operator[] (int n) |
Return n 'th value by reference. | |
| const R & | operator[] (int n) const |
Return n 'th value. | |
| const std::vector< R > & | vec () |
| Return underlying std::vector. | |
| R * | get_ptr () |
| Conversion to C-style pointer. | |
| const R * | get_const_ptr () const |
| Conversion to C-style pointer. | |
| std::vector< R >::const_iterator | begin () const |
| std::vector< R >::iterator | begin () |
| std::vector< R >::const_iterator | end () const |
| std::vector< R >::iterator | end () |
| int | memSize () const |
| void | reDim (int newdim, const bool setZero=true) |
Resets VectorBase's dimension to newdim. | |
| void | reSize (int newsize) |
Resets VectorBase's memory size to newsize. | |
| const VectorBase< R > | operator- (const VectorBase< R > &vec) const |
| const VectorBase< R > | operator+ (const VectorBase< R > &v) const |
Protected Attributes | |
| std::shared_ptr< Tolerances > | _tolerances |
| Protected Attributes inherited from VectorBase< R > | |
| std::vector< R > | val |
| Values of vector. | |
| Protected Attributes inherited from IdxSet | |
| int | num |
| number of used indices | |
| int | len |
| length of array idx | |
| int * | idx |
| array of indices | |
| bool | freeArray |
| true iff idx should be freed inside of this object | |
Private Member Functions | |
Private helpers | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2product1 (const SVSetBase< S > &A, const SSVectorBase< T > &x) |
| Assignment helper. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2productShort (const SVSetBase< S > &A, const SSVectorBase< T > &x) |
| Assignment helper. | |
| template<class S, class T> | |
| SSVectorBase< R > & | assign2productFull (const SVSetBase< S > &A, const SSVectorBase< T > &x) |
| Assignment helper. | |
Friends | |
| class | VectorBase< R > |
| template<class S> | |
| class | DSVectorBase |
Data | |
| bool | setupStatus |
| Is the SSVectorBase set up? | |
| void | setMax (int newmax) |
Allocates enough space to accommodate newmax values. | |
Additional Inherited Members | |
| Protected Member Functions inherited from IdxSet | |
| IdxSet (int n, int imem[], int l=0) | |
| constructor. | |
| IdxSet () | |
| default constructor. | |
| virtual | ~IdxSet () |
| destructor. | |
| IdxSet & | operator= (const IdxSet &set) |
| assignment operator. | |
| IdxSet (const IdxSet &) | |
| copy constructor. | |
| int | index (int n) const |
access n 'th index. | |
| int | size () const |
| returns the number of used indices. | |
| int | max () const |
| returns the maximal number of indices which can be stored in IdxSet. | |
| int | dim () const |
| returns the maximal index. | |
| int | pos (int i) const |
returns the position of index i. | |
| void | add (int n) |
appends n uninitialized indices. | |
| void | add (const IdxSet &set) |
appends all indices of set. | |
| void | add (int n, const int i[]) |
appends n indices in i. | |
| void | addIdx (int i) |
appends index i. | |
| void | remove (int n, int m) |
removes indices at position numbers n through m. | |
| void | remove (int n) |
removes n 'th index. | |
| void | clear () |
| removes all indices. | |
| bool | isConsistent () const |
| consistency check. | |
Semi sparse vector.
This class implements semi-sparse vectors. Such are VectorBases where the indices of its nonzero elements can be stored in an extra IdxSet. Only elements with absolute value > #getEpsilon() are considered to be nonzero. Since really storing the nonzeros is not always convenient, an SSVectorBase provides two different stati: setup and not setup. An SSVectorBase being setup means that the nonzero indices are available, otherwise an SSVectorBase is just an ordinary VectorBase with an empty IdxSet. Note that due to arithmetic operation, zeros can slip in, i.e., it is only guaranteed that at least every non-zero is in the IdxSet.
Definition at line 56 of file ssvectorbase.h.
|
explicit |
Default constructor.
Definition at line 691 of file ssvectorbase.h.
Referenced by assign(), assign2product(), assign2product1(), assign2product4setup(), assign2productAndSetup(), assign2productFull(), assign2productShort(), assignPWproduct4setup(), multAdd(), operator+=(), operator-=(), and operator=().
| SSVectorBase | ( | const SSVectorBase< S > & | vec | ) |
Copy constructor.
Definition at line 706 of file ssvectorbase.h.
| SSVectorBase | ( | const SSVectorBase< R > & | vec | ) |
Copy constructor.
The redundancy with the copy constructor below is necessary since otherwise the compiler doesn't realize that it could use the more general one with S = R and generates a shallow copy constructor.
Definition at line 723 of file ssvectorbase.h.
Constructs nonsetup copy of vec.
Definition at line 738 of file ssvectorbase.h.
| ~SSVectorBase | ( | ) |
destructor
Definition at line 909 of file ssvectorbase.h.
| void add | ( | int | i, |
| R | x ) |
Adds nonzero (i, x) to SSVectorBase.
No nonzero with index i must exist in the SSVectorBase.
Definition at line 238 of file ssvectorbase.h.
| int * altIndexMem | ( | ) |
Returns array indices.
Definition at line 341 of file ssvectorbase.h.
| IdxSet & altIndices | ( | ) |
Returns indices.
Definition at line 355 of file ssvectorbase.h.
| R * altValues | ( | ) |
Returns array values.
Definition at line 348 of file ssvectorbase.h.
| SSVectorBase< Rational > & assign | ( | const SVectorBase< Rational > & | rhs | ) |
Assigns only the elements of rhs.
Definition at line 865 of file basevectors.h.
Assigns only the elements of rhs.
Definition at line 831 of file basevectors.h.
References SVectorBase< R >::dim(), VectorBase< R >::dim(), IdxSet::idx, SVectorBase< R >::index(), isConsistent(), IdxSet::num, setupStatus, SVectorBase< R >::size(), SSVectorBase(), VectorBase< R >::val, and SVectorBase< R >::value().
Referenced by operator=().
| SSVectorBase< R > & assign2product | ( | const SSVectorBase< S > & | x, |
| const SVSetBase< T > & | A ) |
Assigns \(x^T \cdot A\) to SSVectorBase.
Definition at line 508 of file basevectors.h.
References IdxSet::addIdx(), clear(), dim(), SVSetBase< R >::num(), SSVectorBase(), and VectorBase< R >::val.
|
private |
Assignment helper.
Definition at line 601 of file basevectors.h.
References clear(), SVectorBase< R >::element(), IdxSet::idx, Nonzero< R >::idx, isConsistent(), IdxSet::num, size(), SVectorBase< R >::size(), SSVectorBase(), Nonzero< R >::val, and VectorBase< R >::val.
| SSVectorBase< R > & assign2product4setup | ( | const SVSetBase< S > & | A, |
| const SSVectorBase< T > & | x, | ||
| Timer * | timeSparse, | ||
| Timer * | timeFull, | ||
| int & | nCallsSparse, | ||
| int & | nCallsFull ) |
Assigns SSVectorBase to \(A \cdot x\) for a setup x.
Definition at line 539 of file basevectors.h.
References SSVectorBase().
| SSVectorBase< R > & assign2productAndSetup | ( | const SVSetBase< S > & | A, |
| SSVectorBase< T > & | x ) |
Assigns SSVectorBase to \(A \cdot x\) thereby setting up x.
Definition at line 773 of file basevectors.h.
References clear(), dim(), SVectorBase< R >::element(), VectorBase< R >::end(), IdxSet::idx, Nonzero< R >::idx, isConsistent(), IdxSet::num, setupStatus, SVectorBase< R >::size(), SSVectorBase(), Nonzero< R >::val, and VectorBase< R >::val.
|
private |
Assignment helper.
Definition at line 729 of file basevectors.h.
References clear(), SVectorBase< R >::element(), IdxSet::idx, Nonzero< R >::idx, size(), SVectorBase< R >::size(), SSVectorBase(), Nonzero< R >::val, and VectorBase< R >::val.
|
private |
Assignment helper.
Definition at line 637 of file basevectors.h.
References clear(), SVectorBase< R >::element(), IdxSet::idx, Nonzero< R >::idx, isConsistent(), soplex::isPlusZero(), IdxSet::len, IdxSet::num, size(), SVectorBase< R >::size(), SSVectorBase(), Nonzero< R >::val, and VectorBase< R >::val.
| SSVectorBase< R > & assignPWproduct4setup | ( | const SSVectorBase< S > & | x, |
| const SSVectorBase< T > & | y ) |
Assigns pair wise vector product to SSVectorBase.
Assigns pair wise vector product of setup x and setup y to SSVectorBase.
Definition at line 447 of file basevectors.h.
References clear(), dim(), index(), setupStatus, size(), SSVectorBase(), and VectorBase< R >::val.
| void clear | ( | ) |
Clears vector.
Definition at line 633 of file ssvectorbase.h.
Referenced by assign2product(), assign2product1(), assign2productAndSetup(), assign2productFull(), assign2productShort(), assignPWproduct4setup(), SPxBasisBase< Real >::coSolve(), operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::setup_and_assign(), SPxBasisBase< Real >::solve(), and SPxBasisBase< Real >::solve4update().
| void clearIdx | ( | int | i | ) |
Clears element i.
Definition at line 283 of file ssvectorbase.h.
| void clearNum | ( | int | n | ) |
Sets n 'th nonzero element to 0 (index n must exist).
Definition at line 299 of file ssvectorbase.h.
Referenced by SSVectorBase< Real >::setValue().
| int dim | ( | ) | const |
Dimension of VectorBase.
Definition at line 593 of file ssvectorbase.h.
Referenced by assign2product(), assign2productAndSetup(), SSVectorBase< BP >::assign2productAndSetup(), assignPWproduct4setup(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), and SSVectorBase< Real >::setup_and_assign().
| int index | ( | int | n | ) | const |
Returns index of the n 'th nonzero element.
Definition at line 204 of file ssvectorbase.h.
Referenced by assignPWproduct4setup(), SSVectorBase< Real >::clearNum(), SSVectorBase< Real >::operator*(), SSVectorBase< Real >::operator*=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SVectorBase< R >::operator=(), SSVectorBase< Real >::reDim(), and SSVectorBase< Real >::setup_and_assign().
| const int * indexMem | ( | ) | const |
Returns array indices.
Definition at line 323 of file ssvectorbase.h.
| const IdxSet & indices | ( | ) | const |
Returns indices.
Definition at line 335 of file ssvectorbase.h.
| bool isConsistent | ( | ) | const |
consistency check.
Definition at line 650 of file ssvectorbase.h.
Referenced by assign(), assign2product1(), assign2productAndSetup(), assign2productShort(), SSVectorBase< Real >::clear(), SSVectorBase< Real >::clearIdx(), SSVectorBase< Real >::clearNum(), multAdd(), SSVectorBase< Real >::operator*=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::reDim(), SSVectorBase< Real >::reMem(), SSVectorBase< Real >::scaleValue(), SSVectorBase< Real >::setup_and_assign(), SSVectorBase< Real >::setValue(), SSVectorBase< Real >::SSVectorBase(), SSVectorBase< Real >::SSVectorBase(), SSVectorBase< Real >::SSVectorBase(), and SSVectorBase< Real >::SSVectorBase().
| R length | ( | ) | const |
Floating point approximation of euclidian norm (without any approximation guarantee).
Definition at line 581 of file ssvectorbase.h.
| R length2 | ( | ) | const |
Squared euclidian norm.
Definition at line 565 of file ssvectorbase.h.
Referenced by SSVectorBase< Real >::length().
| R maxAbs | ( | ) | const |
Maximum absolute value, i.e., infinity norm.
Definition at line 544 of file ssvectorbase.h.
| SSVectorBase< R > & multAdd | ( | S | x, |
| const VectorBase< T > & | vec ) |
Addition of a scaled vector.
Definition at line 511 of file ssvectorbase.h.
| SSVectorBase< R > & multAdd | ( | S | xx, |
| const SVectorBase< T > & | vec ) |
Addition of a scaled vector.
Definition at line 387 of file basevectors.h.
References IdxSet::addIdx(), IdxSet::idx, isConsistent(), VectorBase< R >::multAdd(), IdxSet::num, SSVectorBase(), VectorBase< R >::val, and VectorBase< R >::vec().
Definition at line 461 of file ssvectorbase.h.
Scaling.
Definition at line 446 of file ssvectorbase.h.
Addition.
Definition at line 388 of file ssvectorbase.h.
Addition.
Definition at line 348 of file basevectors.h.
References VectorBase< R >::operator+=(), setupStatus, SSVectorBase(), and VectorBase< R >::vec().
Addition.
Definition at line 369 of file ssvectorbase.h.
Subtraction.
Definition at line 425 of file ssvectorbase.h.
Subtraction.
Definition at line 367 of file basevectors.h.
References VectorBase< R >::operator-=(), setupStatus, SSVectorBase(), and VectorBase< R >::vec().
Subtraction.
Definition at line 406 of file ssvectorbase.h.
| SSVectorBase< R > & operator= | ( | const SSVectorBase< R > & | rhs | ) |
Assignment operator.
Definition at line 848 of file ssvectorbase.h.
Assignment operator.
Definition at line 802 of file ssvectorbase.h.
Assignment operator.
Definition at line 899 of file basevectors.h.
References assign(), clear(), and SSVectorBase().
Assignment operator.
Definition at line 898 of file ssvectorbase.h.
| R operator[] | ( | int | i | ) | const |
Returns i 'th value.
Definition at line 317 of file ssvectorbase.h.
| int pos | ( | int | i | ) | const |
Finds the position of index i in the IdxSet, or -1 if i doesn't exist.
Definition at line 221 of file ssvectorbase.h.
Referenced by SSVectorBase< Real >::add(), SSVectorBase< Real >::clearIdx(), SSVectorBase< Real >::isConsistent(), and SSVectorBase< Real >::setValue().
| void reDim | ( | int | newdim | ) |
Resets dimension to newdim.
Definition at line 599 of file ssvectorbase.h.
| void reMem | ( | int | newsize | ) |
Resets memory consumption to newsize.
Definition at line 624 of file ssvectorbase.h.
| void scaleValue | ( | int | i, |
| int | scaleExp ) |
Scale i 'th element by a.
Definition at line 272 of file ssvectorbase.h.
|
private |
Allocates enough space to accommodate newmax values.
Definition at line 71 of file ssvectorbase.h.
Referenced by SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::reDim(), SSVectorBase< Real >::reMem(), and SSVectorBase< Real >::setup_and_assign().
| void setSize | ( | int | n | ) |
Sets number of nonzeros (thereby unSetup SSVectorBase).
Definition at line 614 of file ssvectorbase.h.
Sets up rhs vector, and assigns it.
Definition at line 751 of file ssvectorbase.h.
| void setValue | ( | int | i, |
| R | x ) |
Sets i 'th element to x.
Definition at line 248 of file ssvectorbase.h.
| int size | ( | ) | const |
Returns the number of nonzeros.
Definition at line 229 of file ssvectorbase.h.
Referenced by assign2product1(), SSVectorBase< BP >::assign2productAndSetup(), assign2productFull(), assign2productShort(), assignPWproduct4setup(), DSVectorBase< R >::DSVectorBase(), SSVectorBase< Real >::operator*(), SSVectorBase< Real >::operator*=(), DSVectorBase< R >::operator=(), SSVectorBase< Real >::operator=(), SSVectorBase< Real >::operator=(), SVectorBase< R >::operator=(), SSVectorBase< Real >::setup_and_assign(), and SSVectorBase< Real >::value().
| R value | ( | int | n | ) | const |
Returns value of the n 'th nonzero element.
Definition at line 212 of file ssvectorbase.h.
Referenced by SVectorBase< R >::operator=().
| const R * values | ( | ) | const |
Returns array values.
Definition at line 329 of file ssvectorbase.h.
|
friend |
Definition at line 61 of file ssvectorbase.h.
|
friend |
Definition at line 1 of file ssvectorbase.h.
|
protected |
Definition at line 84 of file ssvectorbase.h.
Referenced by SSVectorBase< Real >::operator=(), and SSVectorBase< Real >::operator=().
|
private |
Is the SSVectorBase set up?
Definition at line 68 of file ssvectorbase.h.
Referenced by assign(), assign2productAndSetup(), assignPWproduct4setup(), operator+=(), operator-=(), and SSVectorBase< Real >::setup_and_assign().