clVector.Inv Method

Overload List

#SignatureDescription
1TOpenCLMtxVec InvInverse elements.
└ indexed: TOpenCLMtxVec Inv(Int32 Index, Int32 Len)
2TOpenCLMtxVec Inv(TOpenCLMtxVec X)Calculate the inverse of all X object elements without limiting operating.
└ indexed: TOpenCLMtxVec Inv(TOpenCLMtxVec X, Int32 XIndex, Int32 Index, Int32 Len)

Overload 1: TOpenCLMtxVec Inv

Inverse elements.

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

Remarks:

Calculates the inverse of all calling object elements in-place without limiting inverse operation.

Examples
clVector a;
clVector b;
a.CopyFromArray(TSingleArray.Create(1,2,3,4));  // a = new double[] {1, 2, 3, 4}
b.Inv(a); // b = new double[] {1.0, 0.5, 0.3333, 0.25}
See Also: clVector.Divide

Indexed: TOpenCLMtxVec Inv(Int32 Index, Int32 Len)

Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

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

Remarks:

An exception is raised if array borders are overrun/underrun.

Overload 2: TOpenCLMtxVec Inv(TOpenCLMtxVec X)

Calculate the inverse of all X object elements without limiting operating.

#NameTypeDescription
1XTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

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

Remarks:

Store the results in calling object. Size and Dew.Math.clVector.Complex property of calling object are adjusted automatically.

Indexed: TOpenCLMtxVec Inv(TOpenCLMtxVec X, Int32 XIndex, Int32 Index, Int32 Len)

Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1] without limiting operating.

#NameTypeDescription
1XTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2XIndexInt32X start index
3IndexInt32start index
4LenInt32element count

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

Remarks:

Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if X and calling object Dew.Math.clVector.Complex property does not match or array borders are overrun/underrun.