Ginkgo  Generated from pipelines/3133041809 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
Public Types | Public Attributes | List of all members
gko::scaling_param< ValueType > Struct Template Reference

The allowed matrix::MultiVector<T> type to be used in scaling operations, e.g. More...

#include <ginkgo/core/base/multivector_mixin.hpp>

Public Types

using variant_type = std::variant< const matrix::MultiVector< ValueType > * >
 

Public Attributes

variant_type variant
 The scaling factor with one of the allowed precisions.
 

Detailed Description

template<typename ValueType>
struct gko::scaling_param< ValueType >

The allowed matrix::MultiVector<T> type to be used in scaling operations, e.g.

in scaled_add.

The stored pointer is never null, and it always points to a vector whose precision is one of the alternatives of variant_type, i.e. no further precision conversion is necessary. Implementations have to handle every alternative, for example by using std::visit.

Template Parameters
ValueTypeThe value type of the vector type on which to call the scaling operation

The documentation for this struct was generated from the following file: