Documentation 6b54b78464
Loading...
Searching...
No Matches
VecExpr::Bcast< Scalar > Class Template Reference

Expression class to broadcast a scalar value. Allows implementing "vector-scalar" operations re-using "vector-vector" expressions. More...

#include <vector_expressions.hpp>

Inheritance diagram for VecExpr::Bcast< Scalar >:
[legend]

Public Member Functions

 Bcast (const Scalar &x_)
 
const Scalar & operator[] (size_t) const
 
- Public Member Functions inherited from VecExpr::CVecExpr< Bcast< Scalar >, Scalar >
const Bcast< Scalar > & derived () const
 Cast the expression to Derived, usually to allow evaluation via operator[].
 

Static Public Attributes

static constexpr bool StoreAsRef = false
 

Detailed Description

template<class Scalar>
class VecExpr::Bcast< Scalar >

Expression class to broadcast a scalar value. Allows implementing "vector-scalar" operations re-using "vector-vector" expressions.

Constructor & Destructor Documentation

◆ Bcast()

template<class Scalar >
VecExpr::Bcast< Scalar >::Bcast ( const Scalar &  x_)
inline

Member Function Documentation

◆ operator[]()

template<class Scalar >
const Scalar & VecExpr::Bcast< Scalar >::operator[] ( size_t  ) const
inline

Member Data Documentation

◆ StoreAsRef

template<class Scalar >
constexpr bool VecExpr::Bcast< Scalar >::StoreAsRef = false
staticconstexpr

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