Real Double-precision Row Vector Class. More...
#include <drovector.hpp>
Public Member Functions | |
drovector () | |
drovector (const drovector &) | |
drovector (const _drovector &) | |
drovector (const CPPL_INT &, const CPPL_INT=0) | |
drovector (const char *) | |
~drovector () | |
_zrovector | to_zrovector () const |
double & | operator() (const CPPL_INT &) |
double | operator() (const CPPL_INT &) const |
drovector & | set (const CPPL_INT &, const double &) |
void | write (const char *) const |
void | read (const char *) |
void | clear () |
drovector & | zero () |
void | chsign () |
void | copy (const drovector &) |
void | shallow_copy (const _drovector &) |
void | alias (const drovector &) |
void | unalias () |
drovector & | resize (const CPPL_INT &, const CPPL_INT=0) |
void | stretch (const CPPL_INT &) |
drovector & | operator= (const drovector &) |
drovector & | operator= (const _drovector &) |
drovector & | operator+= (const drovector &) |
drovector & | operator+= (const _drovector &) |
drovector & | operator-= (const drovector &) |
drovector & | operator-= (const _drovector &) |
drovector & | operator*= (const double &) |
drovector & | operator/= (const double &) |
Public Attributes | |
CPPL_INT | l |
vector size More... | |
CPPL_INT | cap |
vector capacity More... | |
double * | array |
1D array to store vector data More... | |
Real Double-precision Row Vector Class.
Definition at line 3 of file drovector.hpp.
|
inline |
|
inline |
|
inline |
drovector constructor to cast _drovector
Definition at line 27 of file drovector-constructor.hpp.
References array, _drovector::array, cap, _drovector::cap, _drovector::l, l, and _drovector::nullify().
|
inline |
drovector constructor with size specification
Definition at line 39 of file drovector-constructor.hpp.
|
inline |
|
inline |
|
inline |
cast to _zrovector
Definition at line 3 of file drovector-cast.hpp.
References _, zrovector::array, array, i(), and l.
|
inline |
operator() for non-const object
Definition at line 3 of file drovector-io.hpp.
Referenced by read(), and write().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 90 of file drovector-io.hpp.
References i(), l, operator()(), and resize().
Referenced by drovector().
|
inline |
|
inline |
make vector into zero vector
Definition at line 13 of file drovector-misc.hpp.
Referenced by dgematrix::dgels(), operator%(), operator*(), dssmatrix::row(), dgsmatrix::row(), and zgematrix::zgels().
|
inline |
|
inline |
make a deep copy of the drovector
Definition at line 28 of file drovector-misc.hpp.
Referenced by operator=().
|
inline |
make a shallow copy of the vector
This function is not desinged to be used in project codes.
Definition at line 41 of file drovector-misc.hpp.
References array, _drovector::array, cap, _drovector::cap, _drovector::l, l, and _drovector::nullify().
Referenced by operator=().
|
inline |
make an alias of the vector
Be carefull to use this function not to cause double free.
Definition at line 54 of file drovector-misc.hpp.
|
inline |
|
inline |
resize vector
Definition at line 73 of file drovector-misc.hpp.
Referenced by dgematrix::dgels(), read(), and zgematrix::zgels().
|
inline |
|
inline |
drovector=_drovector operator
Definition at line 3 of file drovector-_drovector.hpp.
References shallow_copy().
|
inline |
drovector+=_drovector operator
Definition at line 15 of file drovector-_drovector.hpp.
References array, _drovector::array, _drovector::destroy(), i(), l, and _drovector::l.
|
inline |
drovector operator-=
Definition at line 34 of file drovector-_drovector.hpp.
References array, _drovector::array, _drovector::destroy(), i(), l, and _drovector::l.
|
inline |
|
inline |
|
friend |
Definition at line 59 of file drovector-io.hpp.
|
friend |
|
friend |
|
friend |
return the index of element having the largest absolute value in 0-based numbering system
Definition at line 24 of file drovector-calc.hpp.
|
friend |
|
friend |
convert user object to smart-temporary object
Definition at line 137 of file drovector-misc.hpp.
Referenced by to_zrovector().
+drovector operator
Definition at line 3 of file drovector-unary.hpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
drovector^T*drovector operator (inner product)
Definition at line 100 of file drovector-drovector.hpp.
|
friend |
drovector^T*drovector operator (inner product)
Definition at line 96 of file drovector-_drovector.hpp.
|
friend |
|
friend |
CPPL_INT drovector::l |
vector size
Definition at line 9 of file drovector.hpp.
Referenced by _(), alias(), chsign(), clear(), copy(), damax(), dgematrix::dgels(), drovector(), drovector_small< l >::drovector_small(), hadamerd(), idamax(), nrm2(), operator%(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), read(), resize(), set(), shallow_copy(), stretch(), swap(), t(), to_zrovector(), unalias(), write(), zero(), and zgematrix::zgels().
CPPL_INT drovector::cap |
vector capacity
Definition at line 10 of file drovector.hpp.
Referenced by _(), alias(), clear(), copy(), drovector(), resize(), shallow_copy(), stretch(), swap(), and unalias().
double* drovector::array |
1D array to store vector data
Definition at line 11 of file drovector.hpp.
Referenced by _(), alias(), chsign(), clear(), copy(), damax(), drovector(), drovector_small< l >::drovector_small(), idamax(), nrm2(), operator%(), operator()(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<<(), operator=(), resize(), set(), shallow_copy(), stretch(), swap(), t(), to_zrovector(), unalias(), zero(), and ~drovector().