Returns a vector that views a slice of this matrix. The slice begins at element i,j and extends for n elements. The increment between successive elements in the vector is rowStride rows and colStride columns.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public FloatVector Slice(
	int i,
	int j,
	int n,
	int rowStride,
	int colStride
)
Visual Basic (Declaration)
Public Function Slice ( _
	i As Integer, _
	j As Integer, _
	n As Integer, _
	rowStride As Integer, _
	colStride As Integer _
) As FloatVector
Visual C++
public:
FloatVector^ Slice(
	int i, 
	int j, 
	int n, 
	int rowStride, 
	int colStride
)

Parameters

i
Type: System..::.Int32
The starting row.
j
Type: System..::.Int32
The starting column.
n
Type: System..::.Int32
The number of elements.
rowStride
Type: System..::.Int32
The row increment.
colStride
Type: System..::.Int32
The column increment.

Return Value

A vector which views a slice of this matrix.

Remarks

The returned vector and the matrix share the same data.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.IndexOutOfRangeExceptionThrown if the slice references an element out of range.

See Also