(&self)
| 73 | } |
| 74 | |
| 75 | fn as_1d_array(&self) -> CudaResult<ArrayObject> |
| 76 | where |
| 77 | T: ArrayPrimitive, |
| 78 | { |
| 79 | let mut arr = ArrayObject::new_1d(self.len(), T::array_format(), 1)?; |
| 80 | arr.copy_from(self)?; |
| 81 | Ok(arr) |
| 82 | } |
| 83 | |
| 84 | fn as_2d_array(&self, width: usize, height: usize) -> CudaResult<ArrayObject> |
| 85 | where |
no test coverage detected