We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d388a13 commit 3c0f3caCopy full SHA for 3c0f3ca
common/src/hash.rs
@@ -140,6 +140,7 @@ pub fn hash_float(value: f64) -> Option<PyHash> {
140
Some(fix_sentinel(x as PyHash * value.signum() as PyHash))
141
}
142
143
+#[inline]
144
pub fn hash_complex(value: &Complex64) -> Option<PyHash> {
145
let re_hash = hash_float(value.re)?;
146
let im_hash = hash_float(value.im)?;
0 commit comments