-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6d907e4
commit cde99e5
Showing
20 changed files
with
1,499 additions
and
9 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
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
Adarsh Palaskar <[email protected]> | ||
Aditya Sapra <[email protected]> | ||
AgPriyanshu18 <[email protected]> | ||
Aleksandr <[email protected]> | ||
Ali Salesi <[email protected]> | ||
Aman Bhansali <[email protected]> | ||
Amit Jimiwal <[email protected]> | ||
|
@@ -18,13 +19,15 @@ Chinmay Joshi <[email protected]> | |
Christopher Dambamuromo <[email protected]> | ||
Dan Rose <[email protected]> | ||
Daniel Killenberger <[email protected]> | ||
Daniel Yu <[email protected]> | ||
Dominik Moritz <[email protected]> | ||
Dorrin Sotoudeh <[email protected]> | ||
EuniceSim142 <[email protected]> | ||
Frank Kovacs <[email protected]> | ||
Golden Kumar <[email protected]> | ||
Gunj Joshi <[email protected]> | ||
Harshita Kalani <[email protected]> | ||
Hridyanshu <[email protected]> | ||
Jaimin Godhani <[email protected]> | ||
James Gelok <[email protected]> | ||
Jaysukh Makvana <[email protected]> | ||
|
@@ -60,6 +63,7 @@ Pushpendra Chandravanshi <[email protected]> | |
Raunak Kumar Gupta <[email protected]> | ||
Rejoan Sardar <[email protected]> | ||
Ricky Reusser <[email protected]> | ||
Ridam Garg <[email protected]> | ||
Robert Gislason <[email protected]> | ||
Roman Stetsyk <[email protected]> | ||
Rutam <[email protected]> | ||
|
@@ -69,8 +73,11 @@ Seyyed Parsa Neshaei <[email protected]> | |
Shashank Shekhar Singh <[email protected]> | ||
Shivam <[email protected]> | ||
Shraddheya Shendre <[email protected]> | ||
Shubh Mehta <[email protected]> | ||
Shubham Mishra <[email protected]> | ||
Snehil Shah <[email protected]> | ||
Sivam Das <[email protected]> | ||
Snehil Shah <[email protected]> | ||
Soumajit Chatterjee <[email protected]> | ||
Spandan Barve <[email protected]> | ||
Stephannie Jiménez Gacha <[email protected]> | ||
Suraj kumar <[email protected]> | ||
|
@@ -79,8 +86,10 @@ Tudor Pagu <[email protected]> | |
Utkarsh <http://[email protected]> | ||
Utkarsh Raj <[email protected]> | ||
Varad Gupta <[email protected]> | ||
Xiaochuan Ye <[email protected]> | ||
Yernar Yergaziyev <[email protected]> | ||
naveen <[email protected]> | ||
nishant-s7 <[email protected]> | ||
orimiles5 <[email protected]> | ||
rainn <[email protected]> | ||
rei2hu <[email protected]> |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* @license Apache-2.0 | ||
* | ||
* Copyright (c) 2024 The Stdlib Authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// MODULES // | ||
|
||
var resolve = require( 'path' ).resolve; | ||
var bench = require( '@stdlib/bench-harness' ); | ||
var randu = require( '@stdlib/random-base-randu' ); | ||
var isnan = require( '@stdlib/math-base-assert-is-nan' ); | ||
var tryRequire = require( '@stdlib/utils-try-require' ); | ||
var pkg = require( './../package.json' ).name; | ||
|
||
|
||
// VARIABLES // | ||
|
||
var vercos = tryRequire( resolve( __dirname, './../lib/native.js' ) ); | ||
var opts = { | ||
'skip': ( vercos instanceof Error ) | ||
}; | ||
|
||
|
||
// MAIN // | ||
|
||
bench( pkg+'::native', opts, function benchmark( b ) { | ||
var x; | ||
var y; | ||
var i; | ||
|
||
b.tic(); | ||
for ( i = 0; i < b.iterations; i++ ) { | ||
x = ( randu() * 20.0 ) - 10.0; | ||
y = vercos( x ); | ||
if ( isnan( y ) ) { | ||
b.fail( 'should not return NaN' ); | ||
} | ||
} | ||
b.toc(); | ||
if ( isnan( y ) ) { | ||
b.fail( 'should not return NaN' ); | ||
} | ||
b.pass( 'benchmark finished' ); | ||
b.end(); | ||
}); |
Oops, something went wrong.