用法:
blockdiag(A...)
連接矩陣block-diagonally。目前僅針對稀疏矩陣實現。
例子
julia> blockdiag(sparse(2I, 3, 3), sparse(4I, 2, 2))
5×5 SparseMatrixCSC{Int64, Int64} with 5 stored entries:
2 ⋅ ⋅ ⋅ ⋅
⋅ 2 ⋅ ⋅ ⋅
⋅ ⋅ 2 ⋅ ⋅
⋅ ⋅ ⋅ 4 ⋅
⋅ ⋅ ⋅ ⋅ 4
相關用法
- Julia SparseArrays.spdiagm用法及代碼示例
- Julia SparseArrays.nnz用法及代碼示例
- Julia SparseArrays.nonzeros用法及代碼示例
- Julia SparseArrays.sprand用法及代碼示例
- Julia SparseArrays.spzeros用法及代碼示例
- Julia SparseArrays.sparsevec用法及代碼示例
- Julia SparseArrays.sprandn用法及代碼示例
- Julia SparseArrays.findnz用法及代碼示例
- Julia SparseArrays.permute用法及代碼示例
- Julia SparseArrays.dropzeros用法及代碼示例
- Julia SparseArrays.rowvals用法及代碼示例
- Julia SparseArrays.sparse用法及代碼示例
- Julia SparseArrays.issparse用法及代碼示例
- Julia Sys.BINDIR用法及代碼示例
- Julia Sys.KERNEL用法及代碼示例
- Julia Statistics.mean!用法及代碼示例
- Julia Sockets.getipaddr用法及代碼示例
- Julia Sockets.getnameinfo用法及代碼示例
- Julia SubString用法及代碼示例
- Julia Statistics.quantile!用法及代碼示例
- Julia SubString()用法及代碼示例
- Julia Statistics.quantile用法及代碼示例
- Julia Statistics.median用法及代碼示例
- Julia Sys.WORD_SIZE用法及代碼示例
- Julia Sort.searchsorted用法及代碼示例
注:本文由純淨天空篩選整理自julialang.org 大神的英文原創作品 SparseArrays.blockdiag — Function。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。