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/base/binary-input-casting-dtype/README.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ limitations under the License.
18
18
19
19
-->
20
20
21
+
<!-- eslint-disable id-length -->
22
+
21
23
# binaryInputCastingDataType
22
24
23
25
> Resolve the input ndarray casting [data type][@stdlib/ndarray/dtypes] for a binary function.
@@ -36,6 +38,8 @@ limitations under the License.
36
38
37
39
## Usage
38
40
41
+
<!-- eslint-disable id-length -->
42
+
39
43
```javascript
40
44
var binaryInputCastingDataType =require( '@stdlib/ndarray/base/binary-input-casting-dtype' );
41
45
```
@@ -44,6 +48,8 @@ var binaryInputCastingDataType = require( '@stdlib/ndarray/base/binary-input-cas
44
48
45
49
Resolves the input ndarray casting [data type][@stdlib/ndarray/dtypes] for a binary function according to a [data type policy][@stdlib/ndarray/input-casting-policies].
46
50
51
+
<!-- eslint-disable id-length -->
52
+
47
53
```javascript
48
54
var dt =binaryInputCastingDataType( 'int32', 'int32', 'float64', 'promoted' );
49
55
// returns 'float64'
@@ -58,6 +64,8 @@ The function supports the following parameters:
58
64
59
65
If `policy` is a [data type][@stdlib/ndarray/dtypes], the function always returns the `policy` value (i.e., the fourth argument).
60
66
67
+
<!-- eslint-disable id-length -->
68
+
61
69
```javascript
62
70
var dt =binaryInputCastingDataType( 'float32', 'float32', 'float64', 'complex128' );
0 commit comments