Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
0x00b1 committed Jun 4, 2024
1 parent 75b1865 commit b9bf11c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/beignet/special/__init__.py
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",
]
12 changes: 11 additions & 1 deletion src/beignet/special/_dawson_integral_f.py
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)
)

0 comments on commit b9bf11c

Please sign in to comment.