TOpenCLVector.MaxMin Method

Overload List

#SignatureDescription
1void MaxMin(ref Double AMax, ref Double AMin)Maximum and minimum value in a single pass.
└ indexed: void MaxMin(ref Double AMax, ref Double AMin, Int32 Index, Int32 Len)
2void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx)Calculates the maximum and minimum value of all calling object elements.
└ indexed: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx, Int32 Index, Int32 Len)

Overload 1: void MaxMin(ref Double AMax, ref Double AMin)

Maximum and minimum value in a single pass.

#NameTypeDescription
1AMaxDouble (ref)output
2AMinDouble (ref)output

Result: stored in self (calling object)

Remarks:

Calculates the maximum and minimum value of all calling object elements in a single pass. Maximum value is stored in AMax parameter, minimum value is stored in AMin parameter. Use this method if you require minimum AND maximum value.

Indexed: void MaxMin(ref Double AMax, ref Double AMin, Int32 Index, Int32 Len)

Calculates the maximum and minimum value of calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1AMaxDouble (ref)output
2AMinDouble (ref)output
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object)

Remarks:

Maximum value is stored in AMax parameter, minimum value is stored in AMin parameter. An exception is raised if calling object Dew.Math.TOpenCLBase.Complex property is true or array borders are overrud/underrun.

Overload 2: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx)

Calculates the maximum and minimum value of all calling object elements.

#NameTypeDescription
1AMaxDouble (ref)output
2MaxIdxInt32 (ref)output
3AMinDouble (ref)output
4MinIdxInt32 (ref)output

Result: stored in self (calling object)

Remarks:

Maximum value is returned in AMax parameter, minimum value in AMin parameter. The MaxIdx parameter returns the index of maximum value. The MinIdx parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TOpenCLBase.Complex property is true.

Indexed: void MaxMin(ref Double AMax, ref Int32 MaxIdx, ref Double AMin, ref Int32 MinIdx, Int32 Index, Int32 Len)

Calculates the maximum and minimum value of calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1AMaxDouble (ref)output
2MaxIdxInt32 (ref)output
3AMinDouble (ref)output
4MinIdxInt32 (ref)output
5IndexInt32start index
6LenInt32element count

Result: stored in self (calling object)

Remarks:

Maximum value is returned in AMax parameter, minimum value in AMin parameter. The MaxIdx parameter returns the index of maximum value. The MinIdx parameter returns the index of minimum value. An exception is raised if calling object Dew.Math.TOpenCLBase.Complex property is true or if array borders are overrun/underrun.