Skip to content

Conversation

@Somebody32x2
Copy link

Replaces all usages of np.mat(), which now throws errors, with np.asmatrix()

Resolves issue #65, fixing several broken factorization algorithms.

feirog added a commit to feirog/nimfa that referenced this pull request Jan 16, 2026
I noticed several 'np.mat()' instances were still present in the package and limited fix mims-harvard#66 . As such, issue mims-harvard#65 was still present.

With this update, I've ensured all instances of 'np.mat()' have been replaced to 'np.asmatrix()'. To do so, I've the following shell command:

find * -type f -exec sed -i 's/np.mat(/np.asmatrix(/g' {} \;

This should fix several broken functions, hopefully making Nimfa compatible with numpy v.2.0.0+. Resolves issue mims-harvard#65 , building on mims-harvard#66 .
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