Package com.artelys.kalis
Class KIntMatrix
- java.lang.Object
-
- com.artelys.kalis.intmatrix
-
- com.artelys.kalis.KIntMatrix
-
public class KIntMatrix extends com.artelys.kalis.intmatrix
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
-
-
Constructor Summary
Constructors Modifier Constructor Description KIntMatrix(int N, int M, int value)
Constructor
KIntMatrix(int N, int M, int value, java.lang.String name)
Constructor
protected
KIntMatrix(long cPtr, boolean cMemoryOwn)
KIntMatrix(KIntMatrix matrixToCopy)
Copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
com.artelys.kalis.intmatrix
getCopyPtr()
Get a pointer to a copy of this objectprotected static long
getCPtr(KIntMatrix obj)
void
print()
Pretty printing of the matrix
-
-
-
Constructor Detail
-
KIntMatrix
protected KIntMatrix(long cPtr, boolean cMemoryOwn)
-
KIntMatrix
public KIntMatrix(int N, int M, int value, java.lang.String name)
Constructor
- Parameters:
N
- width of the matrixM
- length of the matrix
name
- name of the matrix
-
KIntMatrix
public KIntMatrix(int N, int M, int value)
Constructor
- Parameters:
N
- width of the matrixM
- length of the matrix
-
KIntMatrix
public KIntMatrix(KIntMatrix matrixToCopy)
Copy constructor
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KIntMatrix obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classcom.artelys.kalis.intmatrix
-
delete
public void delete()
- Overrides:
delete
in classcom.artelys.kalis.intmatrix
-
getCopyPtr
public com.artelys.kalis.intmatrix getCopyPtr()
Get a pointer to a copy of this object
-
print
public void print()
Pretty printing of the matrix
-
-