-
Notifications
You must be signed in to change notification settings - Fork 5
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
15 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
from ._dawson_integral_f import dawson_integral_f | ||
from ._error_erf import error_erf | ||
from ._error_erfc import error_erfc | ||
from ._error_erfi import error_erfi | ||
from ._faddeeva_w import faddeeva_w | ||
|
||
__all__ = [ | ||
"dawson_integral_f", | ||
"error_erf", | ||
"error_erfc", | ||
"error_erfi", | ||
"faddeeva_w", | ||
] |
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,5 +1,15 @@ | ||
import math | ||
|
||
import torch | ||
from torch import Tensor | ||
|
||
import beignet.special | ||
|
||
|
||
def dawson_integral_f(input: Tensor) -> Tensor: | ||
pass | ||
return ( | ||
math.sqrt(torch.pi) | ||
/ 2.0 | ||
* torch.exp(-torch.square(input)) | ||
* beignet.special.error_erfi(input) | ||
) |