using sparse matrix and vpa function simultaneously
Show older comments
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
Accepted Answer
More Answers (1)
Walter Roberson
on 15 Feb 2025
0 votes
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 Comment
Shreechandan
on 17 Feb 2025
Categories
Find more on Assumptions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!