Stokhos Development
Loading...
Searching...
No Matches
Stokhos::LinearGrowthRule< value_type > Class Template Reference

A linear growth rule. More...

#include <Stokhos_GrowthRules.hpp>

Inheritance diagram for Stokhos::LinearGrowthRule< value_type >:
Collaboration diagram for Stokhos::LinearGrowthRule< value_type >:

Public Member Functions

 LinearGrowthRule (const value_type &a_=value_type(1), const value_type &b_=value_type(0))
 Constructor.
virtual ~LinearGrowthRule ()
 Destructor.
virtual value_type operator() (const value_type &x) const
 Evaluate growth rule.
Public Member Functions inherited from Stokhos::GrowthRule< value_type >
 GrowthRule ()
 Constructor.
virtual ~GrowthRule ()
 Destructor.

Protected Attributes

value_type a
 Slope.
value_type b
 Offset.

Detailed Description

template<typename value_type>
class Stokhos::LinearGrowthRule< value_type >

A linear growth rule.

Member Function Documentation

◆ operator()()

template<typename value_type>
virtual value_type Stokhos::LinearGrowthRule< value_type >::operator() ( const value_type & x) const
inlinevirtual

Evaluate growth rule.

Implements Stokhos::GrowthRule< value_type >.

References a, and b.


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