code: protected void resize( VariableMatrix mat , int numRows , int numCols ) {
          if( mat.isTemp() ) {
              mat.matrix.reshape(numRows,numCols);
          }
      }
docs: 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
  @param mat Variable containing the matrix
  @param numRows Desired number of rows
  @param numCols Desired number of columns