CADability dotNET
Gets a submatrix.

Namespace: CADability.LinearAlgebra
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public virtual Matrix GetMatrix(
	int[] r,
	int[] c
)
Visual Basic
Public Overridable Function GetMatrix ( _
	r As Integer(), _
	c As Integer() _
) As Matrix
Visual C++
public:
virtual Matrix^ GetMatrix(
	array<int>^ r, 
	array<int>^ c
)

Parameters

r
Type: array<System..::..Int32>[]()[][]
Array of row indices.
c
Type: array<System..::..Int32>[]()[][]
Array of column indices.

Return Value

A(r(:),c(:))

Exceptions

ExceptionCondition
System..::..IndexOutOfRangeExceptionSubmatrix indices.

See Also