From d731f9e5294111d8683a187dab44132f7294218e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Aug 2026 13:27:27 +0000 Subject: [PATCH] chore: clean up C examples and TS declarations across `blas/*` Propagates fixes from 362ed235c ("chore: clean-up") to sibling packages carrying the same defects: adds missing `f` suffixes to single-precision floating-point literals in the README C code blocks of `blas/base/ssyr` and `blas/ext/base/swxsy`, and fixes JSDoc example indentation in the TypeScript declarations of eighteen `blas/ext/base/ndarray` packages. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MBunG53uJwaC8GwkyTUAyn --- .../@stdlib/blas/base/ssyr/README.md | 14 +++++++------- .../ndarray/dcircshift/docs/types/index.d.ts | 2 +- .../ndarray/dcopy-within/docs/types/index.d.ts | 8 ++++---- .../ndarray/dlinspace/docs/types/index.d.ts | 4 ++-- .../base/ndarray/dsort/docs/types/index.d.ts | 2 +- .../base/ndarray/dsorthp/docs/types/index.d.ts | 2 +- .../ndarray/dsortins/docs/types/index.d.ts | 2 +- .../base/ndarray/dsortsh/docs/types/index.d.ts | 2 +- .../base/ndarray/dtriu/docs/types/index.d.ts | 2 +- .../ndarray/gcircshift/docs/types/index.d.ts | 2 +- .../ndarray/gcopy-within/docs/types/index.d.ts | 2 +- .../ndarray/glinspace/docs/types/index.d.ts | 4 ++-- .../base/ndarray/gsort/docs/types/index.d.ts | 2 +- .../base/ndarray/gsorthp/docs/types/index.d.ts | 2 +- .../ndarray/scircshift/docs/types/index.d.ts | 2 +- .../ndarray/scopy-within/docs/types/index.d.ts | 8 ++++---- .../ndarray/slinspace/docs/types/index.d.ts | 4 ++-- .../base/ndarray/ssort/docs/types/index.d.ts | 2 +- .../base/ndarray/ssorthp/docs/types/index.d.ts | 2 +- .../@stdlib/blas/ext/base/swxsy/README.md | 18 +++++++++--------- 20 files changed, 43 insertions(+), 43 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/ssyr/README.md b/lib/node_modules/@stdlib/blas/base/ssyr/README.md index 1ed5fad234b1..f8432b12c12c 100644 --- a/lib/node_modules/@stdlib/blas/base/ssyr/README.md +++ b/lib/node_modules/@stdlib/blas/base/ssyr/README.md @@ -200,10 +200,10 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scala ```c #include "stdlib/blas/base/shared.h" -float A[] = { 1.0, 2.0, 3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0 }; -const float x[] = { 1.0, 2.0, 3.0 }; +float A[] = { 1.0f, 2.0f, 3.0f, 2.0f, 1.0f, 2.0f, 3.0f, 2.0f, 1.0f }; +const float x[] = { 1.0f, 2.0f, 3.0f }; -c_ssyr( CblasColMajor, CblasUpper, 3, 1.0, x, 1, A, 3 ); +c_ssyr( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, A, 3 ); ``` The function accepts the following arguments: @@ -228,10 +228,10 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A`, using alternative in ```c #include "stdlib/blas/base/shared.h" -float A[] = { 1.0, 2.0, 3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0 }; -const float x[] = { 1.0, 2.0, 3.0 }; +float A[] = { 1.0f, 2.0f, 3.0f, 2.0f, 1.0f, 2.0f, 3.0f, 2.0f, 1.0f }; +const float x[] = { 1.0f, 2.0f, 3.0f }; -c_ssyr_ndarray( CblasUpper, 3, 1.0, x, 1, 0, A, 3, 1, 0 ); +c_ssyr_ndarray( CblasUpper, 3, 1.0f, x, 1, 0, A, 3, 1, 0 ); ``` The function accepts the following arguments: @@ -303,7 +303,7 @@ int main( void ) { } // Perform the symmetric rank 1 operation `A = α*x*x^T + A` using alternative indexing semantics: - c_ssyr_ndarray( CblasUpper, N, 1.0, x, 1, 0, A2, N, 1, 0 ); + c_ssyr_ndarray( CblasUpper, N, 1.0f, x, 1, 0, A2, N, 1, 0 ); // Print the result: for ( int i = 0; i < N*N; i++ ) { diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcircshift/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcircshift/docs/types/index.d.ts index 6a2af71050f1..89940c03c753 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcircshift/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcircshift/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); * * var k = scalar2ndarray( 2, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dcircshift( [ x, k ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcopy-within/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcopy-within/docs/types/index.d.ts index 53e83b1769a1..c08ee43b8d99 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcopy-within/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dcopy-within/docs/types/index.d.ts @@ -45,17 +45,17 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * * var x = new Float64Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var target = scalar2ndarray( 3, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * var start = scalar2ndarray( 1, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * var end = scalar2ndarray( 4, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var w = zeros( [ 6 ], { -* 'dtype': 'float64' +* 'dtype': 'float64' * }); * * var out = dcopyWithin( [ x, target, start, end, w ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dlinspace/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dlinspace/docs/types/index.d.ts index 6d61687270c3..db9fb3c89a6d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dlinspace/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dlinspace/docs/types/index.d.ts @@ -44,11 +44,11 @@ import { float64ndarray, boolndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); * * var start = scalar2ndarray( 0.0, { -* 'dtype': 'float64' +* 'dtype': 'float64' * }); * * var stop = scalar2ndarray( 100.0, { -* 'dtype': 'float64' +* 'dtype': 'float64' * }); * * var endpoint = scalar2ndarray( true, { diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/index.d.ts index 1b91503d35df..aa8fe203b392 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsort/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dsort( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsorthp/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsorthp/docs/types/index.d.ts index ea6e936fa6e9..79b9035613ed 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsorthp/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsorthp/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dsorthp( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortins/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortins/docs/types/index.d.ts index 8cf580b21c5c..feeab115a9cd 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortins/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortins/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dsortins( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortsh/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortsh/docs/types/index.d.ts index 2cb236fa0230..8dc7d711c674 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortsh/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dsortsh/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float64ndarray } from '@stdlib/types/ndarray'; * var x = new Float64Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dsortsh( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dtriu/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dtriu/docs/types/index.d.ts index 382693a42a58..055d21ed41fc 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/dtriu/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/dtriu/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { float64ndarray, typedndarray } from '@stdlib/types/ndarray'; * var B = new Float64Matrix( [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ] ); * * var k = scalar2ndarray( 0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = dtriu( [ A, B, k ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcircshift/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcircshift/docs/types/index.d.ts index 6cfff33fb9a6..f3de0358780e 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcircshift/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcircshift/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ], 'generic' ); * * var k = scalar2ndarray( 2, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = gcircshift( [ x, k ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcopy-within/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcopy-within/docs/types/index.d.ts index 25e4d4b0a6e6..43d1b001ea2d 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcopy-within/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gcopy-within/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var zeros = require( '@stdlib/ndarray/zeros' ); * * var opts = { -* 'dtype': 'generic' +* 'dtype': 'generic' * }; * var x = vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ], opts.dtype ); * var target = scalar2ndarray( 3, opts ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/glinspace/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/glinspace/docs/types/index.d.ts index e455ece42982..9ded42418766 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/glinspace/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/glinspace/docs/types/index.d.ts @@ -44,11 +44,11 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var x = vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ], 'generic' ); * * var start = scalar2ndarray( 0.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var stop = scalar2ndarray( 100.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var endpoint = scalar2ndarray( true, { diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsort/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsort/docs/types/index.d.ts index c9a0fac4f0c2..75887a9049fb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsort/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsort/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var x = vector( [ 1.0, -2.0, 3.0, -4.0 ], 'generic' ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = gsort( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/index.d.ts index e3f39ba3802e..125a5eb0ed9c 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/gsorthp/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { typedndarray } from '@stdlib/types/ndarray'; * var x = vector( [ 1.0, -2.0, 3.0, -4.0 ], 'generic' ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = gsorthp( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/scircshift/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/scircshift/docs/types/index.d.ts index 9dd3138db1eb..896f75e071f4 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/scircshift/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/scircshift/docs/types/index.d.ts @@ -42,7 +42,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray'; * var x = new Float32Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] ); * * var k = scalar2ndarray( 2, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = scircshift( [ x, k ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/scopy-within/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/scopy-within/docs/types/index.d.ts index d8d925d57499..9ca245706103 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/scopy-within/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/scopy-within/docs/types/index.d.ts @@ -45,17 +45,17 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray'; * * var x = new Float32Vector( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] ); * var target = scalar2ndarray( 3, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * var start = scalar2ndarray( 1, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * var end = scalar2ndarray( 4, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var w = zeros( [ 6 ], { -* 'dtype': 'float32' +* 'dtype': 'float32' * }); * * var out = scopyWithin( [ x, target, start, end, w ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/slinspace/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/slinspace/docs/types/index.d.ts index 799b4d516a3f..26c846de16fb 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/slinspace/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/slinspace/docs/types/index.d.ts @@ -44,11 +44,11 @@ import { float32ndarray, boolndarray } from '@stdlib/types/ndarray'; * var x = new Float32Vector( [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ] ); * * var start = scalar2ndarray( 0.0, { -* 'dtype': 'float32' +* 'dtype': 'float32' * }); * * var stop = scalar2ndarray( 100.0, { -* 'dtype': 'float32' +* 'dtype': 'float32' * }); * * var endpoint = scalar2ndarray( true, { diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/index.d.ts index 95b32500e084..2b801b0ca90b 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssort/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray'; * var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = ssort( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssorthp/docs/types/index.d.ts b/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssorthp/docs/types/index.d.ts index caeb9af78177..307c501abc4a 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssorthp/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/blas/ext/base/ndarray/ssorthp/docs/types/index.d.ts @@ -44,7 +44,7 @@ import { typedndarray, float32ndarray } from '@stdlib/types/ndarray'; * var x = new Float32Vector( [ 1.0, -2.0, 3.0, -4.0 ] ); * * var ord = scalar2ndarray( 1.0, { -* 'dtype': 'generic' +* 'dtype': 'generic' * }); * * var out = ssorthp( [ x, ord ] ); diff --git a/lib/node_modules/@stdlib/blas/ext/base/swxsy/README.md b/lib/node_modules/@stdlib/blas/ext/base/swxsy/README.md index ecd655761984..6371eea84303 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/swxsy/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/swxsy/README.md @@ -212,9 +212,9 @@ logEach( '%d - %d = %d', x, y, w ); Subtracts elements of a single-precision floating-point strided array `Y` from the corresponding elements of a single-precision floating-point strided array `X` and assigns the results to elements in a single-precision floating-point strided array `W`. ```c -const float x[] = { 1.0, 2.0, 3.0, 4.0 }; -const float y[] = { 2.0, 3.0, 4.0, 5.0 }; -float w[] = { 0.0, 0.0, 0.0, 0.0 }; +const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f }; +const float y[] = { 2.0f, 3.0f, 4.0f, 5.0f }; +float w[] = { 0.0f, 0.0f, 0.0f, 0.0f }; stdlib_strided_swxsy( 4, x, 1, y, 1, w, 1 ); ``` @@ -242,9 +242,9 @@ void stdlib_strided_swxsy( const CBLAS_INT N, const float *X, const CBLAS_INT st Subtracts elements of a single-precision floating-point strided array `Y` from the corresponding elements of a single-precision floating-point strided array `X` and assigns the results to elements in a single-precision floating-point strided array `W` using alternative indexing semantics. ```c -const float x[] = { 1.0, 2.0, 3.0, 4.0 }; -const float y[] = { 2.0, 3.0, 4.0, 5.0 }; -float w[] = { 0.0, 0.0, 0.0, 0.0 }; +const float x[] = { 1.0f, 2.0f, 3.0f, 4.0f }; +const float y[] = { 2.0f, 3.0f, 4.0f, 5.0f }; +float w[] = { 0.0f, 0.0f, 0.0f, 0.0f }; stdlib_strided_swxsy_ndarray( 4, x, 1, 0, y, 1, 0, w, 1, 0 ); ``` @@ -290,9 +290,9 @@ void stdlib_strided_swxsy_ndarray( const CBLAS_INT N, const float *X, const CBLA int main( void ) { // Create strided arrays: - const float x[] = { 1.0, -2.0, 3.0, -4.0, 5.0, -6.0, 7.0, -8.0 }; - const float y[] = { 2.0, 3.0, -1.0, 4.0, -2.0, 5.0, -3.0, 6.0 }; - float w[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; + const float x[] = { 1.0f, -2.0f, 3.0f, -4.0f, 5.0f, -6.0f, 7.0f, -8.0f }; + const float y[] = { 2.0f, 3.0f, -1.0f, 4.0f, -2.0f, 5.0f, -3.0f, 6.0f }; + float w[] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }; // Specify the number of indexed elements: const int N = 8;