#include <iostream>
#include <sstream>
#include <functional>
#include <cerrno>
#include <iomanip>
#include <limits>
#include <algorithm>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/lu.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/io.hpp>
#include "VoxelPools.h"
Go to the source code of this file.
|
template<class T > |
bool | inverse (const ublas::matrix< T > &input, ublas::matrix< T > &inverse) |
|
template<class T >
bool inverse |
( |
const ublas::matrix< T > & |
input, |
|
|
ublas::matrix< T > & |
inverse |
|
) |
| |
Definition at line 65 of file NonlinearSystem.h.
Referenced by NonlinearSystem::compute_jacobians().
67 using namespace boost::numeric::ublas;
68 typedef permutation_matrix<std::size_t> pmatrix;
72 pmatrix pm(A.size1());
75 int res = lu_factorize(A,pm);
76 if( res != 0 )
return false;
79 inverse.assign(ublas::identity_matrix<T>(A.size1()));
bool inverse(const ublas::matrix< T > &input, ublas::matrix< T > &inverse)