![]() |
cuLite v0.3.1
A lite CUDA C++ Interface
|
The abstract linear solver base for dense device matrices. More...

Public Member Functions | |
| void | reserve (const T_Matrix &mat) |
| Reserves workspace memory for matrix decomposition. | |
| void | clear () |
| Clears the solver internal data. | |
| void | decompose (const T_Matrix &mat) |
| Performs matrix decomposition. | |
| void | solve (T_Matrix &rhs) const |
| Performs in-place matrix solution. | |
| void | solve (T_Vector &rhs) const |
| Performs in-place vector solution. | |
The abstract linear solver base for dense device matrices.
Provides a base class for GPU-based linear solvers that use cuSOLVER decomposition methods. This is the device version that operates on matrices stored in GPU memory.
| T_Matrix | The device matrix type (e.g., dns::XxMatrix<T_Scalar>). |
| void culite::LapackBase< T_Matrix >::reserve | ( | const T_Matrix & | mat | ) |
Reserves workspace memory for matrix decomposition.
Allocates the necessary device memory buffers required to perform the decomposition of a matrix with the same dimensions as mat.
| [in] | mat | The matrix whose dimensions determine the workspace size. |
| void culite::LapackBase< T_Matrix >::clear | ( | ) |
Clears the solver internal data.
Clears the solver internal data and resets all settings.
| void culite::LapackBase< T_Matrix >::decompose | ( | const T_Matrix & | mat | ) |
Performs matrix decomposition.
Computes the matrix factorization without modifying the input matrix.
| [in] | mat | The matrix to be decomposed. |
| void culite::LapackBase< T_Matrix >::solve | ( | T_Matrix & | rhs | ) | const |
Performs in-place matrix solution.
Solves the linear system using the precomputed factorization.
| [in,out] | rhs | On input, the right hand side matrix, on exit is overwritten with the solution. |
| void culite::LapackBase< T_Matrix >::solve | ( | T_Vector & | rhs | ) | const |
Performs in-place vector solution.
Solves the linear system using the precomputed factorization.
| [in,out] | rhs | On input, the right hand side vector, on exit is overwritten with the solution. |