All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.ssc.vector_spaces.BigMatrix Maven / Gradle / Ivy

Go to download

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy