Package com.hpctoday.jpip.math

Examples of com.hpctoday.jpip.math.LongFactory


  private String result = "";
  private LongFactory lf;
 
  public PipOutputReader(String filename){
    this.filename = filename;
    lf = new LongFactory();
  }
View Full Code Here


import com.hpctoday.jpip.math.RationalVector;


public class Util {
  public static List<List<RationalNumber<LongInteger>>> convertRationalNumber(long[][] m){
    LongFactory factory = new LongFactory();
   
    int height = m.length;
    int width;
    if(height == 0){
      width = 0;
View Full Code Here

    return matrix;
  }
 
  public static RationalVector<LongInteger> getRationalVector(long[] m){
    RationalVector<LongInteger> vector = new RationalVector<LongInteger>(m.length);
    LongFactory factory = new LongFactory();
    for(int i = 0; i < m.length; i++){
      vector.set(i, new RationalNumber<LongInteger>(factory, m[i]));
    }
    return vector;
  }
View Full Code Here

//      } else {
//        // fprintf(out, "void\n");
//      }
//    }
   
    LongFactory lf = new LongFactory();
    Tableau<LongInteger> table = new Tableau<LongInteger>(lf, nVar, nParm, nIneq, bigparm, ineq);
    table.addUnitRows();
   
    if(integerSolution){
      table.simplify(nVar);
View Full Code Here

TOP

Related Classes of com.hpctoday.jpip.math.LongFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.