|
| | CuVector () |
| |
| | CuVector (MatrixIndexT dim, MatrixResizeType t=kSetZero) |
| |
| | CuVector (const CuVectorBase< Real > &v) |
| |
| | CuVector (const VectorBase< Real > &v) |
| |
| | CuVector (const CuVector< Real > &v) |
| |
| template<typename OtherReal > |
| | CuVector (const CuVectorBase< OtherReal > &v) |
| |
| template<typename OtherReal > |
| | CuVector (const VectorBase< OtherReal > &v) |
| |
| void | Resize (MatrixIndexT dim, MatrixResizeType t=kSetZero) |
| | Allocate the memory. More...
|
| |
| | ~CuVector () |
| |
| CuVector< Real > & | operator= (const CuVectorBase< Real > &other) |
| |
| CuVector< Real > & | operator= (const CuVector< Real > &other) |
| |
| CuVector< Real > & | operator= (const VectorBase< Real > &other) |
| |
| void | Swap (CuVector< Real > *vec) |
| |
| void | Swap (Vector< Real > *vec) |
| |
| void | Read (std::istream &is, bool binary) |
| | I/O. More...
|
| |
| void | Write (std::ostream &is, bool binary) const |
| |
| MatrixIndexT | Dim () const |
| | Dimensions. More...
|
| |
| Real * | Data () |
| | Returns a pointer to the start of the vector's data. More...
|
| |
| const Real * | Data () const |
| | Returns a pointer to the start of the vector's data (const). More...
|
| |
| void | CopyFromVec (const CuVectorBase< Real > &src) |
| | Copy functions; these will crash if the dimension do not match. More...
|
| |
| template<typename OtherReal > |
| void | CopyFromVec (const CuVectorBase< OtherReal > &M) |
| |
| template<typename OtherReal > |
| void | CopyFromVec (const VectorBase< OtherReal > &src) |
| |
| template<typename OtherReal > |
| void | CopyToVec (VectorBase< OtherReal > *dst) const |
| |
| void | CopyRowsFromMat (const CuMatrixBase< Real > &M) |
| |
| void | CopyRowsFromMat (const MatrixBase< Real > &M) |
| |
| void | SetZero () |
| | Math operations. More...
|
| |
| void | Set (Real value) |
| |
| void | Add (Real value) |
| |
| void | Scale (Real value) |
| |
| void | AddVec (Real alpha, const CuVectorBase< Real > &vec, Real beta=1.0) |
| |
| template<typename OtherReal > |
| void | AddVec (Real alpha, const CuVectorBase< OtherReal > &vec, Real beta=1.0) |
| |
| void | AddRowSumMat (Real alpha, const CuMatrixBase< Real > &mat, Real beta=1.0) |
| | Sum the rows of the matrix, add to vector. More...
|
| |
| void | AddColSumMat (Real alpha, const CuMatrixBase< Real > &mat, Real beta=1.0) |
| | Sum the columns of the matrix, add to vector. More...
|
| |
| void | AddTpVec (const Real alpha, const CuTpMatrix< Real > &M, const MatrixTransposeType trans, const CuVectorBase< Real > &v, const Real beta) |
| | Add triangular matrix times vector: this <– beta*this + alpha*M*v. More...
|
| |
| void | MulTp (const CuTpMatrix< Real > &M, const MatrixTransposeType trans) |
| | Multiplies this vector by lower-triangular marix: *this <– *this *M. More...
|
| |
| bool | ApproxEqual (const CuVectorBase< Real > &other, float tol=0.01) const |
| |
| void | InvertElements () |
| |
| void | CopyElements (const CuMatrixBase< Real > &mat, const MatrixTransposeType trans, const CuArrayBase< int32 > &elements) |
| | Copies selected elements from 'mat' to *this. More...
|
| |
| void | Floor (const CuVectorBase< Real > &src, Real floor_val, MatrixIndexT *floored_count=NULL) |
| |
| void | Ceiling (const CuVectorBase< Real > &src, Real ceiling_val, MatrixIndexT *ceiled_count=NULL) |
| |
| void | Pow (const CuVectorBase< Real > &src, Real power) |
| |
| void | ApplyFloor (Real floor_val, MatrixIndexT *floored_count=NULL) |
| |
| void | ApplyCeiling (Real ceiling_val, MatrixIndexT *ceiled_count=NULL) |
| |
| void | ApplyPow (Real power) |
| |
| void | ApplySoftMax () |
| |
| void | ApplyLogSoftMax () |
| |
| void | ApplyExp () |
| |
| void | ApplyLog () |
| |
| Real | Sum () const |
| |
| void | SetRandn () |
| |
| void | SetRandUniform () |
| |
| CuSubVector< Real > | Range (const MatrixIndexT o, const MatrixIndexT l) |
| |
| const CuSubVector< Real > | Range (const MatrixIndexT o, const MatrixIndexT l) const |
| |
| void | CopyColFromMat (const CuMatrixBase< Real > &mat, MatrixIndexT col) |
| |
| template<typename OtherReal > |
| void | CopyColFromMat (const CuMatrixBase< OtherReal > &mat, MatrixIndexT col) |
| |
| void | AddMatVec (const Real alpha, const CuMatrixBase< Real > &M, MatrixTransposeType trans, const CuVectorBase< Real > &v, const Real beta) |
| |
| void | AddVecVec (Real alpha, const CuVectorBase< Real > &v, const CuVectorBase< Real > &r, Real beta) |
| |
| void | AddSpVec (const Real alpha, const CuSpMatrix< Real > &S, const CuVectorBase< Real > &v, const Real beta) |
| |
| void | AddDiagMat2 (Real alpha, const CuMatrixBase< Real > &M, MatrixTransposeType trans, Real beta) |
| | Add the diagonal of a matrix times itself: *this = diag(M M^T) + beta * *this (if trans == kNoTrans), or *this = diag(M^T M) + beta * *this (if trans == kTrans). More...
|
| |
| void | AddDiagMatMat (Real alpha, const CuMatrixBase< Real > &M, MatrixTransposeType transM, const CuMatrixBase< Real > &N, MatrixTransposeType transN, Real beta=1.0) |
| | Add the diagonal of a matrix product: *this = diag(M N), assuming the "trans" arguments are both kNoTrans; for transpose arguments, it behaves as you would expect. More...
|
| |
| CuValue< Real > | operator() (MatrixIndexT i) |
| |
| Real | Norm (Real p) |
| |
| Real | operator() (MatrixIndexT i) const |
| |
| void | CopyDiagFromPacked (const CuPackedMatrix< Real > &M) |
| | Extracts the diagonal of a packed matrix M; works for Sp or Tp. More...
|
| |
| void | CopyDiagFromMat (const CuMatrix< Real > &M) |
| | Extracts the diagonal of a matrix. More...
|
| |
| Real | Max () const |
| | Returns the maximum value of any element, or -infinity for the empty vector. More...
|
| |
| Real | Min () const |
| | Returns the minimum value of any element, or +infinity for the empty vector. More...
|
| |
| void | ReplaceValue (Real orig, Real changed) |
| |
| void | MulElements (const CuVectorBase< Real > &v) |
| |
| void | DivElements (const CuVectorBase< Real > &v) |
| |
| const VectorBase< Real > & | Vec () const |
| |
| VectorBase< Real > & | Vec () |
| |
| template<> |
| void | CopyColFromMat (const CuMatrixBase< float > &mat, MatrixIndexT col) |
| |
| template<> |
| void | CopyColFromMat (const CuMatrixBase< double > &mat, MatrixIndexT col) |
| |
| template<> |
| void | CopyFromVec (const CuVectorBase< float > &src) |
| |
| template<> |
| void | CopyFromVec (const CuVectorBase< double > &src) |
| |
| template<> |
| void | CopyFromVec (const CuVectorBase< float > &src) |
| |
| template<> |
| void | CopyFromVec (const CuVectorBase< double > &src) |
| |
template<typename Real>
class kaldi::CuVector< Real >
Definition at line 74 of file matrix-common.h.