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: base/docs/types/index.d.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1154,7 +1154,7 @@ interface Namespace {
1154
1154
/**
1155
1155
* Returns the data type enumeration constant for a provided ndarray data buffer.
1156
1156
*
1157
-
* @param arr - strided array
1157
+
* @param arr - ndarray data buffer
1158
1158
* @returns data type enumeration constant or null
1159
1159
*
1160
1160
* @example
@@ -1645,7 +1645,7 @@ interface Namespace {
1645
1645
dtypeResolveStr: typeofdtypeResolveStr;
1646
1646
1647
1647
/**
1648
-
* Returns the enumeration constant associated with a ndarray data type string.
1648
+
* Returns the enumeration constant associated with an ndarray data type string.
1649
1649
*
1650
1650
* ## Notes
1651
1651
*
@@ -2373,7 +2373,7 @@ interface Namespace {
2373
2373
* var dt = String( getDType( y ) );
2374
2374
* // returns 'complex128'
2375
2375
*
2376
-
* var v = y.get();
2376
+
* var z = y.get();
2377
2377
* // returns <Complex128>[ 1.0, 2.0 ]
2378
2378
*/
2379
2379
scalar2ndarrayLike: typeofscalar2ndarrayLike;
@@ -2818,7 +2818,7 @@ interface Namespace {
2818
2818
maybeBroadcastArray: typeofmaybeBroadcastArray;
2819
2819
2820
2820
/**
2821
-
* Broadcasts an ndarray to a specified shape if and only if the specified shape differs from the provided ndarray's shape.
2821
+
* Broadcasts an ndarray to a specified shape while keeping a list of specified dimensions unchanged if and only if the specified shape differs from the provided ndarray's shape.
2822
2822
*
2823
2823
* ## Notes
2824
2824
*
@@ -2854,7 +2854,7 @@ interface Namespace {
2854
2854
*
2855
2855
* ## Notes
2856
2856
*
2857
-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
2857
+
* - The function throws an error if provided broadcast-incompatible ndarrays.
2858
2858
* - If a provided ndarray has a shape matching the common shape, the function returns the provided ndarray.
2859
2859
* - If a provided ndarray has a different (broadcast compatible) shape than the common shape, the function returns a new (base) 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 a returned array, copy the array before performing operations which may mutate elements.
2860
2860
* - A returned array view is a "base" ndarray, and, thus, a returned array view does not perform bounds checking or afford any of the guarantees of the non-base ndarray constructor. The primary intent of this function is to broadcast ndarray-like objects within internal implementations and to do so with minimal overhead.
@@ -4246,7 +4246,7 @@ interface Namespace {
4246
4246
* @param x - input array
4247
4247
* @param k - number of times to rotate by 90 degrees
4248
4248
* @param writable - boolean indicating whether the returned ndarray should be writable
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