@@ -1569,31 +1569,31 @@ mod test {
1569
1569
1570
1570
use num_traits:: { Num , One , Zero } ;
1571
1571
1572
- pub const _0_0i: Complex64 = Complex { re : 0.0 , im : 0.0 } ;
1573
- pub const _1_0i: Complex64 = Complex { re : 1.0 , im : 0.0 } ;
1574
- pub const _1_1i: Complex64 = Complex { re : 1.0 , im : 1.0 } ;
1575
- pub const _0_1i: Complex64 = Complex { re : 0.0 , im : 1.0 } ;
1576
- pub const _neg1_1i: Complex64 = Complex { re : -1.0 , im : 1.0 } ;
1577
- pub const _05_05i: Complex64 = Complex { re : 0.5 , im : 0.5 } ;
1572
+ pub const _0_0i: Complex64 = Complex :: new ( 0.0 , 0.0 ) ;
1573
+ pub const _1_0i: Complex64 = Complex :: new ( 1.0 , 0.0 ) ;
1574
+ pub const _1_1i: Complex64 = Complex :: new ( 1.0 , 1.0 ) ;
1575
+ pub const _0_1i: Complex64 = Complex :: new ( 0.0 , 1.0 ) ;
1576
+ pub const _neg1_1i: Complex64 = Complex :: new ( -1.0 , 1.0 ) ;
1577
+ pub const _05_05i: Complex64 = Complex :: new ( 0.5 , 0.5 ) ;
1578
1578
pub const all_consts: [ Complex64 ; 5 ] = [ _0_0i, _1_0i, _1_1i, _neg1_1i, _05_05i] ;
1579
- pub const _4_2i: Complex64 = Complex { re : 4.0 , im : 2.0 } ;
1580
- pub const _1_infi: Complex64 = Complex { re : 1.0 , im : f64:: INFINITY } ;
1581
- pub const _neg1_infi: Complex64 = Complex { re : -1.0 , im : f64:: INFINITY } ;
1582
- pub const _1_nani: Complex64 = Complex { re : 1.0 , im : f64:: NAN } ;
1583
- pub const _neg1_nani: Complex64 = Complex { re : -1.0 , im : f64:: NAN } ;
1584
- pub const _inf_0i: Complex64 = Complex { re : f64:: INFINITY , im : 0.0 } ;
1585
- pub const _neginf_1i: Complex64 = Complex { re : f64:: NEG_INFINITY , im : 1.0 } ;
1586
- pub const _neginf_neg1i: Complex64 = Complex { re : f64:: NEG_INFINITY , im : -1.0 } ;
1587
- pub const _inf_1i: Complex64 = Complex { re : f64:: INFINITY , im : 1.0 } ;
1588
- pub const _inf_neg1i: Complex64 = Complex { re : f64:: INFINITY , im : -1.0 } ;
1589
- pub const _neginf_infi: Complex64 = Complex { re : f64:: NEG_INFINITY , im : f64:: INFINITY } ;
1590
- pub const _inf_infi: Complex64 = Complex { re : f64:: INFINITY , im : f64:: INFINITY } ;
1591
- pub const _neginf_nani: Complex64 = Complex { re : f64:: NEG_INFINITY , im : f64:: NAN } ;
1592
- pub const _inf_nani: Complex64 = Complex { re : f64:: INFINITY , im : f64:: NAN } ;
1593
- pub const _nan_0i: Complex64 = Complex { re : f64:: NAN , im : 0.0 } ;
1594
- pub const _nan_1i: Complex64 = Complex { re : f64:: NAN , im : 1.0 } ;
1595
- pub const _nan_neg1i: Complex64 = Complex { re : f64:: NAN , im : -1.0 } ;
1596
- pub const _nan_nani: Complex64 = Complex { re : f64:: NAN , im : f64:: NAN } ;
1579
+ pub const _4_2i: Complex64 = Complex :: new ( 4.0 , 2.0 ) ;
1580
+ pub const _1_infi: Complex64 = Complex :: new ( 1.0 , f64:: INFINITY ) ;
1581
+ pub const _neg1_infi: Complex64 = Complex :: new ( -1.0 , f64:: INFINITY ) ;
1582
+ pub const _1_nani: Complex64 = Complex :: new ( 1.0 , f64:: NAN ) ;
1583
+ pub const _neg1_nani: Complex64 = Complex :: new ( -1.0 , f64:: NAN ) ;
1584
+ pub const _inf_0i: Complex64 = Complex :: new ( f64:: INFINITY , 0.0 ) ;
1585
+ pub const _neginf_1i: Complex64 = Complex :: new ( f64:: NEG_INFINITY , 1.0 ) ;
1586
+ pub const _neginf_neg1i: Complex64 = Complex :: new ( f64:: NEG_INFINITY , -1.0 ) ;
1587
+ pub const _inf_1i: Complex64 = Complex :: new ( f64:: INFINITY , 1.0 ) ;
1588
+ pub const _inf_neg1i: Complex64 = Complex :: new ( f64:: INFINITY , -1.0 ) ;
1589
+ pub const _neginf_infi: Complex64 = Complex :: new ( f64:: NEG_INFINITY , f64:: INFINITY ) ;
1590
+ pub const _inf_infi: Complex64 = Complex :: new ( f64:: INFINITY , f64:: INFINITY ) ;
1591
+ pub const _neginf_nani: Complex64 = Complex :: new ( f64:: NEG_INFINITY , f64:: NAN ) ;
1592
+ pub const _inf_nani: Complex64 = Complex :: new ( f64:: INFINITY , f64:: NAN ) ;
1593
+ pub const _nan_0i: Complex64 = Complex :: new ( f64:: NAN , 0.0 ) ;
1594
+ pub const _nan_1i: Complex64 = Complex :: new ( f64:: NAN , 1.0 ) ;
1595
+ pub const _nan_neg1i: Complex64 = Complex :: new ( f64:: NAN , -1.0 ) ;
1596
+ pub const _nan_nani: Complex64 = Complex :: new ( f64:: NAN , f64:: NAN ) ;
1597
1597
1598
1598
#[ test]
1599
1599
fn test_consts ( ) {
0 commit comments