VectorMathGetUsedLength(IReadOnlyListDouble, 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.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static int GetUsedLength(
this IReadOnlyList<double> vector,
int currentLength
)
Parameters
- vector IReadOnlyListDouble
- 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
Int32The 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
IReadOnlyListDouble. 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