Click or drag to resize

VectorMathGetUsedLength(IReadOnlyListSingle, Int32) Method

Returns the used length of the vector. This is one more than the highest index of the element that is different from Double.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,
	int currentLength
)

Parameters

vector  IReadOnlyListSingle
The vector for which the used length has to be determined.
currentLength  Int32
The current length of the array. Normally values.Length, but you can provide a value less than this.

Return Value

Int32
The used length. Elements with indices greater or equal this until currentlength 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