Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtuck committed Dec 20, 2023
1 parent 67096b2 commit eac2b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def run(self):
sources=["src/crbfgs.pyx", "src/rbfgs.cpp"],
include_dirs=[numpy.get_include()],
language="c++",
extra_compile_args=["-std=c++11"],
extra_compile_args=["-std=c++11", "-lblas", "-llapack"],
),
Extension(
name="cimage",
Expand Down
4 changes: 2 additions & 2 deletions src/crbfgs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ include "cyarma.pyx"

from libcpp cimport bool

def rlbfs(np.ndarray[double, ndim=1, mode="c"] q1, np.ndarray[double, ndim=1, mode="c"] q2,
np.ndarray[double, ndim=1, mode="c"] time, maxiter=30, lam=0.0, penalty=0):
def rlbfgs(np.ndarray[double, ndim=1, mode="c"] q1, np.ndarray[double, ndim=1, mode="c"] q2,
np.ndarray[double, ndim=1, mode="c"] time, maxiter=30, lam=0.0, penalty=0):
q1 = np.ascontiguousarray(q1)
q2 = np.ascontiguousarray(q2)
time = np.ascontiguousarray(time)
Expand Down

0 comments on commit eac2b0b

Please sign in to comment.