Skip to content

Commit

Permalink
feat: add boolean dtype support to ndarray/mostly-safe-casts
Browse files Browse the repository at this point in the history
PR-URL: #2554
Ref: #2547
Co-authored-by: Athan Reines <kgryte@gmail.com>
Reviewed-by: Athan Reines <kgryte@gmail.com> 
Signed-off-by: Athan Reines <kgryte@gmail.com>
  • Loading branch information
Jaysukh-409 and kgryte authored Jul 10, 2024
1 parent 4e860d8 commit 131d649
Showing 1 changed file with 42 additions and 13 deletions.
55 changes: 42 additions & 13 deletions lib/node_modules/@stdlib/ndarray/mostly-safe-casts/lib/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"float32": {
"float64": 1,
Expand All @@ -27,7 +28,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"int32": {
"float64": 1,
Expand All @@ -42,7 +44,8 @@
"complex128": 1,
"complex64": 0,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"int16": {
"float64": 1,
Expand All @@ -57,7 +60,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"int8": {
"float64": 1,
Expand All @@ -72,7 +76,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"uint32": {
"float64": 1,
Expand All @@ -87,7 +92,8 @@
"complex128": 1,
"complex64": 0,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"uint16": {
"float64": 1,
Expand All @@ -102,7 +108,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"uint8": {
"float64": 1,
Expand All @@ -117,7 +124,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"uint8c": {
"float64": 1,
Expand All @@ -132,7 +140,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"complex128": {
"float64": 0,
Expand All @@ -147,7 +156,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"complex64": {
"float64": 0,
Expand All @@ -162,7 +172,8 @@
"complex128": 1,
"complex64": 1,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"generic": {
"float64": 0,
Expand All @@ -177,7 +188,8 @@
"complex128": 0,
"complex64": 0,
"binary": 0,
"generic": 1
"generic": 1,
"bool": 0
},
"binary": {
"float64": 0,
Expand All @@ -192,6 +204,23 @@
"complex128": 0,
"complex64": 0,
"binary": 1,
"generic": 0
"generic": 0,
"bool": 0
},
"bool": {
"float64": 0,
"float32": 0,
"int32": 0,
"int16": 0,
"int8": 0,
"uint32": 0,
"uint16": 0,
"uint8": 0,
"uint8c": 0,
"complex128": 0,
"complex64": 0,
"binary": 0,
"generic": 1,
"bool": 1
}
}

1 comment on commit 131d649

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
ndarray/mostly-safe-casts $\color{green}175/175$
$\color{green}+100.00\%$
$\color{green}16/16$
$\color{green}+100.00\%$
$\color{green}3/3$
$\color{green}+100.00\%$
$\color{green}175/175$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.