Use function lu() and luinc() in single precision
8 次查看(过去 30 天)
显示 更早的评论
Hi All,
Is there any way to call function lu() or luinc() in single precision? I think that single precision is enough for my problems, but MATLAB uses double precision as default. In advance, thanks for your comments.
Evan
0 个评论
回答(1 个)
Walter Roberson
2015-9-10
some_single_data = single(rand(20,20));
[L, U, p] = lu(some_single_data);
class() of each of the outputs will report single . I do not know if double precision is used internally.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numbers and Precision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!