28#include "intmatrix.hpp"
30#include "intmatrix.inl"
36 int lbi =
Lb(A,1), ubi =
Ub(A,1);
37 int lbj =
Lb(A,2), ubj =
Ub(A,2);
40 for (i = lbi; i <= ubi; i++)
41 for (j = lbj; j <= ubj; j++)
42 B[i][j] = (i==j) ? 1 : 0;
51 for (n =
Lb(A,1); n <=
Ub(A,1); n++)
Col(res,n) =
Row(A,n);
The namespace cxsc, providing all functionality of the class library C-XSC.
cimatrix_subv Col(cimatrix &m, const int &i) noexcept
Returns one column of the matrix as a vector.
cimatrix transp(const cimatrix &A)
Returns the transposed matrix.
int Ub(const cimatrix &rm, const int &i) noexcept
Returns the upper bound index.
cimatrix_subv Row(cimatrix &m, const int &i) noexcept
Returns one row of the matrix as a vector.
void DoubleSize(cimatrix &A)
Doubles the size of the matrix.
cimatrix Id(const cimatrix &A)
Returns the Identity matrix.
void Resize(cimatrix &A) noexcept
Resizes the matrix.
int Lb(const cimatrix &rm, const int &i) noexcept
Returns the lower bound index.