Skip to content

Commit 9d52e1d

Browse files
Update example.c
Signed-off-by: JavaTypedScript <[email protected]>
1 parent 52b3347 commit 9d52e1d

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/strided/base/dmskmap/examples/c

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/strided/base/dmskmap/examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ static double scale( const double x ) {
2828

2929
int main( void ) {
3030
// Create an input strided array:
31-
double X[6] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
31+
const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
3232

3333
// Create a mask strided array:
34-
uint8_t M[6] = { 0, 0, 1, 0, 0, 1 };
34+
const uint8_t M[] = { 0, 0, 1, 0, 0, 1 };
3535

3636
// Create an output strided array:
37-
double Y[6] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
37+
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
3838

3939
// Specify the number of elements:
4040
int64_t N = 6;

0 commit comments

Comments
 (0)