#include <SparseVec.h>
Inheritance diagram for TSparseVec:
Public Members | |||
![]() | ![]() | TSparseVec () | |
![]() | ![]() | TSparseVec (Int n) | |
![]() | ![]() | TSparseVec (Int n, Int indices[], TVReal elts[]) | |
![]() | ![]() | TSparseVec (Int n, Int idx0, double elt0, ...) | |
![]() | ![]() | TSparseVec (const TSparseVec &v) | |
![]() | ![]() | TSparseVec (const TSubSVec &v) | |
![]() | ![]() | TSparseVec (const TVec &v) | |
![]() | ![]() | TSparseVec (Int n, ZeroOrOne) | |
![]() | ![]() | TSparseVec (Int n, Axis a) | |
![]() | ![]() | ~TSparseVec () | |
![]() | ![]() | Int | Elts () const |
![]() | ![]() | TSparseVec& | operator= (const TSparseVec &v) |
![]() | ![]() | TSparseVec& | operator= (ZeroOrOne k) |
![]() | ![]() | TSparseVec& | operator= (Axis k) |
![]() | ![]() | TSparseVec& | operator= (const TSubSVec &v) |
![]() | ![]() | TSparseVec& | operator= (const TVec &v) |
![]() | ![]() | Void | SetSize (Int n) |
![]() | ![]() | TSparseVec | Overlay (const TSparseVec &a) const |
![]() | ![]() | Void | SetElts (Int idx0, double elt0, ...) |
![]() | ![]() | Void | Set (Int index, TVReal elt) |
![]() | ![]() | TVReal | Get (Int index) const |
![]() | ![]() | Void | MakeZero () |
![]() | ![]() | Void | MakeUnit (Int i, TVReal k = vl_one) |
![]() | ![]() | Void | MakeBlock (TVReal k = vl_one) |
![]() | ![]() | Void | SetNumElts (Int n) |
![]() | ![]() | Void | Begin () |
![]() | ![]() | Void | AddElt (Int i, TVReal a) |
![]() | ![]() | Void | AddNZElt (Int i, TVReal a) |
![]() | ![]() | Void | AddNZElt (const TSparsePair &p) |
![]() | ![]() | Void | End () |
Static Public Members | |||
![]() | ![]() | Void | SetCompactPrint (Bool on) |
![]() | ![]() | Bool | IsCompact () |
![]() | ![]() | Void | SetFuzz (TVReal fuzz) |
![]() | ![]() | Bool | IsNonZero (TVReal a) |
Protected Members | |||
![]() | ![]() | Int | elts |
Static Protected Members | |||
![]() | ![]() | Bool | compactPrint = false |
![]() | ![]() | TVReal | fuzz = 1e-10 |
Definition at line 44 of file SparseVec.h.
TSparseVec::TSparseVec () |
Definition at line 22 of file SparseVec.cc.
TSparseVec::TSparseVec (Int n) |
Definition at line 27 of file SparseVec.cc.
TSparseVec::TSparseVec (Int n, Int indices[], TVReal elts[]) |
Definition at line 46 of file SparseVec.cc.
TSparseVec::TSparseVec (Int n, Int idx0, double elt0, ...) |
Definition at line 62 of file SparseVec.cc.
TSparseVec::TSparseVec (const TSparseVec & v) |
Definition at line 32 of file SparseVec.cc.
TSparseVec::TSparseVec (const TSubSVec & v) |
Definition at line 36 of file SparseVec.cc.
TSparseVec::TSparseVec (const TVec & v) |
Definition at line 41 of file SparseVec.cc.
TSparseVec::TSparseVec (Int n, ZeroOrOne k) |
Definition at line 88 of file SparseVec.cc.
TSparseVec::TSparseVec (Int n, Axis a) |
Definition at line 94 of file SparseVec.cc.
TSparseVec::~TSparseVec () |
Definition at line 101 of file SparseVec.cc.
Void TSparseVec::AddElt (Int i, TVReal a) [inline]
|
Definition at line 111 of file SparseVec.h.
Void TSparseVec::AddNZElt (const TSparsePair & p) [inline]
|
Definition at line 115 of file SparseVec.h.
Void TSparseVec::AddNZElt (Int i, TVReal a) [inline]
|
Definition at line 113 of file SparseVec.h.
Void TSparseVec::Begin () [inline]
|
Definition at line 109 of file SparseVec.h.
Int TSparseVec::Elts () const [inline]
|
Definition at line 82 of file SparseVec.h.
Void TSparseVec::End () [inline]
|
Definition at line 117 of file SparseVec.h.
TVReal TSparseVec::Get (Int index) const |
Definition at line 341 of file SparseVec.cc.
Bool TSparseVec::IsCompact () [inline, static]
|
Definition at line 123 of file SparseVec.h.
Bool TSparseVec::IsNonZero (TVReal a) [inline, static]
|
Definition at line 125 of file SparseVec.h.
Void TSparseVec::MakeBlock (TVReal k = vl_one) |
Definition at line 161 of file SparseVec.cc.
Void TSparseVec::MakeUnit (Int i, TVReal k = vl_one) |
Definition at line 154 of file SparseVec.cc.
Void TSparseVec::MakeZero () |
Definition at line 148 of file SparseVec.cc.
TSparseVec TSparseVec::Overlay (const TSparseVec & b) const |
Definition at line 275 of file SparseVec.cc.
Void TSparseVec::Set (Int index, TVReal elt) |
Definition at line 325 of file SparseVec.cc.
Void TSparseVec::SetCompactPrint (Bool on) [static]
|
Definition at line 175 of file SparseVec.cc.
Void TSparseVec::SetElts (Int idx0, double elt0, ...) |
Definition at line 299 of file SparseVec.cc.
Void TSparseVec::SetFuzz (TVReal theFuzz) [static]
|
Definition at line 178 of file SparseVec.cc.
Void TSparseVec::SetNumElts (Int n) [inline]
|
Definition at line 107 of file SparseVec.h.
Void TSparseVec::SetSize (Int n) |
Definition at line 141 of file SparseVec.cc.
TSparseVec & TSparseVec::operator= (const TVec & v) |
Definition at line 120 of file SparseVec.cc.
TSparseVec & TSparseVec::operator= (const TSubSVec & v) |
Definition at line 135 of file SparseVec.cc.
TSparseVec & TSparseVec::operator= (Axis k) [inline]
|
Definition at line 86 of file SparseVec.h.
TSparseVec & TSparseVec::operator= (ZeroOrOne k) [inline]
|
Definition at line 85 of file SparseVec.h.
TSparseVec & TSparseVec::operator= (const TSparseVec & v) |
Definition at line 105 of file SparseVec.cc.
Bool TSparseVec::compactPrint = false [static, protected]
|
Definition at line 130 of file SparseVec.h.
Int TSparseVec::elts [protected]
|
Definition at line 132 of file SparseVec.h.
TVReal TSparseVec::fuzz = 1e-10 [static, protected]
|
Definition at line 131 of file SparseVec.h.