I need to reset or flush the Jama Matrix before overwriting it to prevent the following error (suggested here).
java.lang.IllegalArgumentException: Matrix inner dimensions must agree.
I could not find any way to flush the Jama Matrix. If there any way to do so? An approach is suggested here to use the following code.
Matrix matrix = new Matrix();
matrix.reset();
However, it does not work. Any help, please!
Thank you.