Skip to content

Commit 40db61d

Browse files
authored
chore: follow-up fixes
PR-URL: #11721 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent afff37d commit 40db61d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/migration-guides/numpy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ limitations under the License.
3535
| Broadcast a scalar to a specified shape | `np.broadcast_to(np.array(scalar), shape)` | [`broadcastScalar(scalar, shape)`][@stdlib/ndarray/broadcast-scalar] |
3636
| Copy an array | `np.copy(x)` | [`copy(x)`][@stdlib/ndarray/copy] |
3737
| Count the number of falsy values in an array | `x.size-np.count_nonzero(x)` | [`countFalsy(x)`][@stdlib/ndarray/count-falsy] |
38-
| Count the number of truthy values in an array | `np.count_nonzeros(x)` | [`countTruthy(x)`][@stdlib/ndarray/count-truthy] |
38+
| Count the number of truthy values in an array | `np.count_nonzero(x)` | [`countTruthy(x)`][@stdlib/ndarray/count-truthy] |
3939
| Test whether an array includes a specific value | `np.any(np.equal(x,v))` | [`includes(x,v)`][@stdlib/ndarray/includes] |
4040
| Reverse the elements along a dimension | `np.flip(x, axis=dim)` | [`reverseDimension(x, dim)`][@stdlib/ndarray/reverse-dimension] |
41-
| Prepend a a specified number of singleton dimensions | `np.reshape(x, (1,)*n + x.shape)` | [`prependSingletonDimensions(x, n)`][@stdlib/ndarray/prepend-singleton-dimensions] |
41+
| Prepend a specified number of singleton dimensions | `np.reshape(x, (1,)*n + x.shape)` | [`prependSingletonDimensions(x, n)`][@stdlib/ndarray/prepend-singleton-dimensions] |
4242
| Test whether an array contains at least `n` truthy values | `np.count_nonzero(x) >= n` | [`some(x, n)`][@stdlib/ndarray/some] |
4343

4444
<!-- lint enable table-pipe-alignment -->

lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ static double benchmark1( int iterations, int len ) {
120120
if ( y[ len-1 ] != y[ len-1 ] ) {
121121
printf( "should not return NaN\n" );
122122
}
123+
free( x );
124+
free( y );
123125
return elapsed;
124126
}
125127

lib/node_modules/@stdlib/ndarray/base/reinterpret-boolean/docs/types/test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable space-in-parens */
20-
2119
import zeros = require( '@stdlib/ndarray/base/zeros' );
2220
import reinterpretBoolean = require( './index' );
2321

0 commit comments

Comments
 (0)