Skip to content

Commit aa7535e

Browse files
committed
moved the devo numba implementation to algorithms
1 parent 0337b3f commit aa7535e

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/compas/hpc/numba/devo.py renamed to src/compas/hpc/algorithms/devo_numba.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919

2020
__all__ = [
21-
'numba_devo'
21+
'devo_numba'
2222
]
2323

2424

2525
args = 0
2626

2727

2828
@jit(nogil=True, nopython=True)
29-
def numba_devo(bounds, population, iterations):
29+
def devo_numba(bounds, population, iterations):
3030
""" Call the Numba accelerated differential evolution solver.
3131
3232
Parameters:
@@ -125,5 +125,5 @@ def _fn(u, args):
125125
if __name__ == "__main__":
126126

127127
bounds = array([[-10., 10.], [-10., 10.]])
128-
xopt = numba_devo(bounds, population=20, iterations=100)
128+
xopt = devo_numba(bounds, population=20, iterations=100)
129129
print(xopt)

src/compas/hpc/numba/__init__.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)