Skip to content

Commit 548ffec

Browse files
committed
chore: clean-up
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent b867ca8 commit 548ffec

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

lib/node_modules/@stdlib/math/base/special/cceilf/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Rounds each component of a single-precision complex floating-point number toward
113113
#include "stdlib/complex/float32/real.h"
114114
#include "stdlib/complex/float32/imag.h"
115115

116-
stdlib_complex64_t z = stdlib_complex64( 2.5, -1.5 );
116+
stdlib_complex64_t z = stdlib_complex64( 2.5f, -1.5f );
117117

118118
stdlib_complex64_t out = stdlib_base_cceilf( z );
119119

@@ -161,7 +161,7 @@ int main( void ) {
161161
stdlib_complex64( 3.14f, 1.5f ),
162162
stdlib_complex64( -3.14f, -1.5f ),
163163
stdlib_complex64( 0.0f, 0.0f ),
164-
stdlib_complex64( 0.0f / 0.0f, 0.0f / 0.0f )
164+
stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )
165165
};
166166
167167
stdlib_complex64_t v;
@@ -193,12 +193,6 @@ int main( void ) {
193193

194194
<section class="related">
195195

196-
* * *
197-
198-
## See Also
199-
200-
- <span class="package-name">[`@stdlib/math/base/special/cceil`][@stdlib/math/base/special/cceil]</span><span class="delimiter">: </span><span class="description">round each component of a double-precision complex floating-point number toward positive infinity.</span>
201-
202196
</section>
203197

204198
<!-- /.related -->
@@ -209,8 +203,6 @@ int main( void ) {
209203

210204
<!-- <related-links> -->
211205

212-
[@stdlib/math/base/special/cceil]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/cceil
213-
214206
<!-- </related-links> -->
215207

216208
</section>

lib/node_modules/@stdlib/math/base/special/cceilf/benchmark/c/benchmark.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static double tic( void ) {
8080
*
8181
* @return random number
8282
*/
83-
static double rand_float( void ) {
83+
static float rand_float( void ) {
8484
int r = rand();
8585
return (float)r / ( (float)RAND_MAX + 1.0f );
8686
}
@@ -93,18 +93,18 @@ static double rand_float( void ) {
9393
static double benchmark( void ) {
9494
float complex x;
9595
float complex y;
96-
float v[ 100 ];
9796
double elapsed;
97+
float v[ 100 ];
9898
double t;
9999
int i;
100100

101101
for ( i = 0; i < 100; i++ ) {
102-
v[ i ] = ( 1000.0f * rand_float() ) - 500.0f;
102+
v[ i ] = ( 1000.0f*rand_float() ) - 500.0f;
103103
}
104104

105105
t = tic();
106106
for ( i = 0; i < ITERATIONS; i++ ) {
107-
x = v[ i % 100 ] + v[ i % 100 ] *I;
107+
x = v[ i%100 ] + v[ i%100 ] *I;
108108
y = stdlib_base_ceilf( crealf( x ) ) + stdlib_base_ceilf( cimagf( x ) )*I;
109109
if ( crealf( y ) != crealf( y ) ) {
110110
printf( "unexpected result\n" );

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ static double benchmark( void ) {
103103
stdlib_complex64_t y;
104104

105105
for ( i = 0; i < 100; i++ ) {
106-
v[ i ] = ( 1000.0f * rand_float() ) - 500.0f;
106+
v[ i ] = ( 1000.0f*rand_float() ) - 500.0f;
107107
}
108108

109109
t = tic();
110110
for ( i = 0; i < ITERATIONS; i++ ) {
111-
x = stdlib_complex64( v[ i % 100 ], v[ i % 100 ] );
111+
x = stdlib_complex64( v[ i%100 ], v[ i%100 ] );
112112
y = stdlib_base_cceilf( x );
113113
stdlib_complex64_reim( y, &re, &im );
114114
if ( re != re ) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main( void ) {
2626
stdlib_complex64( 3.14f, 1.5f ),
2727
stdlib_complex64( -3.14f, -1.5f ),
2828
stdlib_complex64( 0.0f, 0.0f ),
29-
stdlib_complex64( 0.0f / 0.0f, 0.0f / 0.0f )
29+
stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )
3030
};
3131

3232
stdlib_complex64_t v;

lib/node_modules/@stdlib/math/base/special/cceilf/src/addon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#include "stdlib/math/base/special/cceilf.h"
2020
#include "stdlib/math/base/napi/unary.h"
2121

22-
// cppcheck-suppress shadowFunction
2322
STDLIB_MATH_BASE_NAPI_MODULE_C_C( stdlib_base_cceilf )

0 commit comments

Comments
 (0)