All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UnitVector Class Reference Sparse vector
Inheritance diagram for UnitVector:
![]()
Detailed DescriptionSparse vector A UnitVector is an SVector that can take only one nonzero value with value 1 but arbitrary index.
Definition at line 42 of file unitvector.h. Constructor & Destructor Documentation
construct Definition at line 73 of file unitvector.h. References SVector::add(), and UnitVector::isConsistent().
copy constructor Definition at line 81 of file unitvector.h. References UnitVector::isConsistent(), and UnitVector::themem.
destructor Definition at line 102 of file unitvector.h. Member Function Documentation
consistency check Definition at line 23 of file unitvector.cpp. References SVector::isConsistent(), SVector::max(), SVector::mem(), MSGinconsistent, SVector::size(), and UnitVector::themem. Referenced by UnitVector::operator=(), and UnitVector::UnitVector().
assignment Definition at line 90 of file unitvector.h. References UnitVector::isConsistent(), and UnitVector::themem.
Member Data Documentation
memory for 1st and 2nd sparse vector entry (themem[0]/themem[1]) Definition at line 49 of file unitvector.h. Referenced by UnitVector::isConsistent(), UnitVector::operator=(), and UnitVector::UnitVector().
|