Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec *TensorProd(TMtx *Mtx, TVec *Vec, TMtxType MtxType = TMtxType::mtGeneral, TMtxOperation Operation = TMtxOperation::opNone); | Tensor product between vector and matrix. |
| 2 | TVec *TensorProd(TVec *Vec, TMtx *Mtx, TMtxType MtxType = TMtxType::mtGeneral, TMtxOperation Operation = TMtxOperation::opNone); | Calculates the left tensor product between vector and matrix. |
Overload 1: TVec *TensorProd(TMtx *Mtx, TVec *Vec, TMtxType MtxType = TMtxType::mtGeneral, TMtxOperation Operation = TMtxOperation::opNone);
Tensor product between vector and matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx * | |
| 2 | Vec | TVec * | |
| 3 | MtxType = TMtxType::mtGeneral | TMtxType | |
| 4 | Operation = TMtxOperation::opNone | TMtxOperation |
Remarks:
Calculates the right tensor product between matrix and vector. The result is placed in the calling vector. Depending on the TMtxType the following operations are available:
- mtSymmetric:
y = alfa*a*x + beta*y - mtSymmPosDef:
y = alfa*a*x + beta*y - mtHermitian:
y = alfa*a*x + beta*y - mtHermPosDef:
y = alfa*a*x + beta*y - mtTriangular:
y = op(a)*x - mtGeneral:
y = alfa*op(a)*x + beta*y
The TVec::Alfa and TVec::Beta are TVec complex public variables. Their default values are:
- Alfa = Cplx(1,0)
- Beta = Cplx(0,0).
Note
Each time you call TensorProd the values of Alfa and Beta are reset to default. If the matrix is not complex, only the real part of Alfa and Beta is used. If matrix complex and symmetric the general type is used.
See Also: TMtx::TensorProd
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler
Overload 2: TVec *TensorProd(TVec *Vec, TMtx *Mtx, TMtxType MtxType = TMtxType::mtGeneral, TMtxOperation Operation = TMtxOperation::opNone);
Calculates the left tensor product between vector and matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec * | |
| 2 | Mtx | TMtx * | |
| 3 | MtxType = TMtxType::mtGeneral | TMtxType | |
| 4 | Operation = TMtxOperation::opNone | TMtxOperation |
Declared in Dew::Math::TVec · Dew.Math/MtxVec.h · Cross-compiler