@@ -21,6 +21,7 @@ where D: Dimension
2121 RawArrayView :: from_data_ptr ( RawViewRepr :: new ( ) , ptr) . with_strides_dim ( strides, dim)
2222 }
2323
24+ #[ inline]
2425 unsafe fn new_ ( ptr : * const A , dim : D , strides : D ) -> Self
2526 {
2627 Self :: new ( nonnull_debug_checked_from_ptr ( ptr as * mut A ) , dim, strides)
@@ -66,6 +67,7 @@ where D: Dimension
6667 /// but it's not a complete check.
6768 ///
6869 /// [`.offset()`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset
70+ #[ inline]
6971 pub unsafe fn from_shape_ptr < Sh > ( shape : Sh , ptr : * const A ) -> Self
7072 where Sh : Into < StrideShape < D > >
7173 {
@@ -107,6 +109,7 @@ where D: Dimension
107109 ///
108110 /// **Panics** if `axis` or `index` is out of bounds.
109111 #[ track_caller]
112+ #[ inline]
110113 pub fn split_at ( self , axis : Axis , index : Ix ) -> ( Self , Self )
111114 {
112115 assert ! ( index <= self . len_of( axis) ) ;
@@ -234,6 +237,7 @@ where D: Dimension
234237 RawArrayViewMut :: from_data_ptr ( RawViewRepr :: new ( ) , ptr) . with_strides_dim ( strides, dim)
235238 }
236239
240+ #[ inline]
237241 unsafe fn new_ ( ptr : * mut A , dim : D , strides : D ) -> Self
238242 {
239243 Self :: new ( nonnull_debug_checked_from_ptr ( ptr) , dim, strides)
@@ -279,6 +283,7 @@ where D: Dimension
279283 /// but it's not a complete check.
280284 ///
281285 /// [`.offset()`]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset
286+ #[ inline]
282287 pub unsafe fn from_shape_ptr < Sh > ( shape : Sh , ptr : * mut A ) -> Self
283288 where Sh : Into < StrideShape < D > >
284289 {
@@ -345,6 +350,7 @@ where D: Dimension
345350 ///
346351 /// **Panics** if `axis` or `index` is out of bounds.
347352 #[ track_caller]
353+ #[ inline]
348354 pub fn split_at ( self , axis : Axis , index : Ix ) -> ( Self , Self )
349355 {
350356 let ( left, right) = self . into_raw_view ( ) . split_at ( axis, index) ;
0 commit comments