Examples of PyInteger


Examples of org.python.core.PyInteger

    return this.interp.get("matrix").toString();
  }

  public String get(int row, int column) {
    this.interp.set("row", new PyInteger(row));
    this.interp.set("column", new PyInteger(column));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_GET));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("value").toString();
View Full Code Here

Examples of org.python.core.PyInteger

  public int getSize() {
    return matrixWrapper.getM();
  }

  public boolean isRowCleared(int subMatrixLvl) {
    this.interp.set("level", new PyInteger(subMatrixLvl));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_IS_ROW_CLEARED));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("cleared").toString().equals("True");
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("cleared").toString().equals("True");
  }

  public boolean isColumnCleared(int subMatrixLvl) {
    this.interp.set("level", new PyInteger(subMatrixLvl));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_IS_COLUMN_CLEARED));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("cleared").toString().equals("True");
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("cleared").toString().equals("True");
  }

  public boolean isRowDividable(int subMatrixLvl) {
    this.interp.set("level", new PyInteger(subMatrixLvl));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_IS_ROW_DIVIDABLE));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("dividable").toString().equals("True");
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("dividable").toString().equals("True");
  }

  public String processColumnsAfterHermitian(int row1, int row2, int column) {
    this.interp.set("row1", new PyInteger(row1));
    this.interp.set("row2", new PyInteger(row2));
    this.interp.set("column", new PyInteger(column));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_PROCESS_COLUMNS_AFTER_HERMITIAN));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("matrix").toString();
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("diagonal_ok").toString().equals("True");
  }
 
  public String addRows(int row1, int row2) {
    this.interp.set("row1", new PyInteger(row1));
    this.interp.set("row2", new PyInteger(row2));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_ADD_ROWS));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("matrix").toString();
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("matrix").toString();
  }
 
  public boolean needsFixing(int level) {
    this.interp.set("level", new PyInteger(level));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_NEEDS_FIXING));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("needs_fixing").toString().equals("True");
View Full Code Here

Examples of org.python.core.PyInteger

    return this.interp.get("needs_fixing").toString().equals("True");
  }

  public String switchColumns(int column1, int column2) {
    this.interp.set("column1", new PyInteger(column1));
    this.interp.set("column2", new PyInteger(column2));
    this.interp.set("operation", new PyString(
        ConcretePyMatrixHandler.FUNC_SWITCH_COLUMNS));
    this.interp.execfile(ConcretePyMatrixHandler.FILE);

    return this.interp.get("matrix").toString();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.