VectorMath.GetUsedLength(Double[], 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.3261.0 (4.8.3261.0)
Syntaxpublic static int GetUsedLength(
this double[] vector,
int currentLength
)
Parameters
- vector Double[]
- 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
Double[]. 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