(&self, width: usize, height: usize)
| 82 | } |
| 83 | |
| 84 | fn as_2d_array(&self, width: usize, height: usize) -> CudaResult<ArrayObject> |
| 85 | where |
| 86 | T: ArrayPrimitive, |
| 87 | { |
| 88 | let mut arr = ArrayObject::new_2d([width, height], T::array_format(), 1)?; |
| 89 | arr.copy_from(self)?; |
| 90 | Ok(arr) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | impl<T: DeviceCopy, const N: usize> SliceExt<T> for [T; N] { |
no test coverage detected