Created LongMatrix

This commit is contained in:
2022-02-10 16:08:08 +00:00
parent ca6fa61106
commit 55244130ca

View File

@@ -1,7 +1,7 @@
//Matrix/src/main/java/com/mattrixwv/matrix/DoubleMatrix.java
//Mattrixwv
// Created: 02-07-22
//Modified: 02-08-22
//Modified: 02-10-22
package com.mattrixwv.matrix;
@@ -20,10 +20,10 @@ public class DoubleMatrix{
//Helper functions
protected void setGrid(double[][] grid){
if(grid.length == 0){
grid = new double[0][0];
this.grid = new double[0][0];
}
else if(grid[0].length == 0){
grid = new double[grid.length][0];
this.grid = new double[grid.length][0];
}
else{
//Make sure all rows are the same length