-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
83 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,24 @@ | ||
from typing import TypeAlias | ||
|
||
import numpy as np | ||
import optype as op | ||
import optype.numpy as onpt | ||
from optype import CanBool, CanFloat, CanInt | ||
import optype.typing as opt | ||
|
||
_Vector_i8: TypeAlias = onpt.Array[tuple[int, int], np.int64] | ||
_Vector_f8: TypeAlias = onpt.Array[tuple[int], np.float64] | ||
_Matrix_f8: TypeAlias = onpt.Array[tuple[int, int], np.float64] | ||
|
||
def _cy_wrapper_centered_discrepancy( | ||
sample: onpt.Array[tuple[int, int], np.float64], | ||
iterative: CanBool, | ||
workers: CanInt, | ||
) -> float: ... | ||
def _cy_wrapper_wrap_around_discrepancy( | ||
sample: onpt.Array[tuple[int, int], np.float64], | ||
iterative: CanBool, | ||
workers: CanInt, | ||
) -> float: ... | ||
def _cy_wrapper_mixture_discrepancy( | ||
sample: onpt.Array[tuple[int, int], np.float64], | ||
iterative: CanBool, | ||
workers: CanInt, | ||
) -> float: ... | ||
def _cy_wrapper_l2_star_discrepancy( | ||
sample: onpt.Array[tuple[int, int], np.float64], | ||
iterative: CanBool, | ||
workers: CanInt, | ||
) -> float: ... | ||
def _cy_wrapper_update_discrepancy( | ||
x_new_view: onpt.Array[tuple[int], np.float64], | ||
sample_view: onpt.Array[tuple[int, int], np.float64], | ||
initial_disc: CanFloat, | ||
) -> float: ... | ||
def _cy_van_der_corput( | ||
n: CanInt, | ||
base: CanInt, | ||
start_index: CanInt, | ||
workers: CanInt, | ||
) -> onpt.Array[tuple[int], np.float64]: ... | ||
def _cy_wrapper_centered_discrepancy(sample: _Matrix_f8, iterative: op.CanBool, workers: opt.AnyInt) -> float: ... | ||
def _cy_wrapper_wrap_around_discrepancy(sample: _Matrix_f8, iterative: op.CanBool, workers: opt.AnyInt) -> float: ... | ||
def _cy_wrapper_mixture_discrepancy(sample: _Matrix_f8, iterative: op.CanBool, workers: opt.AnyInt) -> float: ... | ||
def _cy_wrapper_l2_star_discrepancy(sample: _Matrix_f8, iterative: op.CanBool, workers: opt.AnyInt) -> float: ... | ||
def _cy_wrapper_update_discrepancy(x_new_view: _Vector_f8, sample_view: _Matrix_f8, initial_disc: opt.AnyFloat) -> float: ... | ||
def _cy_van_der_corput(n: opt.AnyInt, base: opt.AnyInt, start_index: opt.AnyInt, workers: opt.AnyInt) -> _Vector_f8: ... | ||
def _cy_van_der_corput_scrambled( | ||
n: CanInt, | ||
base: CanInt, | ||
start_index: CanInt, | ||
permutations: onpt.Array[tuple[int, int], np.int64], | ||
workers: CanInt, | ||
) -> onpt.Array[tuple[int], np.float64]: ... | ||
n: opt.AnyInt, | ||
base: opt.AnyInt, | ||
start_index: opt.AnyInt, | ||
permutations: _Vector_i8, | ||
workers: opt.AnyInt, | ||
) -> _Vector_f8: ... |