Click or drag to resize

VectorMathGetUsedLength(IReadOnlyListSingle) Method

Returns the used length of the vector. This is one more than the highest index of the element that is different from NaN.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int GetUsedLength(
	this IReadOnlyList<float> vector
)

Parameters

vector  IReadOnlyListSingle
The vector for which the used length has to be determined.

Return Value

Int32
The used length. Elements with indices greater or equal this until the end of the array are NaNs.

Usage Note

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