Skip to content

Commit 859e486

Browse files
authored
docs: update examples in stats/base/scumaxabs
PR-URL: #4695 Reviewed-by: Philipp Burckhardt <[email protected]>
1 parent 085aeea commit 859e486

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/scumaxabs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Computes the cumulative maximum absolute value of single-precision floating-poin
220220
int main( void ) {
221221
// Create strided arrays:
222222
const float x[] = { 1.0f, 2.0f, -3.0f, 4.0f, -5.0f, 6.0f, 7.0f, 8.0f };
223-
const float y[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
223+
float y[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
224224

225225
// Specify the number of elements:
226226
const int N = 4;

lib/node_modules/@stdlib/stats/base/scumaxabs/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
int main( void ) {
2323
// Create strided arrays:
2424
const float x[] = { 1.0f, 2.0f, -3.0f, 4.0f, -5.0f, 6.0f, 7.0f, 8.0f };
25-
const float y[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
25+
float y[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };
2626

2727
// Specify the number of elements:
2828
const int N = 4;

0 commit comments

Comments
 (0)