TOpenCLMatrix.SubFrom Method

Overload List

#SignatureDescription
1TOpenCLMtxVec SubFrom(TCplx Value)Subtract each of calling object elements from complex Value.
└ indexed: TOpenCLMtxVec SubFrom(TCplx Value, Int32 Index, Int32 Len)
2TOpenCLMtxVec SubFrom(TCplx Value, TOpenCLMtxVec Vec)subtract complex Vec elements from Value.
└ indexed: TOpenCLMtxVec SubFrom(TCplx Value, TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
3TOpenCLMtxVec SubFrom(Double Value)Subtraction from value.
└ indexed: TOpenCLMtxVec SubFrom(Double Value, Int32 Index, Int32 Len)
4TOpenCLMtxVec SubFrom(Double Value, TOpenCLMtxVec Vec)subtract Vec elements from Value.
└ indexed: TOpenCLMtxVec SubFrom(Double Value, TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

Overload 1: TOpenCLMtxVec SubFrom(TCplx Value)

Subtract each of calling object elements from complex Value.

#NameTypeDescription
1ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Remarks:

If the calling vector s not complex, the conversion is performed automatically in a performance efficient way.

Indexed: TOpenCLMtxVec SubFrom(TCplx Value, Int32 Index, Int32 Len)

Subtract elements [Index]..[Index+Len-1] from complex Value.

#NameTypeDescription
1ValueTCplxscalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in calling object. If the calling vector is not complex, the conversion to complex is performed automatically in performance efficient way. An exception is raised if array borders are overrun or underrun.

Overload 2: TOpenCLMtxVec SubFrom(TCplx Value, TOpenCLMtxVec Vec)

subtract complex Vec elements from Value.

#NameTypeDescription
1ValueTCplxscalar
2VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the result in the calling object. Size property of the calling object is set automatically. Dew.Math.TOpenCLBase.Complex property of the calling object is set to True.

Indexed: TOpenCLMtxVec SubFrom(TCplx Value, TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

subtract Vec elements [VecIndex]..[VecIndex+Len-1] from complex Value and store the result to the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1ValueTCplxscalar
2VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Size property of the calling object is not changed. An exception is raised if array borders are overrun or underrun. Dew.Math.TOpenCLBase.Complex property of the calling object is set to True.

Overload 3: TOpenCLMtxVec SubFrom(Double Value)

Subtraction from value.

#NameTypeDescription
1ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Subtract each of calling object elements from Value.

Indexed: TOpenCLMtxVec SubFrom(Double Value, Int32 Index, Int32 Len)

Subtract elements [Index]..[Index+Len-1] from Value.

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in calling vector. An exception is raised if array borders are overrun or underrun.

Overload 4: TOpenCLMtxVec SubFrom(Double Value, TOpenCLMtxVec Vec)

subtract Vec elements from Value.

#NameTypeDescription
1ValueDoublescalar
2VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the result in the calling object. Size and Dew.Math.TOpenCLBase.Complex properties of calling object are adjusted automatically.

Indexed: TOpenCLMtxVec SubFrom(Double Value, TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

subtract Vec elements [VecIndex]..[VecIndex+Len-1] from Value.

#NameTypeDescription
1ValueDoublescalar
2VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the result to the calling object elements [Index]..[Index+Len-1]. Size property of the calling object is not changed. An exception is raised if array borders are overrun or underrun. Dew.Math.TOpenCLBase.Complex property of the calling object is adjusted automatically.