TMtxInt::SetCol Method

Overload List

#SignatureDescription
1TMtxInt *SetCol(TMtxVecInt *Vec, int Col);Copies values from vector to matrix column.
2TMtxInt *SetCol(TMtxVecInt *Vec, int VecIndex, int Row, int Col, int Len);Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col].

Overload 1: TMtxInt *SetCol(TMtxVecInt *Vec, int Col);

Copies values from vector to matrix column.

#NameTypeDescription
1VecTMtxVecInt *
2Colint
Remarks:

Copy all Vec elements to the calling matrix Col column. An exception is raised, if array bounds are overrun.

Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;

void Example()
{
    TMtxInt* A;
    TVecInt* V;

    CreateIt(A);
    CreateIt(V);
    A->Size(4, 1);
    V->SetIt(DewArray<int>{1,2, 2,4});
    A->SetCol(V, 0);
    FreeIt(V);
    FreeIt(A);
}
See Also: TMtxInt::SetRow
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 2: TMtxInt *SetCol(TMtxVecInt *Vec, int VecIndex, int Row, int Col, int Len);

Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col].

#NameTypeDescription
1VecTMtxVecInt *
2VecIndexint
3Rowint
4Colint
5Lenint
Remarks:

An exception is raised if condition checking is enabled and array bounds are overrun.

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler