Class 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, 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 object
      protected static long getCPtr​(KIntMatrix obj)  
      void print()
      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 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 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 Detail

      • 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