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

Fix scipy factorized import #185

Merged
merged 2 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pygeo/pyBlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def fitGlobal(self, greedyReorder=False):
NN = sparse.csr_matrix((vals, colInd, rowPtr))
NNT = NN.T
NTN = NNT * NN
solve = linalg.dsolve.factorized(NTN)
solve = linalg.factorized(NTN)
self.coef = np.zeros((nCtl, 3))
for idim in range(3):
self.coef[:, idim] = solve(NNT * pts[:, idim])
Expand Down
2 changes: 1 addition & 1 deletion pygeo/pyGeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pyspline import Curve, Surface
from pyspline.utils import closeTecplot, openTecplot, writeTecplot2D
from scipy import sparse
from scipy.sparse.linalg.dsolve import factorized
from scipy.sparse.linalg import factorized

# Local modules
from . import geo_utils
Expand Down