TOpenCLMatrix::Copy Method

Overload List

#SignatureDescription
1TOpenCLBase *Copy(TOpenCLBase *Vec, int VecIndex, int Index, int Len);
2TOpenCLMtxVec *Copy(TOpenCLMtxVec *Src);Copy object values.
3TOpenCLMtxVec *Copy(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len);Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].
4void Copy(TDenseMtxVec *Src);
5void Copy(TMtxVecInt *Src);

Overload 1: TOpenCLBase *Copy(TOpenCLBase *Vec, int VecIndex, int Index, int Len);

#NameTypeDescription
1VecTOpenCLBase *
2VecIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Copy(TOpenCLMtxVec *Src);

Copy object values.

#NameTypeDescription
1SrcTOpenCLMtxVec *
Remarks:

Copy each of Vec elements to the calling object. Size and TOpenCLBase::Complex properties of the calling object are set implicitly to match Vec object.

Examples
#include "clMtxVec.h"
#include "Units.clMtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::ClMtxVec;

void Example()
{
    TOpenCLVector *a, *b;

    CreateIt(a, b);
    a->CopyCplxFromArray(DewArray<float>{1,2,3,4});  // a = [1+2i,3+4i]
    b->Copy(a);                // b = [1,2,3,4]
    FreeIt(a, b);
}
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 3: TOpenCLMtxVec *Copy(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len);

Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

Size and TOpenCLBase::Complex properties must be set explicitly. An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 4: void Copy(TDenseMtxVec *Src);

#NameTypeDescription
1SrcTDenseMtxVec *
Declared in Dew::Math::TOpenCLMatrix · Dew.Math/clMtxVec.h · Cross-compiler

Overload 5: void Copy(TMtxVecInt *Src);

#NameTypeDescription
1SrcTMtxVecInt *
Declared in Dew::Math::TOpenCLMatrix · Dew.Math/clMtxVec.h · Cross-compiler