deep_causality_num 0.3.2

Number utils for for deep_causality crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * SPDX-License-Identifier: MIT
 * Copyright (c) 2023 - 2026. The DeepCausality Authors and Contributors. All Rights Reserved.
 */

pub trait FloatAsScalar: Sized {
    #[inline(always)]
    fn splat(scalar: Self) -> Self {
        scalar
    }
}

impl FloatAsScalar for f32 {}
impl FloatAsScalar for f64 {}