using sparse matrix and vpa function simultaneously
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 15 de Feb. de 2025
0 votos
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 comentario
Shreechandan
el 17 de Feb. de 2025
Categorías
Más información sobre Assumptions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!