using sparse matrix and vpa function simultaneously
Mostra commenti meno recenti
i am using the following code in my 3D FEM analysis
digits(16)
k_bc=vpa(k_bc);
U=k_bc\f_bc.
residual=norm(k_bc*U-f_bc).
Now to decrease the residual i have taken the variable to symbolic domain.Now when i use vpa i loose my sparcity of stiffness matrix causing a slow calculation rate but give lower value of residual and when i use sparse matrix the residual value is high because of the large condition number of k_bc of the order 10e14(i think it is a result of lagrange shape function beig used in Galerkin's FEM).how to use both sparcity and vpa simultaneously to have lowervalue to residual and still have higher speed
Risposta accettata
Più risposte (1)
Walter Roberson
il 15 Feb 2025
0 voti
Sparse matrices are implemented for double precision, and for logical. As of R2025a Pre-Release they are also implemented for single precision.
Sparse matrices are not implemented for any other numeric type, or for object classes such as symbolic expressions.
1 Commento
Shreechandan
il 17 Feb 2025
Categorie
Scopri di più su Assumptions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!