Alexandria 2.31.4
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::MathUtils::DefaultMultiplication Class Referencefinal
Inheritance diagram for Euclid::MathUtils::DefaultMultiplication:
Collaboration diagram for Euclid::MathUtils::DefaultMultiplication:

Public Member Functions

 DefaultMultiplication (const Function &f1, const Function &f2)
 
double operator() (const double x) const override
 
void operator() (const std::vector< double > &xs, std::vector< double > &out) const override
 
std::unique_ptr< Functionclone () const override
 

Private Attributes

std::unique_ptr< Functionm_f1
 
std::unique_ptr< Functionm_f2
 

Detailed Description

Definition at line 50 of file function_tools.cpp.

Constructor & Destructor Documentation

◆ DefaultMultiplication()

Euclid::MathUtils::DefaultMultiplication::DefaultMultiplication ( const Function & f1,
const Function & f2 )
inline

Definition at line 52 of file function_tools.cpp.

References clone(), m_f1, and m_f2.

Referenced by clone().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

std::unique_ptr< Function > Euclid::MathUtils::DefaultMultiplication::clone ( ) const
inlineoverridevirtual

Creates a clone of the function object. All subclasses must implement this method, to enable copying of Function objects when only a reference to the Function class is available.

Returns
A copy of the Function object

Implements Euclid::MathUtils::NAryFunction< 1 >.

Definition at line 63 of file function_tools.cpp.

References DefaultMultiplication(), m_f1, and m_f2.

Referenced by DefaultMultiplication().

Here is the call graph for this function:

◆ operator()() [1/2]

double Euclid::MathUtils::DefaultMultiplication::operator() ( const double x) const
inlineoverride

Definition at line 54 of file function_tools.cpp.

References m_f1, and m_f2.

◆ operator()() [2/2]

void Euclid::MathUtils::DefaultMultiplication::operator() ( const std::vector< double > & xs,
std::vector< double > & out ) const
inlineoverride

Definition at line 58 of file function_tools.cpp.

References std::vector< T >::begin(), std::cref(), std::vector< T >::end(), std::vector< T >::resize(), std::vector< T >::size(), and std::transform().

Here is the call graph for this function:

Member Data Documentation

◆ m_f1

std::unique_ptr<Function> Euclid::MathUtils::DefaultMultiplication::m_f1
private

Definition at line 68 of file function_tools.cpp.

Referenced by clone(), DefaultMultiplication(), and operator()().

◆ m_f2

std::unique_ptr<Function> Euclid::MathUtils::DefaultMultiplication::m_f2
private

Definition at line 69 of file function_tools.cpp.

Referenced by clone(), DefaultMultiplication(), and operator()().


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