KIntMatrix

class KIntMatrix : public ArtelysMatrix<int>

This class implements an matrix of integers

KProblem p(...);
// mat is a matrix of integer
// mat[0][0] mat[1][0]
// mat[0][1] mat[1][1]
// mat[0][2] mat[1][2]
// with domain [0..10]
KIntMatrix  mat(p,2,3,0,10,"mat");
Since

2016.1

Public Functions

KIntMatrix(int N, int M, int value, const char *name = 0)

Constructor

Parameters
  • problem – the problem

  • N – width of the matrix

  • M – length of the matrix

  • lowerBound – Lower bound for variables in the matrix

  • upperBound – Upper bound for variables in the matrix

  • name – name of the matrix

KIntMatrix(const KIntMatrix &matrixToCopy)

Copy constructor

~KIntMatrix()

Destructor

virtual ArtelysMatrix<int> *getCopyPtr() const

Get a pointer to a copy of this object

void print(void)

Pretty printing of the matrix