/usr/include/votca/tools/linalg.h is in libvotca-tools-dev 1.2.4-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /*
* File: linsolve.h
* Author: ruehle
*
* Created on March 15, 2010, 12:09 PM
*/
#ifndef __VOTCA_LINSOLVE_H
#define __VOTCA_LINSOLVE_H
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
namespace votca { namespace tools {
namespace ub = boost::numeric::ublas;
/**
* \brief solves A*x=b
* @param x storage for x
* @param A matrix for linear equation system
* @param b inhomogenity
* @param residual if non-zero, residual will be stored here
*
* This function wrapps the qrsolver
*/
void linalg_qrsolve(ub::vector<double> &x, ub::matrix<double> &A, ub::vector<double> &b, ub::vector<double> *residual=NULL);
/**
* \brief solves A*x=b under the constraint B*x = 0
* @param x storage for x
* @param A matrix for linear equation system
* @param b inhomogenity
* @param constr constrained condition B (or is it the transposed one? check that)
*
* This function wrapps the qrsolver under constraints
*/
void linalg_constrained_qrsolve(ub::vector<double> &x, ub::matrix<double> &A, ub::vector<double> &b, ub::matrix<double> &constr);
}}
#endif /* _LINSOLVE_H */
|