Created
April 22, 2015 09:16
-
-
Save zomux/cbc0e09a18d4ed90ed32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void init(int[] shape) { | |
ensureNotCleanedUp(); | |
this.shape = shape; | |
if (this.shape.length == 1) { | |
rows = 1; | |
columns = this.shape[0]; | |
} else if (this.shape().length == 2) { | |
rows = shape[0]; | |
columns = shape[1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment