/usr/include/odindata/linalg.h is in libodin-dev 1.8.8-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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | /***************************************************************************
linalg.h - description
-------------------
begin : Sun May 22 2005
copyright : (C) 2000-2014 by Thies Jochimsen
email : thies@jochimsen.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef LINALG_H
#define LINALG_H
#include<odindata/complexdata.h>
/**
* @addtogroup odindata
* @{
*/
/**
* Solves the linear system A x = b and returns x.
* All singular values less than sv_truncation * max_singular_value
* will be set to zero.
* The algorithm uses the singular value decomposition from LAPACK (or from GSL if LAPACK is not available).
*
*/
Data<float,1> solve_linear(const Data<float,2>& A, const Data<float,1>& b, float sv_truncation=0.0);
/**
* Solves the complex linear system A x = b and returns x.
* All singular values less than sv_truncation * max_singular_value
* will be set to zero.
* The algorithm uses the singular value decomposition from LAPACK (or from GSL if LAPACK is not available).
*
*/
ComplexData<1> solve_linear(const ComplexData<2>& A, const ComplexData<1>& b, float sv_truncation=0.0);
/**
* Computes the eigenvalues of symmetric matrix A using LAPACK (or with GSL if LAPACK is not available).
*
*/
Data<float,1> eigenvalues(const Data<float,2>& A);
/** @}
*/
#endif
|