Sparse block diagonal concatenation

版本 1.2 (2.5 KB) 作者: Rody Oldenhuis
Sparse version of BLKDIAG()
309.0 次下载
更新时间 2020/5/2

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.

引用格式

Rody Oldenhuis (2024). Sparse block diagonal concatenation (https://github.com/rodyo/FEX-spblkdiag/releases/tag/v1.2), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.2

See release notes for this release on GitHub: https://github.com/rodyo/FEX-spblkdiag/releases/tag/v1.2

1.1.0.0

fixed typos in the description.

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库