mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
add outerproduct coeff(int,int) method.
This is needed to make this expression work: (vec1*vec2.transpose())*vec3 Gael, no objection? Seems to make sense as that's fast.
This commit is contained in:
parent
457b7cba96
commit
fa65b09661
@ -212,6 +212,11 @@ class GeneralProduct<Lhs, Rhs, OuterProduct>
|
||||
ei_outer_product_selector<(int(Dest::Flags)&RowMajorBit) ? RowMajor : ColMajor>::run(*this, dest, alpha);
|
||||
}
|
||||
|
||||
Scalar coeff(int row, int col) const
|
||||
{
|
||||
return this->lhs().coeff(row) * this->rhs().coeff(col);
|
||||
}
|
||||
|
||||
private:
|
||||
GeneralProduct& operator=(const GeneralProduct&);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user