rapl 0.3.0

A crate that makes numerical scripting with Rust simple and enjoyable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;
use num_traits::{identities::zero, Num};

pub trait Imag<T: Copy + PartialEq> {
    fn i(&self) -> C<T>;
}

impl<T: Num + Copy> Imag<T> for T {
    fn i(&self) -> C<T> {
        C(zero(), *self)
    }
}