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
  • Field Summary

    Fields inherited from class com.artelys.kalis.intmatrix

    swigCMemOwn
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    KIntMatrix​(int N, int M, int value)
    Constructor


     
    KIntMatrix​(int N, int M, int value, String name)
    Constructor


    protected
    KIntMatrix​(long cPtr, boolean cMemoryOwn)
     
     
    KIntMatrix​(KIntMatrix matrixToCopy)
    Copy constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    com.artelys.kalis.intmatrix
    Get a pointer to a copy of this object
    protected static long
     
    void
    Pretty printing of the matrix

    Methods inherited from class com.artelys.kalis.intmatrix

    getCPtr, getM, getMatrix, GetMaxValue, GetMinValue, getN, getRow, setMatrix, setRow, SumAll

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KIntMatrix

      protected KIntMatrix(long cPtr, boolean cMemoryOwn)
    • KIntMatrix

      public KIntMatrix(int N, int M, int value, String name)
      Constructor


      Parameters:
      N - width of the matrix
      M - length of the matrix


      name - name of the matrix
    • KIntMatrix

      public KIntMatrix(int N, int M, int value)
      Constructor


      Parameters:
      N - width of the matrix
      M - length of the matrix


    • KIntMatrix

      public KIntMatrix(KIntMatrix matrixToCopy)
      Copy constructor
  • Method Details

    • getCPtr

      protected static long getCPtr(KIntMatrix obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class com.artelys.kalis.intmatrix
    • delete

      public void delete()
      Overrides:
      delete in class com.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