1- use ndarray:: { arr2, arr3, aview1, aview2, concatenate, stack, Array2 , Axis , ErrorKind , Ix1 } ;
1+ use ndarray:: { arr2, arr3, aview1, aview2, concatenate, stack, Array2 , Axis , ErrorKind , Ix1 , ViewRepr } ;
22
33#[ test]
44fn concatenating ( )
@@ -29,7 +29,7 @@ fn concatenating()
2929 let res = ndarray:: concatenate ( Axis ( 2 ) , & [ a. view ( ) , c. view ( ) ] ) ;
3030 assert_eq ! ( res. unwrap_err( ) . kind( ) , ErrorKind :: OutOfBounds ) ;
3131
32- let res: Result < Array2 < f64 > , _ > = ndarray:: concatenate ( Axis ( 0 ) , & [ ] ) ;
32+ let res: Result < Array2 < f64 > , _ > = ndarray:: concatenate :: < ViewRepr < & f64 > , _ , _ > ( Axis ( 0 ) , & [ ] ) ;
3333 assert_eq ! ( res. unwrap_err( ) . kind( ) , ErrorKind :: Unsupported ) ;
3434}
3535
@@ -50,6 +50,6 @@ fn stacking()
5050 let res = ndarray:: stack ( Axis ( 3 ) , & [ a. view ( ) , a. view ( ) ] ) ;
5151 assert_eq ! ( res. unwrap_err( ) . kind( ) , ErrorKind :: OutOfBounds ) ;
5252
53- let res: Result < Array2 < f64 > , _ > = ndarray:: stack :: < _ , Ix1 > ( Axis ( 0 ) , & [ ] ) ;
53+ let res: Result < Array2 < f64 > , _ > = ndarray:: stack :: < ViewRepr < & f64 > , Ix1 , _ > ( Axis ( 0 ) , & [ ] ) ;
5454 assert_eq ! ( res. unwrap_err( ) . kind( ) , ErrorKind :: Unsupported ) ;
5555}
0 commit comments