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: lib/node_modules/@stdlib/ndarray/fill/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ The function accepts the following arguments:
73
73
74
74
- An input [`ndarray`][@stdlib/ndarray/ctor]**must** be writable. If provided a **read-only**[`ndarray`][@stdlib/ndarray/ctor], the function throws an error.
75
75
- 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.
76
-
- 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]).
76
+
- 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]).
77
77
- The function **mutates** the input [`ndarray`][@stdlib/ndarray/ctor].
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/ndarray/fill/docs/types/index.d.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ import { ComplexLike } from '@stdlib/types/complex';
29
29
* ## Notes
30
30
*
31
31
* - If `value` is a number, the function fills an input ndarray with a complex number whose real component equals the provided scalar value and whose imaginary component is zero.
32
-
* - A `value` must be able to safely cast to the input ndarray data type. 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).
32
+
* - A `value` must be able to safely cast to the input ndarray data type. 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).
33
33
*
34
34
* @param x - input ndarray
35
35
* @param value - scalar value
@@ -55,7 +55,7 @@ declare function fill<T extends complexndarray>( x: T, value: number | ComplexLi
55
55
*
56
56
* ## Notes
57
57
*
58
-
* - A `value` must be able to safely cast to the input ndarray data type. 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).
58
+
* - A `value` must be able to safely cast to the input ndarray data type. 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).
59
59
*
60
60
* @param x - input ndarray
61
61
* @param value - scalar value
@@ -81,7 +81,7 @@ declare function fill<T = unknown, U extends genericndarray<T> = genericndarray<
81
81
*
82
82
* ## Notes
83
83
*
84
-
* - A `value` must be able to safely cast to the input ndarray data type. 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).
84
+
* - A `value` must be able to safely cast to the input ndarray data type. 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).
0 commit comments