Function num_complex::c64

source ·
pub fn c64<T: Into<f64>>(re: T, im: T) -> Complex64
Expand description

Create a new Complex<f64> with arguments that can convert Into<f64>.

use num_complex::{c64, Complex64};
assert_eq!(c64(1, 2), Complex64::new(1.0, 2.0));