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

#include <vector_expressions.hpp>

Inheritance diagram for VecExpr::sign_< U, Scalar >:
[legend]

Public Member Functions

 sign_ (const U &u_)
 
auto operator[] (size_t i) const -> decltype(Scalar(1 - 2 *(u[i]< 0)))
 
- Public Member Functions inherited from VecExpr::CVecExpr< sign_< U, Scalar >, Scalar >
const sign_< U, 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 U, class Scalar>
class VecExpr::sign_< U, Scalar >

— Expression class. —

Constructor & Destructor Documentation

◆ sign_()

template<class U , class Scalar >
VecExpr::sign_< U, Scalar >::sign_ ( const U &  u_)
inline

Member Function Documentation

◆ operator[]()

template<class U , class Scalar >
auto VecExpr::sign_< U, Scalar >::operator[] ( size_t  i) const -> decltype( Scalar(1 - 2 * ( u[i] < 0)) )
inline

Member Data Documentation

◆ StoreAsRef

template<class U , class Scalar >
constexpr bool VecExpr::sign_< U, Scalar >::StoreAsRef = false
staticconstexpr

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