Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add math/base/special/dirac-deltaf #3363

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: remove bugs
  • Loading branch information
aayush0325 committed Dec 7, 2024
commit b5432f007dc22a892c864849df5d6183b64f2a99
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ static double benchmark( void ) {

t = tic();
for ( i = 0; i < ITERATIONS; i++ ) {
x = ( 100.0*rand_double() ) - 50.0;
y = dirac_delta( x );
x = ( 100.0f * rand_float() ) - 50.0f;
y = dirac_deltaf( x );
if ( y != y ) {
printf( "should not return NaN\n" );
break;
Expand Down
Loading