sparse matrix with higher than double precision

조회 수: 15 (최근 30일)
Jacob Bresler
Jacob Bresler 2016년 8월 1일
편집: Thorsten 2016년 8월 1일
hey guys, so I am currently working on a problem where all of my matrices are banded, but I am using the symbolic toolbox to set my floating point precision higher than that of double (I kind of have to since some of the numbers I am dealing with are really small). The issue with this is that you can't turn a sym array into a sparse matrix since matlab doesn't seem to allow that. does anyone have any suggestions?
  댓글 수: 1
Stephen23
Stephen23 2016년 8월 1일
편집: Stephen23 2016년 8월 1일
"some of the numbers I am dealing with are really small"
What order and how many digits ?

댓글을 달려면 로그인하십시오.

답변 (1개)

José-Luis
José-Luis 2016년 8월 1일
편집: Thorsten 2016년 8월 1일
The number of significant digits that you can store in a double is what limits things. As such, the smallness of the number doesn't really matter unless the values in your array span many orders of magnitudes and you need to keep more than (around) 15 digits.
If 15 significant digits is enough for you, you could always scale them, keep an index of the scaled numbers, and store as a double in a sparse array.
Please note that I don't have the symbolic math toolbox and I am taking you to your word that a sparse symbolic array cannot be generated.

카테고리

Help CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by