template<class T>
class utl::NDArray< T, 1 >
NDArray<T,1> is a vector class which uses blas mkl.
- Author
- Jian Cheng
- Date
- 08-22-2014
Definition at line 36 of file utlVector.h.
|
void | CopyData (T *const data, const SizeType size) |
|
void | GetDiagonalMatrix (NDArray< T, 2 > &mat) const |
|
NDArray< T, 2 > | GetDiagonalMatrix () const |
|
NDArray< T, 1 > | GetRotateAxis (const double alpha, const NDArray< T, 1 > &axis) |
|
void | GetSubVector (const std::vector< int > &indexVec, NDArray< T, 1 > &vec) const |
|
NDArray< T, 1 > | GetSubVector (const std::vector< int > &indexVec) const |
|
| NDArray () |
|
| NDArray (const unsigned int size) |
|
| NDArray (const int size) |
|
| NDArray (const std::vcl_size_t size) |
|
| NDArray (const long size) |
|
| NDArray (const NDArray< T, 1 > &vec) |
|
| NDArray (NDArray< T, 1 > &&vec) |
|
| NDArray (const std::initializer_list< T > &r) |
|
template<typename EType > |
| NDArray (const Expr< EType, typename EType::ValueType > &expr) |
|
| NDArray (const T *vec, const SizeType size) |
|
| NDArray (const SizeType size, const T r) |
|
template<typename TVectorValueType > |
| NDArray (const NDArray< TVectorValueType, 1 > &r) |
|
| NDArray (const ShapeType &shape) |
|
| NDArray (const T *vec, const ShapeType &shape) |
|
| NDArray (const ShapeType &shape, const T r) |
|
Reference | operator() (unsigned long index) |
|
ConstReference | operator() (unsigned long index) const |
|
Reference | operator() (long index) |
|
ConstReference | operator() (long index) const |
|
Reference | operator() (int index) |
|
ConstReference | operator() (int index) const |
|
Reference | operator() (unsigned int index) |
|
ConstReference | operator() (unsigned int index) const |
|
NDArray< T, 1 > & | operator= (NDArray< T, 1 > &r) |
|
NDArray< T, 1 > & | operator= (NDArray< T, 1 > &&r) |
|
void | PostMultiply (const NDArray< T, 2 > &mat, NDArray< T, 1 > &vec) |
|
void | PreMultiply (const NDArray< T, 2 > &mat, NDArray< T, 1 > &vec) |
|
bool | ReSize (const SizeType size) |
|
void | RotateAxis (const double alpha, const NDArray< T, 1 > &axis) |
|
void | SetData (T *const data, const SizeType size) |
|
NDArray< T, 1 > & | SetSubVector (const std::vector< int > indexVec, const NDArray< T, 1 > &vec) |
|
| __Array_Saver_Scalar (+=) __Array_Saver_Scalar(- |
|
T | AbsoluteMaxValue () const |
|
T | AbsoluteMinValue () const |
|
void | Apply (const FuncT &func, NDArrayBase< T, Dim > &vec) const |
|
void | Apply (T(*f)(T), NDArrayBase< T, Dim > &vec) const |
|
void | Apply (T(*f)(T const &), NDArrayBase< T, Dim > &vec) const |
|
unsigned | ArgAbsoluteMax () const |
|
unsigned | ArgAbsoluteMin () const |
|
unsigned | ArgMax () const |
|
unsigned | ArgMin () const |
|
Reference | Back () |
|
ConstReference | Back () const |
|
Iterator | Begin () |
|
ConstIterator | Begin () const |
|
ConstIterator | cBegin () const |
|
ConstIterator | cEnd () const |
|
void | Clear () |
|
void | CopyData (T *const data, const ShapeType &shape) |
|
NDArrayBase< T, Dim > & | CopyIn (T const *ptr, const int size, const int start=0) |
|
void | CopyOut (T *ptr, const int size, const int start=0) const |
|
ConstReverseIterator | crBegin () const |
|
ConstReverseIterator | crEnd () const |
|
NDArrayBase< T, Dim > & | ElementAbsolute (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementAbsolute (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementAdd (T *const vec, T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementAxpby (T *const vec, const T alpha, const T beta) |
|
NDArrayBase< T, Dim > & | ElementCos (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementCos (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementDivide (T *const vec, T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementExp (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementExp (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementInverse (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementInverse (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementMultiply (T *const vec, T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementSin (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementSin (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementSqrt (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementSqrt (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementSquare (T *outVec=NULL) |
|
NDArrayBase< T, Dim > & | ElementSquare (NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | ElementSubstract (T *const vec, T *outVec=NULL) |
|
Iterator | End () |
|
ConstIterator | End () const |
|
T | Eval (int i) const |
|
void | Fill (const T &value) |
|
NDArrayBase< T, Dim > & | Flip () |
|
T * | GetData () |
|
const T * | GetData () const |
|
ConstReference | GetElement (unsigned short index) const |
|
NDArrayBase< T, Dim > | GetElementAbsolute () const |
|
NDArrayBase< T, Dim > | GetElementCos () const |
|
NDArrayBase< T, Dim > | GetElementExp () const |
|
NDArrayBase< T, Dim > | GetElementInverse () const |
|
NDArrayBase< T, Dim > | GetElementSin () const |
|
NDArrayBase< T, Dim > | GetElementSqrt () const |
|
NDArrayBase< T, Dim > | GetElementSquare () const |
|
void | GetIndex (const SizeType offset, SizeType index[Dimension]) const |
|
double | GetInfNorm () const |
|
bool | GetIsShared () const |
|
T | GetMean () const |
|
T | GetMedian () const |
|
SizeType | GetOffset (const ShapeType &shapeIndex) const |
|
const SizeType * | GetOffSetTable () const |
|
double | GetOneNorm () const |
|
NDArray< T, SubDimension > | GetRefSubArray (const int i) const |
|
NDArray< T, Dim > | GetRefSubArray (const int istart, const int iend) const |
|
double | GetRootMeanSquares () const |
|
const ShapeType | GetShape () const |
|
SizeType | GetSize () const |
|
double | GetSquaredTwoNorm () const |
|
T | GetSum () const |
|
double | GetTwoNorm () const |
|
int | GetZeroNorm (const double eps=1e-10) const |
|
void | HardThreshold (const double threshold) |
|
ValueType | InnerProduct (const NDArrayBase< T, Dim > &vec) const |
|
bool | IsEmpty () const |
|
bool | IsEqual (const NDArrayBase< T, Dim > &r, const double eps) const |
|
bool | IsSameShape (const EType &src) const |
|
bool | IsSameShape (const ShapeType &shape) const |
|
bool | IsSameSize (const ShapeType &shape) const |
|
bool | IsSameValues (const NDArrayBase< T, Dim > &r, const double eps) const |
|
bool | IsZero () const |
|
T | MaxValue () const |
|
T | MinValue () const |
|
| NDArrayBase () |
|
| NDArrayBase (const ShapeType &shape) |
|
| NDArrayBase (const NDArrayBase< T, Dim > &vec) |
|
| NDArrayBase (NDArrayBase< T, Dim > &&vec) |
|
| NDArrayBase (const Expr< EType, typename EType::ValueType > &expr) |
|
| NDArrayBase (const T *vec, const ShapeType &shape) |
|
| NDArrayBase (const ShapeType &shape, const T r) |
|
| NDArrayBase (const NDArrayBase< TValue, Dim > &r) |
|
int | NNZ (const double eps=1e-10) const |
|
NDArrayBase< T, Dim > & | operator saver (const T val) |
|
bool | operator!= (const NDArrayBase< T, Dim > &r) const |
|
NDArrayBase< T, Dim > & | operator%= (const Expr< EType, typename EType::ValueType > &src) |
|
NDArrayBase< T, Dim > & | operator%= (const NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | operator%= (const T val) |
|
Reference | operator() (const ShapeType &shape) |
|
ConstReference | operator() (const ShapeType &shape) const |
|
NDArrayBase< T, Dim > & | operator+= (const Expr< EType, typename EType::ValueType > &src) |
|
NDArrayBase< T, Dim > & | operator+= (const NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | operator-= (const Expr< EType, typename EType::ValueType > &src) |
|
NDArrayBase< T, Dim > & | operator-= (const NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | operator/= (const Expr< EType, typename EType::ValueType > &src) |
|
NDArrayBase< T, Dim > & | operator/= (const NDArrayBase< T, Dim > &vec) |
|
NDArrayBase< T, Dim > & | operator/= (const T val) |
|
NDArrayBase< T, Dim > & | operator= (const Expr< EType, typename EType::ValueType > &src) |
|
Dim & | operator= (const NDArrayBase< T, Dim > &r) |
|
NDArrayBase< T, Dim > & | operator= (NDArrayBase< T, Dim > &&r) |
|
NDArrayBase< T, Dim > & | operator= (const NDArrayBase< TValueType, Dim > &r) |
|
NDArrayBase< T, Dim > & | operator= (const std::initializer_list< T > &r) |
|
NDArrayBase< T, Dim > & | operator= (const std::vector< T > &r) |
|
NDArrayBase< T, Dim > & | operator= (const T r) |
|
bool | operator== (const NDArrayBase< T, Dim > &r) const |
|
Reference | operator[] (short index) |
|
ConstReference | operator[] (short index) const |
|
Reference | operator[] (unsigned short index) |
|
ConstReference | operator[] (unsigned short index) const |
|
Reference | operator[] (int index) |
|
ConstReference | operator[] (int index) const |
|
Reference | operator[] (unsigned int index) |
|
ConstReference | operator[] (unsigned int index) const |
|
Reference | operator[] (long index) |
|
ConstReference | operator[] (long index) const |
|
Reference | operator[] (unsigned long index) |
|
ConstReference | operator[] (unsigned long index) const |
|
Reference | operator[] (long long index) |
|
ConstReference | operator[] (long long index) const |
|
Reference | operator[] (unsigned long long index) |
|
ConstReference | operator[] (unsigned long long index) const |
|
void | Print (std::ostream &os, const char *separate=" ") const |
|
void | PrintInfo (std::ostream &os, const char *separate=" ") const |
|
void | PrintWithIndex (std::ostream &os, const char *separate=" ") const |
|
ReverseIterator | rBegin () |
|
ConstReverseIterator | rBegin () const |
|
ReverseIterator | rEnd () |
|
ConstReverseIterator | rEnd () const |
|
NDArrayBase< T, Dim > & | ReShape (const ShapeType &shape) |
|
bool | ReSize (const ShapeType &shape) |
|
NDArrayBase< T, Dim > & | Scale (const T a) |
|
void | SetData (T *const data, const ShapeType &shape) |
|
void | SetElement (unsigned short index, ConstReference value) |
|
SizeType | Size () const |
|
void | SoftThreshold (const double threshold) |
|
void | Swap (NDArrayBase< T, Dim > &vec) |
|
| ~NDArrayBase () |
|
const NDArrayBase< T, Dim > & | ConstRef (void) const |
|
const ShapeType | GetShape () const |
|
NDArrayBase< T, Dim > & | Ref (void) |
|