Macro integer_array::declare_array_complex [−][src]
macro_rules! declare_array_complex {
($name : ident, $N : expr) => { ... };
}Expand description
Create a complex i32 array type of size N. Complete with traits.
Traits implemented with the macro:
Traits that are shared between real and complex arrays are documented under real/array.
Generate an array of a specific value.
use integer_array as ia;
use ia::trait_definitions::*;
ia::declare_array_complex!( CArr4, 4 );
let x = CArr4::new( 1, 2 );
assert_eq!{ x[1], num::complex::Complex{re:1, im:2} };