Click or drag to resize

VectorTSubVector Method

Creates a vector containing specified elements.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public Vector<T> SubVector(
	int index,
	int count
)

Parameters

index  Int32
The first element to begin copying from.
count  Int32
The number of elements to copy.

Return Value

VectorT
A vector containing a copy of the specified elements.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException
  • If index is not positive or greater than or equal to the size of the vector.
  • If index + count is greater than or equal to the size of the vector.
ArgumentExceptionIf count is not positive.
See Also