File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -426,26 +426,27 @@ where
426426 /// use ndarray::{array};
427427 ///
428428 /// let a = array![
429- /// [1. , 2. ],
430- /// [3. , 4. ],
429+ /// [1, 2],
430+ /// [3, 4],
431431 /// ];
432- /// assert_eq!(a.pow(2. ), array![
433- /// [1. , 4. ],
434- /// [9. , 16. ],
432+ /// assert_eq!(a.pow(2), array![
433+ /// [1, 4],
434+ /// [9, 16],
435435 /// ]);
436436 /// ```
437437 /// ```
438438 /// use ndarray::{array};
439439 ///
440440 /// let a = array![
441- /// [1. , 4. ],
442- /// [9. , 16. ],
441+ /// [1, 4],
442+ /// [9, 16],
443443 /// ];
444444 /// assert_eq!(a.pow(0.5), array![
445- /// [1. , 2. ],
446- /// [3. , 4. ],
445+ /// [1, 2],
446+ /// [3, 4],
447447 /// ]);
448448 /// ```
449+ #[ cfg( feature = "std" ) ]
449450 pub fn pow < B > ( & self , pow : B ) -> Array < <A as Pow < B > >:: Output , D >
450451 where
451452 A : Pow < B > + Clone ,
You can’t perform that action at this time.
0 commit comments