The alra.low.memory function has a line checking whether the input A_norm is of class matrix but the output of class(A_norm) is actually a vector with multiple elements e.g. ("matrix" and "array") and therefore this check throws an error. By changing the if statement to if "matrix" is found in class(A_norm) any other classes are ignored.
Hope this makes sense.
Hi @linqiaozhi
The alra.low.memory function has a line checking whether the input A_norm is of class matrix but the output of class(A_norm) is actually a vector with multiple elements e.g. ("matrix" and "array") and therefore this check throws an error. By changing the if statement to if "matrix" is found in class(A_norm) any other classes are ignored. Hope this makes sense.
Thanks, Miha