Skip to content

Commit edcc07b

Browse files
committed
adjustments for half
1 parent bc68d2f commit edcc07b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ default = ["std"]
6060
# See README for more instructions
6161
blas = ["dep:cblas-sys", "dep:libc"]
6262

63-
serde = ["dep:serde"]
63+
serde = ["dep:serde", "half?/serde"]
6464

65-
std = ["num-traits/std", "matrixmultiply/std"]
65+
std = ["num-traits/std", "matrixmultiply/std", "half?/std"]
6666
rayon = ["dep:rayon", "std"]
6767

6868
matrixmultiply-threading = ["matrixmultiply/threading"]
@@ -119,6 +119,6 @@ tag-name = "{{version}}"
119119

120120
# Config specific to docs.rs
121121
[package.metadata.docs.rs]
122-
features = ["approx", "serde", "rayon"]
122+
features = ["approx", "serde", "rayon", "half"]
123123
# Define the configuration attribute `docsrs`
124124
rustdoc-args = ["--cfg", "docsrs"]

src/linalg_traits.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ pub trait NdFloat:
6161
{
6262
}
6363

64-
#[cfg(all(feature = "std", feature = "half"))]
65-
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
66-
impl NdFloat for half::f16 {}
67-
68-
#[cfg(all(feature = "std", feature = "half"))]
69-
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
70-
impl NdFloat for half::bf16 {}
71-
7264
#[cfg(feature = "std")]
7365
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
7466
impl NdFloat for f32 {}

0 commit comments

Comments
 (0)