Tenncor
Public Member Functions | Public Attributes | List of all members
eteq::ScalarConvr< T > Struct Template Referencefinal

Implementation of optimization converter that represents and builds scalar constants. More...

#include <parse.hpp>

Inheritance diagram for eteq::ScalarConvr< T >:
Inheritance graph
[legend]
Collaboration diagram for eteq::ScalarConvr< T >:
Collaboration graph
[legend]

Public Member Functions

 ScalarConvr (double scalar)
 
teq::TensptrT build (const opt::ContexT &ctx, teq::Shape outshape) const override
 Implementation of iConverter. More...
 
std::string to_string (void) const override
 Implementation of iConverter. More...
 
- Public Member Functions inherited from opt::iConverter
virtual ~iConverter (void)=default
 

Public Attributes

double scalar_
 Scalar represented. More...
 

Detailed Description

template<typename T>
struct eteq::ScalarConvr< T >

Implementation of optimization converter that represents and builds scalar constants.

Constructor & Destructor Documentation

◆ ScalarConvr()

template<typename T >
eteq::ScalarConvr< T >::ScalarConvr ( double  scalar)
inline

Member Function Documentation

◆ build()

template<typename T >
teq::TensptrT eteq::ScalarConvr< T >::build ( const opt::ContexT ctx,
teq::Shape  outshape 
) const
inlineoverridevirtual

Implementation of iConverter.

Implements opt::iConverter.

◆ to_string()

template<typename T >
std::string eteq::ScalarConvr< T >::to_string ( void  ) const
inlineoverridevirtual

Implementation of iConverter.

Implements opt::iConverter.

Member Data Documentation

◆ scalar_

template<typename T >
double eteq::ScalarConvr< T >::scalar_

Scalar represented.


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