ClMtxExpr.Mag Method

Overload List

#SignatureDescription
1clMatrix Mag(TOpenCLMatrix X)Result = magnitude from the source
2clValue Mag(TOpenCLValue X)Result = magnitude from the source
3clVector Mag(TOpenCLVector X)Result = magnitude from the source

Overload 1: clMatrix Mag(TOpenCLMatrix X)

Compute magnitude from the source.

#NameTypeDescription
1XTOpenCLMatrixsource TOpenCLMatrix

Returns: clMatrix

Remarks:

Internally calls Dew.Math.clMatrix.Mag

Overload 2: clValue Mag(TOpenCLValue X)

Compute magnitude from the source.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: clValue

Remarks:

Internally calls Dew.Math.clValue.Mag

Examples
using Dew.Math;
using Dew.Math.Units;

namespace Dew.Examples
{
    void Example()
    {
        TOpenCLValue a,b;
        clMtxVec.CreateIt(out a, out b);
        try
        {
            b.Copy(Cplx(2,3));
            a.Mag(b);
        }
        finally
        {
            clMtxVec.FreeIt(ref a, ref b);
        }
    }
}

Overload 3: clVector Mag(TOpenCLVector X)

Compute magnitude from the source.

#NameTypeDescription
1XTOpenCLVectorsource TOpenCLVector

Returns: clVector

Remarks:

Internally calls Dew.Math.clVector.Mag