using sparse matrix and vpa function simultaneously
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Walter Roberson
2025년 2월 15일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!