it.ssc.vector_spaces.BigMatrix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-ssc Show documentation
Show all versions of jsr331-ssc Show documentation
This is a JSR331 interface for SSC (Software for the Calculation of the Simplex) is a java library for solving linear programming problems v. 3.0.1.
SSC was designed and developed by Stefano Scarioli.
The newest version!
package it.ssc.vector_spaces;
import java.math.BigDecimal;
import java.math.MathContext;
import java.math.RoundingMode;
public class BigMatrix implements Cloneable {
static final BigDecimal ZERO_BIG=new BigDecimal("0.0",MathContext.DECIMAL128);
static final BigDecimal NEG_ONE_BIG=new BigDecimal("-1.0",MathContext.DECIMAL128);
protected BigDecimal[][] big_matrix;
protected int n_row;
protected int n_column;
public BigMatrix(int n_row,int n_column) {
this.n_row=n_row;
this.n_column=n_column;
this.big_matrix=new BigDecimal[n_row][n_column];
this.inizialize();
}
private void inizialize() {
for(int _i=0;_i