Click or drag to resize
sqx

MatrixDirectSum Method

[Matrix] DirectSum([Matrix] B)

Namespace:  sqx
Assembly:  SQX (in SQX.dll) Version: 1.0.2.6 (1.0.2.6)
Syntax
C#
public Matrix DirectSum(
	Matrix B
)

Parameters

B
Type: sqxMatrix
[Matrix]

Return Value

Type: Matrix
[Matrix]
Remarks
Matrix Direct Sum.
Examples
SQL
declare @A sqx.Matrix = '1,3,2;2,3,1'
declare @B sqx.Matrix = '1,6;0,1'
print @A.DirectSum(@B).ToString()
/*
1,3,2,0,0;
2,3,1,0,0;
0,0,0,1,6;
0,0,0,0,1*/
See Also