Home | History | Annotate | Download | only in plugins

Lines Matching full:scalar

15 /** \internal Represents a scalar multiple of an expression */
16 typedef CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const Derived> ScalarMultipleReturnType;
17 /** \internal Represents a quotient of an expression by a scalar*/
18 typedef CwiseUnaryOp<internal::scalar_quotient1_op<Scalar>, const Derived> ScalarQuotient1ReturnType;
20 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
21 const CwiseUnaryOp<internal::scalar_conjugate_op<Scalar>, const Derived>,
25 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
26 const CwiseUnaryOp<internal::scalar_real_op<Scalar>, const Derived>,
30 typedef typename internal::conditional<NumTraits<Scalar>::IsComplex,
31 CwiseUnaryView<internal::scalar_real_ref_op<Scalar>, Derived>,
35 typedef CwiseUnaryOp<internal::scalar_imag_op<Scalar>, const Derived> ImagReturnType;
37 typedef CwiseUnaryView<internal::scalar_imag_ref_op<Scalar>, Derived> NonConstImagReturnType;
43 inline const CwiseUnaryOp<internal::scalar_opposite_op<typename internal::traits<Derived>::Scalar>, const Derived>
47 /** \returns an expression of \c *this scaled by the scalar factor \a scalar */
49 operator*(const Scalar& scalar) const
51 return CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const Derived>
52 (derived(), internal::scalar_multiple_op<Scalar>(scalar));
56 const ScalarMultipleReturnType operator*(const RealScalar& scalar) const;
59 /** \returns an expression of \c *this divided by the scalar value \a scalar */
60 inline const CwiseUnaryOp<internal::scalar_quotient1_op<typename internal::traits<Derived>::Scalar>, const Derived>
61 operator/(const Scalar& scalar) const
63 return CwiseUnaryOp<internal::scalar_quotient1_op<Scalar>, const Derived>
64 (derived(), internal::scalar_quotient1_op<Scalar>(scalar));
67 /** Overloaded for efficient real matrix times complex scalar value */
68 inline const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived>
69 operator*(const std::complex<Scalar>& scalar) const
71 return CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived>
72 (*static_cast<const Derived*>(this), internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >(scalar));
76 operator*(const Scalar& scalar, const StorageBaseType& matrix)
77 { return matrix*scalar; }
79 inline friend const CwiseUnaryOp<internal::scalar_multiple2_op<Scalar,std::complex<Scalar> >, const Derived>
80 operator*(const std::complex<Scalar>& scalar, const StorageBaseType& matrix)
81 { return matrix*scalar; }
83 /** \returns an expression of *this with the \a Scalar type casted to
91 typename internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<typename internal::traits<Derived>::Scalar, NewType>, const Derived> >::type