Sparse vector nonzero element. More...
#include <svectorbase.h>
Public Member Functions | |
template<class S > | |
Nonzero< R > & | operator= (const Nonzero< S > &vec) |
template<class S > | |
Nonzero (const Nonzero< S > &vec) | |
Nonzero () | |
Nonzero< Real > & | operator= (const Nonzero< S > &vec) |
Public Attributes | |
R | val |
Value of nonzero element. More... | |
int | idx |
Index of nonzero element. More... | |
Sparse vector nonzero element.
SVectorBase keeps its nonzeros in an array of Nonzeros providing members for saving the index and value.
Definition at line 46 of file svectorbase.h.
Definition at line 63 of file svectorbase.h.
Nonzero | ( | ) |
Definition at line 69 of file svectorbase.h.
Definition at line 54 of file svectorbase.h.
References Nonzero< R >::idx, and Nonzero< R >::val.
Definition at line 81 of file svectorbase.h.
References Nonzero< R >::idx, and Nonzero< R >::val.
int idx |
Index of nonzero element.
Definition at line 51 of file svectorbase.h.
Referenced by SVectorBase< R >::add(), SSVectorBase< Rational >::assign(), SSVectorBase< R >::assign2product1(), SSVectorBase< R >::assign2productAndSetup(), SSVectorBase< R >::assign2productShort(), SVectorBase< R >::dim(), SPxMainSM< R >::IdxCompare::operator()(), SVectorBase< R >::operator*(), Nonzero< R >::operator=(), SVectorBase< R >::operator=(), and SVectorBase< R >::sort().
R val |
Value of nonzero element.
Definition at line 50 of file svectorbase.h.
Referenced by SVectorBase< R >::add(), SSVectorBase< Rational >::assign(), SSVectorBase< R >::assign2product1(), SSVectorBase< R >::assign2productAndSetup(), SSVectorBase< R >::assign2productShort(), SVectorBase< R >::length2(), SPxMainSM< R >::ElementCompare::operator()(), SVectorBase< R >::operator*(), SVectorBase< R >::operator*=(), Nonzero< R >::operator=(), and SVectorBase< R >::operator=().