sparse matrix with higher than double precision
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!