@@ -16,7 +16,7 @@ use crate::slice_box::SliceBox;
1616use crate :: types:: { NpyDataType , TypeNum } ;
1717
1818/// A safe, static-typed interface for
19- /// [NumPy ndarray](https://docs.scipy. org/doc/numpy /reference/arrays.ndarray.html).
19+ /// [NumPy ndarray](https://numpy. org/doc/stable /reference/arrays.ndarray.html).
2020///
2121/// # Memory location
2222///
@@ -226,7 +226,7 @@ impl<T, D> PyArray<T, D> {
226226
227227 /// Returns the number of dimensions in the array.
228228 ///
229- /// Same as [numpy.ndarray.ndim](https://docs.scipy. org/doc/numpy /reference/generated/numpy.ndarray.ndim.html)
229+ /// Same as [numpy.ndarray.ndim](https://numpy. org/doc/stable /reference/generated/numpy.ndarray.ndim.html)
230230 ///
231231 /// # Example
232232 /// ```
@@ -237,15 +237,15 @@ impl<T, D> PyArray<T, D> {
237237 /// assert_eq!(arr.ndim(), 3);
238238 /// # }
239239 /// ```
240- // C API: https://docs.scipy. org/doc/numpy /reference/c-api. array.html#c.PyArray_NDIM
240+ // C API: https://numpy. org/doc/stable /reference/c-api/ array.html#c.PyArray_NDIM
241241 pub fn ndim ( & self ) -> usize {
242242 let ptr = self . as_array_ptr ( ) ;
243243 unsafe { ( * ptr) . nd as usize }
244244 }
245245
246246 /// Returns a slice which contains how many bytes you need to jump to the next row.
247247 ///
248- /// Same as [numpy.ndarray.strides](https://docs.scipy. org/doc/numpy /reference/generated/numpy.ndarray.strides.html)
248+ /// Same as [numpy.ndarray.strides](https://numpy. org/doc/stable /reference/generated/numpy.ndarray.strides.html)
249249 /// # Example
250250 /// ```
251251 /// # fn main() {
@@ -255,7 +255,7 @@ impl<T, D> PyArray<T, D> {
255255 /// assert_eq!(arr.strides(), &[240, 48, 8]);
256256 /// # }
257257 /// ```
258- // C API: https://docs.scipy. org/doc/numpy /reference/c-api. array.html#c.PyArray_STRIDES
258+ // C API: https://numpy. org/doc/stable /reference/c-api/ array.html#c.PyArray_STRIDES
259259 pub fn strides ( & self ) -> & [ isize ] {
260260 let n = self . ndim ( ) ;
261261 let ptr = self . as_array_ptr ( ) ;
@@ -267,7 +267,7 @@ impl<T, D> PyArray<T, D> {
267267
268268 /// Returns a slice which contains dimmensions of the array.
269269 ///
270- /// Same as [numpy.ndarray.shape](https://docs.scipy. org/doc/numpy /reference/generated/numpy.ndarray.shape.html)
270+ /// Same as [numpy.ndarray.shape](https://numpy. org/doc/stable /reference/generated/numpy.ndarray.shape.html)
271271 /// # Example
272272 /// ```
273273 /// # fn main() {
@@ -277,7 +277,7 @@ impl<T, D> PyArray<T, D> {
277277 /// assert_eq!(arr.shape(), &[4, 5, 6]);
278278 /// # }
279279 /// ```
280- // C API: https://docs.scipy. org/doc/numpy /reference/c-api. array.html#c.PyArray_DIMS
280+ // C API: https://numpy. org/doc/stable /reference/c-api/ array.html#c.PyArray_DIMS
281281 pub fn shape ( & self ) -> & [ usize ] {
282282 let n = self . ndim ( ) ;
283283 let ptr = self . as_array_ptr ( ) ;
@@ -415,7 +415,7 @@ impl<T: TypeNum, D: Dimension> PyArray<T, D> {
415415 /// If `is_fortran` is true, then
416416 /// a fortran order array is created, otherwise a C-order array is created.
417417 ///
418- /// See also [PyArray_Zeros](https://docs.scipy. org/doc/numpy /reference/c-api. array.html#c.PyArray_Zeros)
418+ /// See also [PyArray_Zeros](https://numpy. org/doc/stable /reference/c-api/ array.html#c.PyArray_Zeros)
419419 ///
420420 /// # Example
421421 /// ```
@@ -1037,9 +1037,9 @@ impl<T: TypeNum, D> PyArray<T, D> {
10371037
10381038impl < T : TypeNum + AsPrimitive < f64 > > PyArray < T , Ix1 > {
10391039 /// Return evenly spaced values within a given interval.
1040- /// Same as [numpy.arange](https://docs.scipy. org/doc/numpy /reference/generated/numpy.arange.html).
1040+ /// Same as [numpy.arange](https://numpy. org/doc/stable /reference/generated/numpy.arange.html).
10411041 ///
1042- /// See also [PyArray_Arange](https://docs.scipy. org/doc/numpy /reference/c-api. array.html#c.PyArray_Arange).
1042+ /// See also [PyArray_Arange](https://numpy. org/doc/stable /reference/c-api/ array.html#c.PyArray_Arange).
10431043 ///
10441044 /// # Example
10451045 /// ```
0 commit comments