1 #ifndef vnl_adjugate_hxx_ 2 #define vnl_adjugate_hxx_ 29 for (
int i=0; i<n; ++i)
30 for (
int j=0; j<n; ++j)
32 for (
int u=0; u<n-1; ++u)
33 for (
int v=0;
v<n-1; ++
v)
34 sub[u][
v] = A[
v+(
v<i?0:1)][u+(u<j?0:1)];
49 #undef VNL_ADJUGATE_INSTANTIATE 50 #define VNL_ADJUGATE_INSTANTIATE(T) \ 51 template VNL_ALGO_EXPORT void vnl_adjugate(vnl_matrix<T > const &, vnl_matrix<T > *); \ 52 template VNL_ALGO_EXPORT vnl_matrix<T > vnl_adjugate(vnl_matrix<T > const &) unsigned int cols() const
Return the number of columns.
An ordinary mathematical matrix.
calculates the determinant of a matrix
An ordinary mathematical matrix.
void assert_size(unsigned VXL_USED_IN_DEBUG(r), unsigned VXL_USED_IN_DEBUG(c)) const
abort if size is not as expected.
T vnl_determinant(vnl_matrix< T > const &M, bool balance=false)
evaluation using direct methods for sizes of 2x2, 3x3, and 4x4 or qr decomposition for other matrices...
void vnl_adjugate(vnl_matrix< T > const &A, vnl_matrix< T > *out)
unsigned int rows() const
Return the number of rows.