Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Athan <[email protected]>
  • Loading branch information
kgryte authored Sep 21, 2024
1 parent 2b90f71 commit c6acb60
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/node_modules/@stdlib/blas/ext/base/cfill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ var Complex64Array = require( '@stdlib/array/complex64' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var cfill = require( '@stdlib/blas/ext/base/cfill' );

var xbuf = discreteUniform( 10, -100, 100, {
var xbuf = discreteUniform( 20, -100, 100, {
'dtype': 'float32'
});
var x = new Complex64Array( xbuf );
var x = new Complex64Array( xbuf.buffer );
var alpha = new Complex64( 10.0, 10.0 );

cfill( x.length, alpha, x, 1 );
Expand Down Expand Up @@ -293,8 +293,7 @@ Fills a single-precision floating-point strided array `X` with a specified scala
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );

c_cfill( 2, alpha, stdlib_complex64_t *x, 1 );

c_cfill( 2, alpha, (stdlib_complex64_t *)x, 1 );
```
The function accepts the following arguments:
Expand All @@ -316,7 +315,7 @@ Fills a single-precision complex floating-point strided array `X` with a specifi
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );

c_cfill_ndarray( 4, alpha, x, 1, 0 );
c_cfill_ndarray( 4, alpha, (stdlib_complex64_t *x), 1, 0 );
```
The function accepts the following arguments:
Expand Down

0 comments on commit c6acb60

Please sign in to comment.