Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Sparse operations type for a different scalar type. More...
Sparse operations type for a different scalar type.
The bind_scalar struct defines the type responsible for sparse operations for a scalar type S2, which may be different from
This is used by Tpetra::CrsMatrix to "bind" a potentially "void" scalar type to the appropriate scalar. The other_type typedef tells Tpetra::CrsMatrix which local sparse ops type to use, as a function of Tpetra's Scalar template parameter.
For AltSparseOps, the other_type typedef always specifies a specialization of AltSparseOps, regardless of the scalar type S2. This is not necessarily true for other implementations of local sparse ops, so Tpetra developers should always get their local sparse ops type from the other_type typedef.
|S2||A scalar type possibly different from |