mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Started a Transform class in the Geometry module to represent
homography. Fix indentation in Quaternion.h
This commit is contained in:
@@ -269,6 +269,10 @@ template<typename Lhs, typename Rhs, int EvalMode> class Product : ei_no_assignm
|
||||
{
|
||||
return m_lhs.coeff(row, col) * m_rhs.coeff(col, col);
|
||||
}
|
||||
else if ((Lhs::Flags&Diagonal)==Diagonal)
|
||||
{
|
||||
return m_lhs.coeff(row, row) * m_rhs.coeff(row, col);
|
||||
}
|
||||
else
|
||||
{
|
||||
Scalar res;
|
||||
@@ -286,7 +290,7 @@ template<typename Lhs, typename Rhs, int EvalMode> class Product : ei_no_assignm
|
||||
{
|
||||
if ((Rhs::Flags&Diagonal)==Diagonal)
|
||||
{
|
||||
assert((_LhsNested::Flags&RowMajorBit)==0);
|
||||
ei_assert((_LhsNested::Flags&RowMajorBit)==0);
|
||||
return ei_pmul(m_lhs.template packetCoeff<LoadMode>(row, col), ei_pset1(m_rhs.coeff(col, col)));
|
||||
}
|
||||
else
|
||||
|
||||
@@ -57,7 +57,8 @@
|
||||
enum {
|
||||
you_tried_calling_a_vector_method_on_a_matrix,
|
||||
you_mixed_vectors_of_different_sizes,
|
||||
you_mixed_matrices_of_different_sizes
|
||||
you_mixed_matrices_of_different_sizes,
|
||||
you_did_a_programming_error
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user