Copies `n` elements from `x` into `y`, overriding any previous data inside `y`. # Panics Panics if `x` or `y` are not large enough for the requested amount of elements. # Example ``` # fn main() -> Result<(), Box > { # let _a = cust::quick_init()?; # use blastoff::CublasContext; # use cust::prelude::*; # use cust::memory::DeviceBox; # use cust::util::SliceExt; # let strea
(
&mut self,
stream: &Stream,
n: usize,
x: &impl GpuBuffer<T>,
y: &mut impl GpuBuffer<T>,
)
| 283 | /// # } |
| 284 | /// ``` |
| 285 | pub fn copy<T: Level1>( |
| 286 | &mut self, |
| 287 | stream: &Stream, |
| 288 | n: usize, |
| 289 | x: &impl GpuBuffer<T>, |
| 290 | y: &mut impl GpuBuffer<T>, |
| 291 | ) -> Result { |
| 292 | self.copy_strided(stream, n, x, None, y, None) |
| 293 | } |
| 294 | |
| 295 | /// Same as [`CublasContext::dot`] but with an explicit stride. |
| 296 | /// |
nothing calls this directly
no test coverage detected