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
-**strict**: boolean indicating whether to enforce strict bounds checking.
130
+
131
+
By default, the function throws an error when provided a slice which exceeds array bounds. To ignore slice indices exceeding array bounds, set the `strict` option to `false`.
132
+
133
+
```javascript
134
+
var zeros =require( '@stdlib/ndarray/zeros' );
135
+
var MultiSlice =require( '@stdlib/slice/multi' );
136
+
var Slice =require( '@stdlib/slice/ctor' );
137
+
var ndarray2array =require( '@stdlib/ndarray/to-array' );
@@ -81,10 +165,9 @@ The function accepts the following arguments:
81
165
## Notes
82
166
83
167
- An input [`ndarray`][@stdlib/ndarray/ctor]**must** be writable. If provided a **read-only**[`ndarray`][@stdlib/ndarray/ctor], the function throws an error.
84
-
- If `value` is a number and `x` has a complex [data type][@stdlib/ndarray/dtypes], the function fills an input [`ndarray`][@stdlib/ndarray/ctor] with a complex number whose real component equals the provided scalar `value` and whose imaginary component is zero.
85
-
-A`value` must be able to safely cast to the input [`ndarray`][@stdlib/ndarray/ctor][data type][@stdlib/ndarray/dtypes]. Scalar values having floating-point data types (both real and complex) are allowed to downcast to a lower precision data type of the same kind (e.g., a scalar double-precision floating-point number can be used to fill a `'float32'` input [`ndarray`][@stdlib/ndarray/ctor]).
168
+
- If an input `value` is a number and `x` has a complex [data type][@stdlib/ndarray/dtypes], the function fills an input [`ndarray`][@stdlib/ndarray/ctor] with a complex number whose real component equals the provided scalar `value` and whose imaginary component is zero.
169
+
-An input`value` must be able to safely cast to the input [`ndarray`][@stdlib/ndarray/ctor][data type][@stdlib/ndarray/dtypes]. Scalar values having floating-point data types (both real and complex) are allowed to downcast to a lower precision data type of the same kind (e.g., a scalar double-precision floating-point number can be used to fill a `'float32'` input [`ndarray`][@stdlib/ndarray/ctor]).
86
170
- The function **mutates** the input [`ndarray`][@stdlib/ndarray/ctor].
87
-
- Multi-slice instances have no explicit functionality; however, they are used by [`ndarray`][@stdlib/ndarray/ctor] and other packages for creating views into multi-dimensional data structures.
88
171
89
172
</section>
90
173
@@ -109,14 +192,14 @@ var x = zeros( [ 2, 3, 4 ], {
0 commit comments