Lines Matching full:array

79   MatDenseCUDAPlaceArray - Allows one to replace the GPU array in a `MATDENSECUDA` matrix with an
80 array provided by the user. This is useful to avoid copying an array into a matrix.
86 - array - the array in column major order
91 Adding `const` to `array` was an oversight, see notes in `VecPlaceArray()`.
93 You can return to the original array with a call to `MatDenseCUDAResetArray()`. The user is
94 responsible for freeing this array; it will not be freed when the matrix is destroyed. The
95 array must have been allocated with `cudaMalloc()`.
100 PetscErrorCode MatDenseCUDAPlaceArray(Mat mat, const PetscScalar *array) in MatDenseCUDAPlaceArray() argument
103 PetscCall(MatDenseCUPMPlaceArray<DeviceType::CUDA>(mat, array)); in MatDenseCUDAPlaceArray()
108 MatDenseCUDAResetArray - Resets the matrix array to that it previously had before the call to
131 MatDenseCUDAReplaceArray - Allows one to replace the GPU array in a `MATDENSECUDA` matrix
132 with an array provided by the user. This is useful to avoid copying an array into a matrix.
138 - array - the array in column major order
143 Adding `const` to `array` was an oversight, see notes in `VecPlaceArray()`.
145 This permanently replaces the GPU array and frees the memory associated with the old GPU
146 array. The memory passed in CANNOT be freed by the user. It will be freed when the matrix is
147 destroyed. The array should respect the matrix leading dimension.
151 PetscErrorCode MatDenseCUDAReplaceArray(Mat mat, const PetscScalar *array) in MatDenseCUDAReplaceArray() argument
154 PetscCall(MatDenseCUPMReplaceArray<DeviceType::CUDA>(mat, array)); in MatDenseCUDAReplaceArray()
168 . a - the GPU array in column major order
176 The array must be restored with `MatDenseCUDARestoreArrayWrite()` when no longer needed.
197 - a - the GPU array in column major order
213 `MATDENSECUDA` matrix. The array must be restored with `MatDenseCUDARestoreArrayRead()` when
222 . a - the GPU array in column major order
249 - a - the GPU array in column major order
269 array must be restored with `MatDenseCUDARestoreArray()` when no longer needed.
277 . a - the GPU array in column major order
307 - a - the GPU array in column major order
320 MatDenseCUDASetPreallocation - Set the device array used for storing the matrix elements of a
327 - device_array - the array (or `NULL`)