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 b9bf11c commit 2ca8b82
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/beignet/special/_dawson_integral_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
import torch
from torch import Tensor

import beignet.special
from ._error_erfi import error_erfi


def dawson_integral_f(input: Tensor) -> Tensor:
return (
math.sqrt(torch.pi)
/ 2.0
* torch.exp(-torch.square(input))
* beignet.special.error_erfi(input)
)
def dawson_integral_f(z: Tensor) -> Tensor:
return math.sqrt(torch.pi) / 2.0 * torch.exp(-torch.square(z)) * error_erfi(z)

0 comments on commit 2ca8b82

Please sign in to comment.