-
-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from mklauser/issue_123two
Issue 123two
- Loading branch information
Showing
4 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include "../montecarlo.pyx" | ||
|
||
|
||
def binary_search_wrapper(np.ndarray x, float_type_t x_insert, int_type_t imin, int_type_t imax): | ||
cdef float_type_t* x_pointer | ||
x_pointer = <float_type_t*> x.data | ||
return binary_search(x_pointer, x_insert, imin, imax) | ||
|
||
def line_search_wrapper(np.ndarray nu, float_type_t nu_insert, | ||
int_type_t number_of_lines): | ||
cdef float_type_t* nu_pointer | ||
nu_pointer = <float_type_t*> nu.data | ||
return line_search(nu_pointer, nu_insert, number_of_lines) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters