Click or drag to resize

VectorMathToSubVectorT Method

Creates a subvector of the read/write vector. Note that is is only a wrapper around the wrapper. If the subvector is changed, also the underlying (wrapped) vector is changed!

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public static IVector<T> ToSubVector<T>(
	this IVector<T> source,
	int offset,
	int count
)

Parameters

source  IVectorT
The source vector.
offset  Int32
The offset of the first element of the subvector.
count  Int32
The number of elements of the subvector.

Type Parameters

T
The type of element of the vector.

Return Value

IVectorT
The subvector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVectorT. 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