Click or drag to resize

VectorMathToVector(IVectorSingle, Int32, Int32) Method

Wraps a section of an original vector into a new vector.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IVector<float> ToVector(
	this IVector<float> vector,
	int start,
	int len
)

Parameters

vector  IVectorSingle
Original vector.
start  Int32
Index of the start of the section to wrap.
len  Int32
Length (=number of elements) of the section to wrap.

Return Value

IVectorSingle
A IVector that contains the section from start to start+len-1 of the original vector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVectorSingle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also