comparison Framework/Toolbox/LinearAlgebra.h @ 159:0a73d76333db wasm

populating LinearAlgebra
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Feb 2018 09:15:08 +0100
parents a053ca7fa5c6
children 197a5ddaf68c
comparison
equal deleted inserted replaced
158:a053ca7fa5c6 159:0a73d76333db
90 size_t size, 90 size_t size,
91 const double values[]); 91 const double values[]);
92 92
93 void Convert(Matrix& target, 93 void Convert(Matrix& target,
94 const Vector& source); 94 const Vector& source);
95
96 double ComputeDeterminant(const Matrix& a);
97
98 bool IsOrthogonalMatrix(const Matrix& q,
99 double threshold);
100
101 bool IsOrthogonalMatrix(const Matrix& q);
102
103 bool IsRotationMatrix(const Matrix& r,
104 double threshold);
105
106 bool IsRotationMatrix(const Matrix& r);
107
108 void InvertUpperTriangularMatrix(Matrix& output,
109 const Matrix& k);
110
111 /**
112 * This function computes the RQ decomposition of a 3x3 matrix,
113 * using Givens rotations. Reference: Algorithm A4.1 (page 579) of
114 * "Multiple View Geometry in Computer Vision" (2nd edition). The
115 * output matrix "Q" is a rotation matrix, and "R" is upper
116 * triangular.
117 **/
118 void RQDecomposition3x3(Matrix& r,
119 Matrix& q,
120 const Matrix& a);
95 }; 121 };
96 } 122 }