Click or drag to resize

MatrixDiagonalStack Method (Matrix, Matrix)

Diagonally stacks two given matrices. The new matrix is a M-by-N diagonal block matrix, where
1M = topLeft.Rows + bottomRight.Rows
and
1N = topLeft.Columns +
2            bottomRight.Columns
. The values of the off-diagonal blocks are unchanged.

Namespace:  FinMath.LinearAlgebra
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public static Matrix DiagonalStack(
	Matrix topLeft,
	Matrix bottomRight
)

Parameters

topLeft
Type: FinMath.LinearAlgebraMatrix
The top-left block.
bottomRight
Type: FinMath.LinearAlgebraMatrix
The bottom-right block.

Return Value

Type: Matrix
The result of stacking.
See Also