.NET Matrix Library
SubMatrix Method
See Also  Send Feedback



startRow
An integer specifying the first row to include.
endRow
An integer specifying the last row to include.
startCol
An integer specifying the first column to include.
endCol
An integer specifying the last column to include.
Returns a subset of the current matrix.

Syntax

Visual Basic (Declaration) 
Public Function SubMatrix( _
   ByVal startRow As Integer, _
   ByVal endRow As Integer, _
   ByVal startCol As Integer, _
   ByVal endCol As Integer _
) As Matrix
Visual Basic (Usage)Copy Code
Dim instance As Matrix
Dim startRow As Integer
Dim endRow As Integer
Dim startCol As Integer
Dim endCol As Integer
Dim value As Matrix
 
value = instance.SubMatrix(startRow, endRow, startCol, endCol)
C# 
public Matrix SubMatrix( 
   int startRow,
   int endRow,
   int startCol,
   int endCol
)
C++/CLI 
public:
Matrix^ SubMatrix( 
   int startRow,
   int endRow,
   int startCol,
   int endCol
) 

Parameters

startRow
An integer specifying the first row to include.
endRow
An integer specifying the last row to include.
startCol
An integer specifying the first column to include.
endCol
An integer specifying the last column to include.

Return Value

A Matrix instance that contains the subset of current matrix.

Remarks

If endRow is greater than startRow then the returned matrix is flipped horizontally. The same way if endCol is greater than startCol, then it is flipped vertically.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library