Skip to content

Commit 28433d6

Browse files
committed
docs: clean-up C function parameter and return annotations
1 parent a7fdd40 commit 28433d6

File tree

30 files changed

+34
-42
lines changed

30 files changed

+34
-42
lines changed

lib/node_modules/@stdlib/blas/base/ddot/src/ddot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @param strideX X stride length
3232
* @param Y second array
3333
* @param strideY Y stride length
34-
* @returns the dot product
34+
* @return the dot product
3535
*/
3636
double c_ddot( const int N, const double *X, const int strideX, const double *Y, const int strideY ) {
3737
double dot;

lib/node_modules/@stdlib/blas/base/ddot/src/ddot_cblas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @param strideX X stride length
2828
* @param Y second array
2929
* @param strideY Y stride length
30-
* @returns the dot product
30+
* @return the dot product
3131
*/
3232
double c_ddot( const int N, const double *X, const int strideX, const double *Y, const int strideY ) {
3333
return cblas_ddot( N, X, strideX, Y, strideY );

lib/node_modules/@stdlib/blas/base/ddot/src/ddot_f.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param strideX X stride length
3333
* @param Y second array
3434
* @param strideY Y stride length
35-
* @returns the dot product
35+
* @return the dot product
3636
*/
3737
double c_ddot( const int N, const double *X, const int strideX, const double *Y, const int strideY ) {
3838
double dot;

lib/node_modules/@stdlib/blas/base/dsdot/src/dsdot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @param strideX X stride length
3232
* @param Y second array
3333
* @param strideY Y stride length
34-
* @returns the dot product
34+
* @return the dot product
3535
*/
3636
double c_dsdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
3737
double dot;

lib/node_modules/@stdlib/blas/base/dsdot/src/dsdot_cblas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @param strideX X stride length
2828
* @param Y second array
2929
* @param strideY Y stride length
30-
* @returns the dot product
30+
* @return the dot product
3131
*/
3232
double c_dsdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
3333
return cblas_dsdot( N, X, strideX, Y, strideY );

lib/node_modules/@stdlib/blas/base/dsdot/src/dsdot_f.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param strideX X stride length
3333
* @param Y second array
3434
* @param strideY Y stride length
35-
* @returns the dot product
35+
* @return the dot product
3636
*/
3737
double c_dsdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
3838
double dot;

lib/node_modules/@stdlib/blas/base/sdot/src/sdot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @param strideX X stride length
3232
* @param Y second array
3333
* @param strideY Y stride length
34-
* @returns the dot product
34+
* @return the dot product
3535
*/
3636
float c_sdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
3737
float dot;

lib/node_modules/@stdlib/blas/base/sdot/src/sdot_cblas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @param strideX X stride length
2828
* @param Y second array
2929
* @param strideY Y stride length
30-
* @returns the dot product
30+
* @return the dot product
3131
*/
3232
float c_sdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
3333
return cblas_sdot( N, X, strideX, Y, strideY );

lib/node_modules/@stdlib/blas/base/sdot/src/sdot_f.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @param strideX X stride length
3535
* @param Y second array
3636
* @param strideY Y stride length
37-
* @returns the dot product
37+
* @return the dot product
3838
*/
3939
float c_sdot( const int N, const float *X, const int strideX, const float *Y, const int strideY ) {
4040
float dot;

lib/node_modules/@stdlib/blas/base/sdsdot/src/sdsdot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @param strideX X stride length
3333
* @param Y second array
3434
* @param strideY Y stride length
35-
* @returns dot product
35+
* @return dot product
3636
*/
3737
float c_sdsdot( const int N, const float scalar, const float *X, const int strideX, const float *Y, const int strideY ) {
3838
double dot;

lib/node_modules/@stdlib/blas/base/sdsdot/src/sdsdot_cblas.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param strideX X stride length
2929
* @param Y second array
3030
* @param strideY Y stride length
31-
* @returns dot product
31+
* @return dot product
3232
*/
3333
float c_sdsdot( const int N, const float scalar, const float *X, const int strideX, const float *Y, const int strideY ) {
3434
return cblas_sdsdot( N, scalar, X, strideX, Y, strideY );

lib/node_modules/@stdlib/blas/base/sdsdot/src/sdsdot_f.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @param strideX X stride length
3636
* @param Y second array
3737
* @param strideY Y stride length
38-
* @returns dot product
38+
* @return dot product
3939
*/
4040
float c_sdsdot( const int N, const float scalar, const float *X, const int strideX, const float *Y, const int strideY ) {
4141
float dot;

lib/node_modules/@stdlib/math/base/assert/is-negative-zero/benchmark/c/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ double rand_double() {
9191
* Tests if a numeric value is negative zero.
9292
*
9393
* @param x value to test
94-
* @returns boolean indicating if a numeric value is negative zero
94+
* @return boolean indicating if a numeric value is negative zero
9595
*/
9696
bool is_negative_zero( double x ) {
9797
return ( 1.0/x == -HUGE_VAL );

lib/node_modules/@stdlib/math/base/assert/is-negative-zerof/benchmark/c/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ float rand_float() {
9191
* Tests if a numeric value is negative zero.
9292
*
9393
* @param x value to test
94-
* @returns boolean indicating if a numeric value is negative zero
94+
* @return boolean indicating if a numeric value is negative zero
9595
*/
9696
bool is_negative_zerof( float x ) {
9797
return ( x == 0.0f && 1.0f/x == -INFINITY );

lib/node_modules/@stdlib/math/base/assert/is-positive-zero/benchmark/c/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ double rand_double() {
9191
* Tests if a numeric value is positive zero.
9292
*
9393
* @param x value to test
94-
* @returns boolean indicating if a numeric value is positive zero
94+
* @return boolean indicating if a numeric value is positive zero
9595
*/
9696
bool is_positive_zero( double x ) {
9797
return ( 1.0/x == HUGE_VAL );

lib/node_modules/@stdlib/math/base/assert/is-positive-zerof/benchmark/c/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ float rand_float() {
9191
* Tests if a numeric value is positive zero.
9292
*
9393
* @param x value to test
94-
* @returns boolean indicating if a numeric value is positive zero
94+
* @return boolean indicating if a numeric value is positive zero
9595
*/
9696
bool is_positive_zerof( float x ) {
9797
return ( x == 0.0f && 1.0f/x == INFINITY );

lib/node_modules/@stdlib/math/base/special/acosd/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Computes the arccosine (in degrees) of a double-precision floating-point number.
2525
*
2626
* @param x input value
27-
* @returns arccosine (in degrees)
27+
* @return arccosine (in degrees)
2828
*
2929
* @example
3030
* double v = stdlib_base_acosd( 0.0 );

lib/node_modules/@stdlib/math/base/special/acotd/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Computes the arccotangent (in degrees) of a double-precision floating-point number.
2525
*
2626
* @param x input value
27-
* @returns arccotangent (in degrees)
27+
* @return arccotangent (in degrees)
2828
*
2929
* @example
3030
* double v = stdlib_base_acotd( 0.0 );

lib/node_modules/@stdlib/math/base/special/asecd/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Computes the arcsecant (in degrees) of a double-precision floating-point number.
2525
*
2626
* @param x input value
27-
* @returns arcsecant (in degrees)
27+
* @return arcsecant (in degrees)
2828
*
2929
* @example
3030
* double v = stdlib_base_asecd( 1.0 );

lib/node_modules/@stdlib/math/base/special/asind/src/main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
/**
2424
* Computes the arcsine (in degrees) of a double-precision floating-point number.
2525
*
26-
* @param x - input value
27-
* @returns arcsine (in degrees)
26+
* @param x input value
27+
* @return arcsine (in degrees)
2828
*
2929
* @example
3030
* double v = stdlib_base_acotd( 0.0 );

lib/node_modules/@stdlib/math/base/special/bernoulli/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ int32_t MAX_BERNOULLI = 258;
163163
* Computes the nth Bernoulli number.
164164
*
165165
* @param n input value
166-
* @returns output value
166+
* @return output value
167167
*
168168
* @example
169169
* double out = stdlib_base_bernoulli( 0 );

lib/node_modules/@stdlib/math/base/special/cbrt/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static const double P4 = 0.145996192886612446982; // 0x3fc2b000, 0xd4e4edd7
5858
* [horners-method]: https://en.wikipedia.org/wiki/Horner%27s_method
5959
*
6060
* @param x value at which to evaluate the polynomial
61-
* @returns evaluated polynomial
61+
* @return evaluated polynomial
6262
*/
6363
static double polval( const double x ) {
6464
if ( x == 0.0 ) {

lib/node_modules/@stdlib/math/base/special/csch/src/main.c

+4-12
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,16 @@
2222
/**
2323
* Computes the hyperbolic cosecant of a number.
2424
*
25-
* @param {number} x - input value
26-
* @returns {number} hyperbolic cosecant
25+
* @param x input value
26+
* @return hyperbolic cosecant
2727
*
2828
* @example
29-
* var v = csch( 0.0 );
30-
* // returns Infinity
31-
*
32-
* @example
33-
* var v = csch( 2.0 );
29+
* var v = stdlib_base_csch( 2.0 );
3430
* // returns ~0.2757
3531
*
3632
* @example
37-
* var v = csch( -2.0 );
33+
* var v = stdlib_base_csch( -2.0 );
3834
* // returns ~-0.2757
39-
*
40-
* @example
41-
* var v = csch( NaN );
42-
* // returns NaN
4335
*/
4436
double stdlib_base_csch( const double x ) {
4537
return 1.0 / stdlib_base_sinh( x );

lib/node_modules/@stdlib/math/base/special/fast/acosh/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Computes the hyperbolic arccosine of a number.
2828
*
2929
* @param x input value
30-
* @returns hyperbolic arccosine (in radians)
30+
* @return hyperbolic arccosine (in radians)
3131
*
3232
* @example
3333
* double v = stdlib_base_fast_acosh( 1.0 );

lib/node_modules/@stdlib/math/base/special/fast/hypot/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @param x number
2626
* @param y number
27-
* @returns hypotenuse
27+
* @return hypotenuse
2828
*
2929
* @example
3030
* double h = stdlib_base_fast_hypot( -5.0, 12.0 );

lib/node_modules/@stdlib/number/float32/base/exponent/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Returns the integer corresponding to the unbiased exponent of a single-precision floating-point number.
2727
*
2828
* @param x input value
29-
* @returns unbiased exponent
29+
* @return unbiased exponent
3030
*
3131
* @example
3232
* #include <stdint.h>

lib/node_modules/@stdlib/number/float32/base/significand/src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Returns the integer corresponding to the significand of a single-precision floating-point number.
2525
*
2626
* @param x input value
27-
* @returns integer corresponding to the significand
27+
* @return integer corresponding to the significand
2828
*
2929
* @example
3030
* #include <stdint.h>

lib/node_modules/@stdlib/number/float64/base/exponent/src/exponent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Returns the integer corresponding to the unbiased exponent of a double-precision floating-point number.
2727
*
2828
* @param x input value
29-
* @returns unbiased exponent
29+
* @return unbiased exponent
3030
*
3131
* @example
3232
* #include <stdint.h>

lib/node_modules/@stdlib/random/base/randi/benchmark/c/native/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void print_results( double elapsed ) {
6666
/**
6767
* Returns a clock time.
6868
*
69-
* @returns clock time
69+
* @return clock time
7070
*/
7171
double tic() {
7272
struct timeval now;

lib/node_modules/@stdlib/random/base/randu/benchmark/c/native/benchmark.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void print_results( double elapsed ) {
6666
/**
6767
* Returns a clock time.
6868
*
69-
* @returns clock time
69+
* @return clock time
7070
*/
7171
double tic() {
7272
struct timeval now;

0 commit comments

Comments
 (0)