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 () | |
template<> | |
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 36 of file svectorbase.h.
Definition at line 52 of file svectorbase.h.
Nonzero | ( | ) |
Definition at line 58 of file svectorbase.h.
Definition at line 44 of file svectorbase.h.
Referenced by SVectorBase< Real >::assignArray(), and SVectorBase< Real >::SVectorBase().
Definition at line 70 of file svectorbase.h.
int idx |
Index of nonzero element.
Definition at line 41 of file svectorbase.h.
Referenced by SVectorBase< Real >::add(), SSVectorBase< Real >::assign2product1(), SSVectorBase< Real >::assign2productAndSetup(), SSVectorBase< Real >::assign2productFull(), SSVectorBase< Real >::assign2productShort(), SVectorBase< Real >::assignArray(), SVectorBase< Real >::dim(), SVectorBase< Real >::index(), SVectorBase< Real >::isConsistent(), SPxMainSM::IdxCompare::operator()(), SVectorBase< Real >::operator*(), Nonzero< Real >::operator=(), SVectorBase< Real >::operator=(), SVectorBase< Real >::pos(), SVectorBase< Real >::scaleAssign(), and SVectorBase< Real >::sort().
R val |
Value of nonzero element.
Definition at line 40 of file svectorbase.h.
Referenced by SVectorBase< Real >::add(), SSVectorBase< Real >::assign2product1(), SSVectorBase< Real >::assign2productAndSetup(), SSVectorBase< Real >::assign2productFull(), SSVectorBase< Real >::assign2productShort(), SVectorBase< Real >::assignArray(), SVectorBase< Real >::isConsistent(), SVectorBase< Real >::length2(), SVectorBase< Real >::maxAbs(), SVectorBase< Real >::minAbs(), SPxMainSM::ElementCompare::operator()(), SVectorBase< Real >::operator*(), SVectorBase< Real >::operator*=(), Nonzero< Real >::operator=(), SVectorBase< Real >::operator=(), SVectorBase< Real >::operator[](), SVectorBase< Real >::scaleAssign(), and SVectorBase< Real >::value().