Started a Transform class in the Geometry module to represent

homography.
Fix indentation in Quaternion.h
This commit is contained in:
Gael Guennebaud
2008-06-15 08:33:44 +00:00
parent 4af7089ab8
commit fbbd8afe30
7 changed files with 385 additions and 117 deletions

View File

@@ -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

View File

@@ -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
};
};