A block diagonal matrix is a matrix whose diagonal contains blocks of
smaller matrices, in contrast to a regular diagonal matrix with single elements along the
diagonal. A block diagonal matrix takes on the following form, where A1,
A2,…, AN are each matrices that can differ in
size:
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
GPU Code Generation Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
GPU Arrays Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).