protected void resize ( VariableMatrix mat , int numRows , int numCols ) { if ( mat . isTemp ( ) ) { mat . matrix . reshape ( numRows , numCols ) ; } }
If the variable is a local temporary variable it will be resized so that the operation can complete . If not temporary then it will not be reshaped