clMatrix::Copy Method

Overload List

#SignatureDescription
1void Copy(TMtxInt *Src) const;
2void Copy(TVecInt *Src) const;
3void Copy(TMtx *Src) const;
4void Copy(TVec *Src) const;
5TOpenCLMtxVec *Copy(TOpenCLMtxVec *Vec) const;Copy object values.
6TOpenCLMtxVec *Copy(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len) const;Copy Vec elements [VecIndex]..[VecIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].

Overload 1: void Copy(TMtxInt *Src) const;

#NameTypeDescription
1SrcTMtxInt *
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: void Copy(TVecInt *Src) const;

#NameTypeDescription
1SrcTVecInt *
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: void Copy(TMtx *Src) const;

#NameTypeDescription
1SrcTMtx *
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: void Copy(TVec *Src) const;

#NameTypeDescription
1SrcTVec *
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 5: TOpenCLMtxVec *Copy(TOpenCLMtxVec *Vec) const;

Copy object values.

#NameTypeDescription
1VecTOpenCLMtxVec *
Remarks:

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

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clMatrix a, b, c;

    a.CopyFromArray(2, 2, DewArray<float>{1, 2, 3, 4}); // a = [1,2,3,4]
    b.Copy(a); // b = [1,2,3,4]
}
See Also: clMatrix::Assign
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

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

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

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

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

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler