mirror of
https://bitbucket.org/Mattrixwv/matrix.git
synced 2025-12-06 15:03:58 -05:00
Created LongMatrix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//Matrix/src/main/java/com/mattrixwv/IntegerMatrix.java
|
||||
//Mattrixwv
|
||||
// Created: 02-01-22
|
||||
//Modified: 02-09-22
|
||||
//Modified: 02-10-22
|
||||
package com.mattrixwv.matrix;
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ public class IntegerMatrix{
|
||||
//Helper functions
|
||||
protected void setGrid(int[][] grid){
|
||||
if(grid.length == 0){
|
||||
grid = new int[0][0];
|
||||
this.grid = new int[0][0];
|
||||
}
|
||||
else if(grid[0].length == 0){
|
||||
grid = new int[grid.length][0];
|
||||
this.grid = new int[grid.length][0];
|
||||
}
|
||||
else{
|
||||
//Make sure all rows are the same length
|
||||
|
||||
Reference in New Issue
Block a user