Sparse Support for MATLAB Coder
Ältere Kommentare anzeigen
Does the MATLAB Coder support sparse Matrices created for example with the sparse() function? Something like
A = sparse(zeros(4,4));
A(3,3) = 1.0;
Thanks in advance
Antworten (3)
Friedrich
am 12 Jul. 2011
0 Stimmen
Hi,
I think it does and it is disabled by default:
wma
am 12 Jul. 2011
0 Stimmen
Walter Roberson
am 12 Jul. 2011
Use the syntax
t=coder.newtype(numeric_class, sz, variable_dims, Name, Value)
with Name being 'sparse' and Value being true:
t=coder.newtype(numeric_class, sz, variable_dims, 'sparse', true)
1 Kommentar
wma
am 13 Jul. 2011
Kategorien
Mehr zu Sparse Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!