|
[Sponsors] |
inner product of a scalarSquareMatrix and scalarDiagonalMatrix. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 3, 2014, 04:37 |
inner product of a scalarSquareMatrix and scalarDiagonalMatrix.
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18 |
Hi guys,
I dont know how should I call this inner product in OpenFOAM syntax. you know that if I wanna operates inner product on a tensor(T) and a vector(v). I can use: Code:
T & v First I define this n×n matrix as a scalarSquareMatrix and define this n×1 matrix as scalarDiagonalMatrix. But I dont know which sign can be used as inner product on this two matrices? BTW, I use for loop to calculate but failed: Code:
for (int c = 0; c < nWeights_*2; c++) { for ( int r = 0; r < nWeights_*2; r++) { mT[c] = invA[c][r] * moments_[r]; } } |
|
|
|