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!