I'm experimenting with solving linear systems in half precision using matlab. I'm using the somewhat recently introduced 'half' data type. I can convert full matrices to half precision no problem. But if I then try to call sparse(M) I get an error saying "Undefined function 'sparse' for input arguments of type 'half'".
Is there a way I can define this function myself? I don't know too much about MATLAB so I'm unsure of where to start.

 採用された回答

James Tursa
James Tursa 2020 年 4 月 5 日
編集済み: James Tursa 2020 年 4 月 5 日

0 投票

The sparse format in MATLAB only supports double and logical data types. To use any other data type you would have to write all of the underlying code yourself (a very big undertaking).

1 件のコメント

Onyebuchi Ekenta
Onyebuchi Ekenta 2020 年 4 月 5 日
Oh, I see. Thanks for your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by