spdiags (MATLAB Functions)
www.ece.northwestern.edu/local-apps/matlabhelp/techdoc/ref/spdiags.htmlMATLAB Function Reference spdiags Extract and create sparse band and diagonal matrices Syntax [B,d] = spdiags(A) B = spdiags(A,d) A = spdiags(B,d,A) A = spdiags(B,d,m,n) Description The spdiagsfunction generalizes the function diag. Four different operations, distinguished by the number of input arguments, are possible: [B,d] = spdiags(A)
MATLAB to Eigen - GitHub Pages
https://libigl.github.io/matlab-to-eigen.htmlMATLAB version allows Y to be a multidimensional matrix, but the Eigen version is only for 1D or 2D matrices. B (i: (i+w),j: (j+h)) = A (x: (x+w),y: (y+h)) B.block (i,j,w,h) = A.block (i,j,w,h) MATLAB version would allow w and h to be non-positive since the colon operator evaluates to a list of indices, but the Eigen version needs non-negative ...