Skip to content

Commit cf6c4b5

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: passed - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - 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 83cdc14 commit cf6c4b5

File tree

11 files changed

+16
-250
lines changed

11 files changed

+16
-250
lines changed

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ The [Heaviside function][heaviside-function] is defined as
3232
H(x) = \begin{cases} 1 & \textrm{if}\ x \gt 0 \\ 0 & \textrm{if}\ x \lt 0\end{cases}
3333
```
3434

35-
<!-- <div class="equation" align="center" data-raw-text="H(x) = \begin{cases} 1 &amp; \textrm{if}\ x \gt 0 \\ 0 &amp; \textrm{if}\ x \lt 0\end{cases}" data-equation="eq:heaviside_function">
36-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@bb29798906e119fcb2af99e94b60407a270c9b32/lib/node_modules/@stdlib/math/base/special/heaviside/docs/img/equation_heaviside_function.svg" alt="Heaviside function.">
37-
<br>
38-
</div> -->
39-
4035
<!-- </equation> -->
4136

4237
and is discontinuous at `0`. Depending on the context, the [Heaviside function][heaviside-function] may be defined as a continuous function. To define the [Heaviside function][heaviside-function] such that the function has rotational symmetry,
@@ -47,11 +42,6 @@ and is discontinuous at `0`. Depending on the context, the [Heaviside function][
4742
H(x) = \begin{cases} x & \textrm{if}\ x \gt 0 \\ \frac{1}{2} & \textrm{if}\ x = 0 \\ 0 & \textrm{if}\ x \lt 0\end{cases}
4843
```
4944

50-
<!-- <div class="equation" align="center" data-raw-text="H(x) = \begin{cases} x &amp; \textrm{if}\ x \gt 0 \\ \frac{1}{2} &amp; \textrm{if}\ x = 0 \\ 0 &amp; \textrm{if}\ x \lt 0\end{cases}" data-equation="eq:heaviside_function_half_maximum">
51-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@bb29798906e119fcb2af99e94b60407a270c9b32/lib/node_modules/@stdlib/math/base/special/heaviside/docs/img/equation_heaviside_function_half_maximum.svg" alt="Heaviside function half-maximum.">
52-
<br>
53-
</div> -->
54-
5545
<!-- </equation> -->
5646

5747
To define the [Heaviside function][heaviside-function] as a left-continuous function,
@@ -62,11 +52,6 @@ To define the [Heaviside function][heaviside-function] as a left-continuous func
6252
H(x) = \begin{cases} x & \textrm{if}\ x \gt 0 \\ 0 & \textrm{if}\ x \leq 0\end{cases}
6353
```
6454

65-
<!-- <div class="equation" align="center" data-raw-text="H(x) = \begin{cases} x &amp; \textrm{if}\ x \gt 0 \\ 0 &amp; \textrm{if}\ x \leq 0\end{cases}" data-equation="eq:heaviside_function_left_continuous">
66-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@bb29798906e119fcb2af99e94b60407a270c9b32/lib/node_modules/@stdlib/math/base/special/heaviside/docs/img/equation_heaviside_function_left_continuous.svg" alt="Heaviside function left-continuous.">
67-
<br>
68-
</div> -->
69-
7055
<!-- </equation> -->
7156

7257
To define the [Heaviside function][heaviside-function] as a right-continuous function,
@@ -77,11 +62,6 @@ To define the [Heaviside function][heaviside-function] as a right-continuous fun
7762
H(x) = \begin{cases} x & \textrm{if}\ x \geq 0 \\ 0 & \textrm{if}\ x \lt 0\end{cases}
7863
```
7964

80-
<!-- <div class="equation" align="center" data-raw-text="H(x) = \begin{cases} x &amp; \textrm{if}\ x \geq 0 \\ 0 &amp; \textrm{if}\ x \lt 0\end{cases}" data-equation="eq:heaviside_function_right_continuous">
81-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@bb29798906e119fcb2af99e94b60407a270c9b32/lib/node_modules/@stdlib/math/base/special/heaviside/docs/img/equation_heaviside_function_right_continuous.svg" alt="Heaviside function right-continuous.">
82-
<br>
83-
</div> -->
84-
8565
<!-- </equation> -->
8666

8767
</section>
@@ -155,7 +135,7 @@ var heavisidef = require( '@stdlib/math/base/special/heavisidef' );
155135
var opts = {
156136
'dtype': 'float32'
157137
};
158-
var x = uniform( 101, -10.0, 10.0, opts );
138+
var x = uniform( 100, -10.0, 10.0, opts );
159139

160140
logEachMap( 'H(%0.4f) = %0.4f', x, heavisidef );
161141
```

lib/node_modules/@stdlib/math/base/special/heavisidef/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4949

5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
52-
y = heavisidef( x[ i%x.length ], 'half-maximum' );
52+
y = heavisidef( x[ i%x.length ] );
5353
if ( isnanf( y ) ) {
5454
b.fail( 'should not return NaN' );
5555
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static double tic( void ) {
7878
*
7979
* @return random number
8080
*/
81-
static double rand_float( void ) {
81+
static float rand_float( void ) {
8282
int r = rand();
8383
return (float)r / ( (float)RAND_MAX + 1.0 );
8484
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static double tic( void ) {
7979
*
8080
* @return random number
8181
*/
82-
static double rand_float( void ) {
82+
static float rand_float( void ) {
8383
int r = rand();
8484
return (float)r / ( (float)RAND_MAX + 1.0f );
8585
}

lib/node_modules/@stdlib/math/base/special/heavisidef/docs/img/equation_heaviside_function.svg

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)