Click or drag to resize

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.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static int MaxAbsIndex(
	FloatComplexVector v,
	Func<FloatComplex, float> norm
)

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

Int32
Absolute index.
See Also