mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: partial overhaul of Matrix type (#1220)
- additional operators: + compound assignment + inner product: operator& + outer product: operator^ - additional functions: - MatrixBlock methods: subColumn, subRow, subMatrix - L2 norms for matrix or column - trace, diag, round, transpose - MatrixBlock methods: col(), block() are deprecated since their access patterns with (size, offset) are unnatural/unwieldy. - verifications by test/Matrix/Test-Matrix
This commit is contained in:
@ -190,9 +190,9 @@ inline Foam::RectangularMatrix<Type> outer
|
||||
{
|
||||
RectangularMatrix<Type> f1f2T(f1.size(), f2.size());
|
||||
|
||||
for (label i=0; i<f1f2T.m(); i++)
|
||||
for (label i = 0; i < f1f2T.m(); ++i)
|
||||
{
|
||||
for (label j=0; j<f1f2T.n(); j++)
|
||||
for (label j = 0; j < f1f2T.n(); ++j)
|
||||
{
|
||||
f1f2T(i, j) = f1[i]*f2[j];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user