Skip to content

Commit

Permalink
convert h vector to matrix with single column
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter committed Dec 15, 2024
1 parent 9d93750 commit 1cce152
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lapy/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ def poisson(self, h=0.0, dtup=(), ntup=()): # poissonSolver
raise ValueError(
"h should be either scalar or column vector with row num of A"
)
if h.ndim == 1:
h = h[:,np.newaxis]
# create vector d
didx = []
dvec = []
Expand Down

0 comments on commit 1cce152

Please sign in to comment.