Lines Matching full:array

80   MatDenseHIPPlaceArray - Allows one to replace the GPU array in a `MATDENSEHIP` matrix with an
81 array provided by the user. This is useful to avoid copying an array into a matrix.
87 - array - the array in column major order
92 Adding `const` to `array` was an oversight, see notes in `VecPlaceArray()`.
94 You can return to the original array with a call to `MatDenseHIPResetArray()`. The user is
95 responsible for freeing this array; it will not be freed when the matrix is destroyed. The
96 array must have been allocated with `hipMalloc()`.
101 PetscErrorCode MatDenseHIPPlaceArray(Mat mat, const PetscScalar *array) in MatDenseHIPPlaceArray() argument
104 PetscCall(MatDenseCUPMPlaceArray<DeviceType::HIP>(mat, array)); in MatDenseHIPPlaceArray()
109 MatDenseHIPResetArray - Resets the matrix array to that it previously had before the call to
132 MatDenseHIPReplaceArray - Allows one to replace the GPU array in a `MATDENSEHIP` matrix
133 with an array provided by the user. This is useful to avoid copying an array into a matrix.
139 - array - the array in column major order
144 Adding `const` to `array` was an oversight, see notes in `VecPlaceArray()`.
146 This permanently replaces the GPU array and frees the memory associated with the old GPU
147 array. The memory passed in CANNOT be freed by the user. It will be freed when the matrix is
148 destroyed. The array should respect the matrix leading dimension.
152 PetscErrorCode MatDenseHIPReplaceArray(Mat mat, const PetscScalar *array) in MatDenseHIPReplaceArray() argument
155 PetscCall(MatDenseCUPMReplaceArray<DeviceType::HIP>(mat, array)); in MatDenseHIPReplaceArray()
169 . a - the GPU array in column major order
177 The array must be restored with `MatDenseHIPRestoreArrayWrite()` when no longer needed.
198 - a - the GPU array in column major order
214 `MATDENSEHIP` matrix. The array must be restored with `MatDenseHIPRestoreArrayRead()` when
223 . a - the GPU array in column major order
250 - a - the GPU array in column major order
270 array must be restored with `MatDenseHIPRestoreArray()` when no longer needed.
278 . a - the GPU array in column major order
308 - a - the GPU array in column major order
321 MatDenseHIPSetPreallocation - Set the device array used for storing the matrix elements of a
328 - device_array - the array (or `NULL`)