Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update alra.R #28

Open
wants to merge 3 commits into
base: memory-efficient
Choose a base branch
from
Open

Update alra.R #28

wants to merge 3 commits into from

Conversation

Biomiha
Copy link

@Biomiha Biomiha commented Dec 14, 2023

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

Correct bug in 'matrix' class error handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant