Sparse version of BLKDIAG()
软件应用简介

Sparse version of BLKDIAG()
SPBLKDIAG Block diagonal concatenation of matrix input arguments, with sparse output.
Y = SPBLKDIAG(A,B,…) produces SPARSE(BLKDIAG(A, B, ..)) efficiently, where A, B, … are matrices of class double (real or complex).
Basically, this is a thin wrapper around MATLAB’s own BLKDIAG, since it already supports sparse output. However:
– BLKDIAG does not mention sparse support in its documentation; nor the fact that it is supported, nor how to access the functionality.
– BLKDIAG’s name is inconsistent with the function names for any of MATLAB’s other sparse functions (SPEYE, SPDIAGS, etc.)
Therefore, until The MathWorks fixes this, this function provides a better documented and more intuitively named alternative to BLKDIAG.
界面展示

结果示意

规格 价
0元试用 |
---|
0.0元人民币/月 |
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!