|
[Sponsors] |
December 5, 2018, 09:02 |
SparseMatrix
|
#1 |
New Member
Join Date: Dec 2018
Posts: 2
Rep Power: 0 |
Hi everybody,
I'm looking for something like sparse matrix Kappa(DIM) https://es.mathworks.com/help/matlab/ref/sparse.html I wrote a script using: Code:
scalarSquareMatrix Kappa( DIM ,Zero); and I access to the element writing Kappa[i][j]; now I need a sparse matrix, because I'm increasing the size of this matrix. Can I just change the "declaration"? Or do I need to rewrite all the script in a different way? I'm looking for something like sparse matrix Kappa(DIM) https://es.mathworks.com/help/matlab/ref/sparse.html At the end I solve a system like that: Code:
scalarField RHS(size, 0); LUscalarMatrix LU(Kappa); scalarField UU(LU.solve(RHS)); Thanks for the help in advance! |
|
Tags |
matrix, sparsematrix |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
scalarSquareMatrix to SparseMatrix | giuseppe03 | OpenFOAM Programming & Development | 0 | December 4, 2018 09:05 |