Lines Matching defs:Scalar
27 typedef typename scalar_product_traits<typename Lhs::Scalar, typename Rhs::Scalar>::ReturnType Scalar;
74 typedef typename internal::traits<Lhs>::Scalar LhsScalar;
81 typedef typename internal::traits<Rhs>::Scalar RhsScalar;
102 inline void evalTo(Dest& dst) const { dst.setZero(); scaleAndAddTo(dst,Scalar(1)); }
105 inline void addTo(Dest& dst) const { scaleAndAddTo(dst,Scalar(1)); }
108 inline void subTo(Dest& dst) const { scaleAndAddTo(dst,Scalar(-1)); }
111 inline void scaleAndAddTo(Dest& dst,Scalar alpha) const { derived().scaleAndAddTo(dst,alpha); }
142 Matrix<Scalar,1,1> result = *this;
151 Matrix<Scalar,1,1> result = *this;
155 const Scalar& coeffRef(Index row, Index col) const
162 const Scalar& coeffRef(Index i) const
195 // Also note that here we accept any compatible scalar types
198 operator*(const ProductBase<Derived,Lhs,Rhs>& prod, typename Derived::Scalar x)
202 typename internal::enable_if<!internal::is_same<typename Derived::Scalar,typename Derived::RealScalar>::value,
210 operator*(typename Derived::Scalar x,const ProductBase<Derived,Lhs,Rhs>& prod)
214 typename internal::enable_if<!internal::is_same<typename Derived::Scalar,typename Derived::RealScalar>::value,
240 typedef typename Base::Scalar Scalar;
244 ScaledProduct(const NestedProduct& prod, Scalar x)
248 inline void evalTo(Dest& dst) const { dst.setZero(); scaleAndAddTo(dst, Scalar(1)); }
251 inline void addTo(Dest& dst) const { scaleAndAddTo(dst, Scalar(1)); }
254 inline void subTo(Dest& dst) const { scaleAndAddTo(dst, Scalar(-1)); }
257 inline void scaleAndAddTo(Dest& dst,Scalar alpha) const { m_prod.derived().scaleAndAddTo(dst,alpha * m_alpha); }
259 const Scalar& alpha() const { return m_alpha; }
263 Scalar m_alpha;