aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/internal/EigenBase.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-27 19:20:06 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-27 19:20:06 +0000
commitd99d9407df76d432bf9459ce000a2506e887c03b (patch)
treefa00569f2dca26e45dbc5a68b812400ac538f4f7 /src/internal/EigenBase.h
parent628b1a8f6d2635bc7dadfd16f3af56b4a664e233 (diff)
add operators *= and /=
Diffstat (limited to 'src/internal/EigenBase.h')
-rw-r--r--src/internal/EigenBase.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/internal/EigenBase.h b/src/internal/EigenBase.h
index 9f77ea6fc..804880c75 100644
--- a/src/internal/EigenBase.h
+++ b/src/internal/EigenBase.h
@@ -89,6 +89,22 @@ template<typename _Scalar, typename Derived> class EigenBase
Derived& operator+=(const EigenBase<Scalar, OtherDerived>& other);
template<typename OtherDerived>
Derived& operator-=(const EigenBase<Scalar, OtherDerived>& other);
+ template<typename OtherDerived>
+ Derived& operator*=(const EigenBase<Scalar, OtherDerived>& other);
+
+ Derived& operator*=(const int& other);
+ Derived& operator*=(const float& other);
+ Derived& operator*=(const double& other);
+ Derived& operator*=(const std::complex<int>& other);
+ Derived& operator*=(const std::complex<float>& other);
+ Derived& operator*=(const std::complex<double>& other);
+
+ Derived& operator/=(const int& other);
+ Derived& operator/=(const float& other);
+ Derived& operator/=(const double& other);
+ Derived& operator/=(const std::complex<int>& other);
+ Derived& operator/=(const std::complex<float>& other);
+ Derived& operator/=(const std::complex<double>& other);
Scalar operator()(int row, int col = 0) const
{ return read(row, col); }