Skip to content

Commit fb22f5d

Browse files
committed
"added space"
1 parent 2aa082b commit fb22f5d

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

lib/node_modules/@stdlib/math/base/special/cosc/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void print_summary( int total, int passing ) {
5555
* @param elapsed elapsed time in seconds
5656
*/
5757
static void print_results( double elapsed ) {
58-
double rate = ( double )ITERATIONS / elapsed;
58+
double rate = ( double ) ITERATIONS / elapsed;
5959
printf( " ---\n" );
6060
printf( " iterations: %d\n", ITERATIONS );
6161
printf( " elapsed: %0.9f\n", elapsed );
@@ -71,7 +71,7 @@ static void print_results( double elapsed ) {
7171
static double tic( void ) {
7272
struct timeval now;
7373
gettimeofday( &now, NULL );
74-
return ( double )now.tv_sec + ( double )now.tv_usec/1.0e6;
74+
return ( double ) now.tv_sec + ( double ) now.tv_usec / 1.0e6;
7575
}
7676

7777
/**

lib/node_modules/@stdlib/math/base/special/cosc/benchmark/scipy/benchmark.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def print_version():
3131
print("TAP version 13")
3232

3333

34-
def print_summary(total, passing):
34+
def print_summary( total , passing ):
3535
"""Print the benchmark summary.
3636
3737
# Arguments
@@ -48,7 +48,7 @@ def print_summary(total, passing):
4848
print("# ok")
4949

5050

51-
def print_results(elapsed):
51+
def print_results( elapsed ):
5252
"""Print benchmark results.
5353
5454
# Arguments
@@ -73,19 +73,19 @@ def print_results(elapsed):
7373
def benchmark():
7474
"""Run the benchmark and print benchmark results."""
7575
setup = "from scipy.special import cosc; from random import random;"
76-
stmt = "y = cosc(2.0*random() - 2.0)"
76+
stmt = "y = cosc( 2.0*random() - 2.0 )"
7777

78-
t = timeit.Timer(stmt, setup=setup)
78+
t = timeit.Timer( stmt , setup=setup )
7979

8080
print_version()
8181

8282
for i in range(REPEATS):
8383
print("# python::scipy::" + NAME)
84-
elapsed = t.timeit(number=ITERATIONS)
85-
print_results(elapsed)
84+
elapsed = t.timeit( number = ITERATIONS )
85+
print_results( elapsed )
8686
print("ok " + str( i+1 ) + " benchmark finished")
8787

88-
print_summary(REPEATS, REPEATS)
88+
print_summary( REPEATS , REPEATS )
8989

9090

9191
def main():

lib/node_modules/@stdlib/math/base/special/cosc/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ int main( void ) {
2626
int i;
2727
for ( i = 0; i < 5; i++ ) {
2828
y = stdlib_base_cosc( x[ i ] );
29-
printf( "cosc(%lf) = %lf\n", x[ i ], y );
29+
printf( "cosc( %lf ) = %lf\n", x[ i ], y );
3030
}
3131
}

lib/node_modules/@stdlib/math/base/special/cosc/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ var PI = require( '@stdlib/constants/float64/pi' );
5151
* \end{align*}
5252
* ```
5353
*
54-
* @param {number} x - input value
55-
* @returns {number} derivative of cardinal sine
54+
* @param { number } x - input value
55+
* @returns { number } derivative of cardinal sine
5656
*
5757
* @example
5858
* var v = cosc( 0.5 );

lib/node_modules/@stdlib/math/base/special/cosc/lib/native.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ var addon = require( './../src/addon.node' );
2929
* Computes the normalized derivative of cardinal sine of a number.
3030
*
3131
* @private
32-
* @param {number} x - input value
33-
* @returns {number} derivative of cardinal sine
32+
* @param { number } x - input value
33+
* @returns { number } derivative of cardinal sine
3434
*
3535
* @example
3636
* var v = cosc( 0.5 );

lib/node_modules/@stdlib/math/base/special/cosc/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var tinyPositive = require( './fixtures/julia/tiny_positive.json' );
4242

4343
tape( 'main export is a function', function test( t ) {
4444
t.ok( true, __filename );
45-
t.strictEqual( typeof sinc, 'function', 'main export is a function' );
45+
t.strictEqual( typeof cosc, 'function', 'main export is a function' );
4646
t.end();
4747
});
4848

0 commit comments

Comments
 (0)