![]() |
Eigen-Contrib
5.0.1
|
#include <contrib/Eigen/src/GPU/GpuSparseContext.h>
Device-resident sparse matrix view. Returned by SparseContext::deviceView() for a SparseMatrix (CSC) or a BlockSparseMatrix (BSR). Lightweight handle referencing the context's cached device data.
It is also a matrix-free matrix type for Eigen's iterative solvers: ConjugateGradient<DeviceSparseView<Scalar>, Lower | Upper> runs Eigen's own algorithm on device vectors through solveWithGuessInPlace(); see the README.
Supports d_y = d_A * d_x (SpMV) and d_Y = d_A * d_X (SpMM).
Inheritance diagram for Eigen::gpu::DeviceSparseView< Scalar_ >:Public Member Functions | |
| uint64_t | generation () const |
| Index | nonZeros () const |
| SpMVExpr< Scalar > | operator* (const DeviceMatrix< Scalar > &x) const |
|
inline |
Upload generation this view was created against. Used to detect stale views after the context has cached a different matrix.
|
inline |
Number of stored entries of the cached matrix.
|
inline |
Sparse product expression: d_A * d_x. Evaluated by DeviceMatrix::operator=.