Use function lu() and luinc() in single precision

7 visualizaciones (últimos 30 días)
evan um
evan um el 10 de Sept. de 2015
Respondida: Walter Roberson el 10 de Sept. de 2015
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

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de Sept. de 2015
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.

Categorías

Más información sobre Numbers and Precision en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by