2023-11-22 13:40:16 +00:00
|
|
|
// #![
|
|
|
|
#[cfg(feature = "f32")]
|
|
|
|
pub type Flt = f32;
|
|
|
|
#[cfg(feature = "f32")]
|
|
|
|
pub const pi: Flt = std::f32::consts::PI;
|
|
|
|
|
|
|
|
#[cfg(feature = "f64")]
|
|
|
|
pub type Flt = f64;
|
|
|
|
#[cfg(feature = "f64")]
|
|
|
|
pub const pi: Flt = std::f64::consts::PI;
|
|
|
|
|
|
|
|
use num::complex::*;
|
|
|
|
pub type Cflt = Complex<Flt>;
|
|
|
|
|
2023-11-25 13:58:20 +00:00
|
|
|
use numpy::ndarray::{Array1, Array2};
|
2023-11-22 13:40:16 +00:00
|
|
|
pub type Vd = Vec<Flt>;
|
|
|
|
pub type Vc = Vec<Cflt>;
|
|
|
|
|
2023-11-29 06:20:13 +00:00
|
|
|
pub type Dcol = Array1<Flt>;
|
|
|
|
pub type Ccol = Array1<Cflt>;
|
|
|
|
|
2023-11-22 13:40:16 +00:00
|
|
|
pub type Dmat = Array2<Flt>;
|
|
|
|
pub type Cmat = Array2<Cflt>;
|
|
|
|
|