TOpenCLMatrix.Min Method

Overload List

#SignatureDescription
1function Min: Double;Minimum value.
└ indexed: function Min(Index: Integer; Len: Integer): Double;
2procedure Min(out AMin: Double; out aIndex: Integer);Calculate the minimum value of all calling object elements.
└ indexed: procedure Min(out AMin: Double; out aIndex: Integer; Index: Integer; Len: Integer);
3function Min(out AMin: TCplx; Index: Integer; Len: Integer): Integer;Same as the TOpenCLMtxVec.Minc method.
4procedure Min(out AMin: Double; Index: Integer; Len: Integer);Calculate the minimum value from calling object elements [Index]..[Index+Len-1].

Overload 1: function Min: Double;

Minimum value.

Returns: Double - The minimum value of all calling object elements. The result is a real value.

Remarks:

An exception is raised if calling object TOpenCLBase.Complex property is true.

Examples
var a: clMatrix;
    b: double;
begin
    a.Size(2,2, clFloat, false);
    a.CopyFromArray(TDoubleArray.Create(1,2,3,4));
    b := a.Min; // b = 1
end;

Indexed: function Min(Index: Integer; Len: Integer): Double;

Calculate the minimum value from calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

Returns: Double

Remarks:

The result is a real value. An exception is raised if calling object TOpenCLBase.Complex property is true or array borders are overrun.

Overload 2: procedure Min(out AMin: Double; out aIndex: Integer);

Calculate the minimum value of all calling object elements.

#NameTypeDescription
1AMinDouble
2aIndexInteger

Result: stored in self (calling object)

Remarks:

The AMin parameter returns the minimum value. The aIndex parameter returns the index of minimum value. An exception is raised if calling object TOpenCLBase.Complex property is true.

Indexed: procedure Min(out AMin: Double; out aIndex: Integer; Index: Integer; Len: Integer);

Calculate the minimum value of calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1AMinDouble
2aIndexInteger
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object)

Remarks:

The AMax parameter returns the minimum value. The aIndex parameter returns the index of minimum value. An exception is raised if calling object TOpenCLBase.Complex property is true or array borders are overrud/underrun.

Overload 3: function Min(out AMin: TCplx; Index: Integer; Len: Integer): Integer;

Same as the TOpenCLMtxVec.Minc method.

#NameTypeDescription
1AMinTCplx
2IndexIntegerstart index
3LenIntegerelement count

Returns: Int32

Overload 4: procedure Min(out AMin: Double; Index: Integer; Len: Integer);

Calculate the minimum value from calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1AMinDouble
2IndexIntegerstart index
3LenIntegerelement count

Result: stored in self (calling object)

Remarks:

The result AMin is a real value. An exception is raised if calling object TOpenCLBase.Complex property is true or array borders are overrun.