SCIP++ refs/heads/main
 
Loading...
Searching...
No Matches
scippp::ConstantCoefficient Class Reference

A class which an index operator that always returns a constant value. More...

#include <constant_coefficient.hpp>

Public Member Functions

constexpr ConstantCoefficient (double c)
 Stores the constant value that will be returned by the index operator.
 
double operator[] (std::size_t) const
 Index operator that always returns the same constant value.
 

Detailed Description

A class which an index operator that always returns a constant value.

Since
1.0.0

Definition at line 11 of file constant_coefficient.hpp.

Constructor & Destructor Documentation

◆ ConstantCoefficient()

scippp::ConstantCoefficient::ConstantCoefficient ( double c)
inlineexplicitconstexpr

Stores the constant value that will be returned by the index operator.

Since
1.0.0
Parameters
cConstant value to return.

Definition at line 21 of file constant_coefficient.hpp.

Member Function Documentation

◆ operator[]()

double scippp::ConstantCoefficient::operator[] ( std::size_t ) const
inline

Index operator that always returns the same constant value.

Since
1.0.0
Returns
the constant value.

Definition at line 30 of file constant_coefficient.hpp.


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