sparse half-precision matrices

조회 수: 4 (최근 30일)
Onyebuchi Ekenta
Onyebuchi Ekenta 2020년 4월 5일
댓글: Onyebuchi Ekenta 2020년 4월 5일
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일
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개)

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by