cudolfinx.la
Wrapper classes for linear algebra objects on the GPU.
Classes
|
Matrix on device. |
|
Vector on device. |
- class cudolfinx.la.CUDAMatrix(ctx, petsc_mat)[source]
Bases:
objectMatrix on device.
Initialize the matrix.
- assemble()[source]
Call assemble on the underlying PETSc matrix.
If the PETSc matrix is not a CUDA matrix, then matrix values will be explicitly copied to the host.
- property mat
Return underlying CUDA matrix.