You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/types/index.d.ts
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -310,7 +310,7 @@ interface Namespace {
310
310
* @param options.flatten - boolean indicating whether to automatically flatten generic array data sources (default: true)
311
311
* @param options.ndmin - minimum number of dimensions (default: 0)
312
312
* @param options.casting - casting rule used to determine what constitutes an acceptable cast (default: 'safe')
313
-
* @param options.readonly - boolean indicating whether an array should be read-only
313
+
* @param options.readonly - boolean indicating whether an array should be read-only (default: false)
314
314
* @throws must provide valid options
315
315
* @throws must provide either an array shape, data source, or both
316
316
* @throws invalid cast
@@ -680,7 +680,6 @@ interface Namespace {
680
680
*
681
681
* @example
682
682
* var array = require( './../../array' );
683
-
* var ndarray2array = require( './../../to-array' );
684
683
*
685
684
* var x = array( [ -1.0, 2.0, 3.0, 4.0 ] );
686
685
* var y = array( [ -5.0, 6.0, -7.0, -8.0, 9.0, -10.0 ] );
@@ -691,7 +690,6 @@ interface Namespace {
691
690
* @example
692
691
* var array = require( './../../array' );
693
692
* var empty = require( './../../empty' );
694
-
* var ndarray2array = require( './../../to-array' );
695
693
*
696
694
* var x = array( [ -1.0, 2.0, 3.0, 4.0 ] );
697
695
* var y = array( [ -5.0, 6.0, -7.0, -8.0, 9.0, -10.0 ] );
@@ -2413,7 +2411,7 @@ interface Namespace {
2413
2411
*
2414
2412
* ## Notes
2415
2413
*
2416
-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
2414
+
* - The function throws an error if provided broadcast-incompatible ndarrays.
2417
2415
* - If a provided ndarray has a shape matching the common shape, the function returns the provided ndarray.
2418
2416
* - If a provided ndarray has a different (broadcast compatible) shape than the common shape, the function returns a new **read-only** ndarray view of the provided ndarray's data. The view is typically **not** contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to an input array, copy the array before broadcasting.
Copy file name to clipboardExpand all lines: iter/docs/types/index.d.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -188,7 +188,7 @@ interface Namespace {
188
188
*
189
189
* ## Notes
190
190
*
191
-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
191
+
* - The function throws an error if provided broadcast-incompatible ndarrays.
192
192
* - For input ndarrays supporting read-only views, the function returns *read-only* views of interleaved subarrays. As input ndarrays may be broadcasted, a view is typically *not* contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to a subarray, copy the subarray before attempting mutation.
0 commit comments