mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Support matrix multiplication of homogeneous row vectors
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
2d170aea11
commit
4df215785b
@@ -80,14 +80,12 @@ class Homogeneous : public MatrixBase<Homogeneous<MatrixType, Direction_> >, int
|
||||
|
||||
template <typename Rhs>
|
||||
EIGEN_DEVICE_FUNC inline const Product<Homogeneous, Rhs> operator*(const MatrixBase<Rhs>& rhs) const {
|
||||
eigen_assert(int(Direction) == Horizontal);
|
||||
return Product<Homogeneous, Rhs>(*this, rhs.derived());
|
||||
}
|
||||
|
||||
template <typename Lhs>
|
||||
friend EIGEN_DEVICE_FUNC inline const Product<Lhs, Homogeneous> operator*(const MatrixBase<Lhs>& lhs,
|
||||
const Homogeneous& rhs) {
|
||||
eigen_assert(int(Direction) == Vertical);
|
||||
return Product<Lhs, Homogeneous>(lhs.derived(), rhs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user