| NMathFunctionsMaxAbsIndex(FloatComplexVector, FuncFloatComplex, Single) Method |
Calculates the index of the maximum value of a given vector's elements.
An elements rank is calculated using the user specified norm function
such as l1, l2 or linf. In the case of Complex numbers l1(c) = c.real + c.image,
l2(c) = (c.real^2 + c.imag^2) ^ 1/2, linf(c) = max (c.real, c.imag)
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static int MaxAbsIndex(
FloatComplexVector v,
Func<FloatComplex, float> norm
)
Public Shared Function MaxAbsIndex (
v As FloatComplexVector,
norm As Func(Of FloatComplex, Single)
) As Integer
public:
static int MaxAbsIndex(
FloatComplexVector^ v,
Func<FloatComplex, float>^ norm
)
static member MaxAbsIndex :
v : FloatComplexVector *
norm : Func<FloatComplex, float32> -> int
Parameters
- v FloatComplexVector
- A vector.
- norm FuncFloatComplex, Single
[Missing <param name="norm"/> documentation for "M:CenterSpace.NMath.Core.NMathFunctions.MaxAbsIndex(CenterSpace.NMath.Core.FloatComplexVector,System.Func{CenterSpace.NMath.Core.FloatComplex,System.Single})"]
Return Value
Int32Absolute index.
See Also