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 Member Functions | Public Attributes | List of all members
gko::any_scalar Struct Reference

Helper type for type-erased scalar arguments. More...

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

Public Types

using variant_type = syn::variant_from_list< supported_value_types >
 

Public Member Functions

template<typename T , std::enable_if_t< std::is_constructible_v< variant_type, T && >, int > = 0>
 any_scalar (T &&value)
 
template<typename T , std::enable_if_t<!std::is_constructible_v< variant_type, T && > &&std::is_convertible_v< T, double >, int > = 1>
 any_scalar (T &&value)
 

Public Attributes

variant_type variant
 

Detailed Description

Helper type for type-erased scalar arguments.

An object of this type can hold any a value with any supported value type. It is also possible to construct this object with values that are convertible to double, especially ints.


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