00001 #ifndef vnl_algo_determinant_h_ 00002 #define vnl_algo_determinant_h_ 00003 00004 00005 //: 00006 // \file 00007 // \brief calculates the determinant of a matrix 00008 // \author fsm@robots.ox.ac.uk 00009 // 00010 // Modifications 00011 // dac (Manchester) 26/03/2001: tidied up documentation 00012 // 00013 00014 00015 #include <vnl/vnl_determinant.h> // <-- not this file: different dir! 00016 00017 00018 //: calculates the determinant of a matrix 00019 // evaluation of determinants of any size. for small 00020 // matrices, will use the direct routines (no netlib) 00021 // but for larger matrices, a matrix decomposition 00022 // such as SVD or QR will be used. 00023 00024 template <class T> 00025 T vnl_determinant(T const * const *rows, unsigned n); 00026 00027 template <class T> class vnl_matrix; 00028 00029 template <class T> 00030 T vnl_determinant(vnl_matrix<T> const &); 00031 00032 #endif // vnl_algo_determinant_h_