/usr/include/rheolef/blas3.h is in librheolef-dev 5.93-2.
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #ifndef _SKIT_BLAS3_H
#define _SKIT_BLAS3_H
///
/// This file is part of Rheolef.
///
/// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
///
/// Rheolef 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.
///
/// Rheolef is distributed in the hope that it will be useful,
/// but WITHOUT ANY WARRANTY; without even the implied warranty of
/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/// GNU General Public License for more details.
///
/// You should have received a copy of the GNU General Public License
/// along with Rheolef; if not, write to the Free Software
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
///
/// =========================================================================
namespace rheolef {
// ============================[ CHECK SIZE ]====================================
template <class D, class B>
static inline
void
check_diag_mat_length (const D& d, const B& b)
{
check_macro (d.n() == b.nrow(), "incompatible diag("
<< d.n() << "," << d.n() << ")*mat("
<< b.nrow() << "," << b.ncol()<< ")");
}
template <class A, class D>
static inline
void
check_mat_diag_length (const A& a, const D& d)
{
check_macro (a.ncol() == d.n(), "incompatible mat("
<< a.nrow() << "," << a.ncol() << ")*diag("
<< d.n() << "," << d.n() << ")");
}
template <class A, class B>
static inline
void
check_mat_length (const A& a, const B& b)
{
check_macro (a.nrow() == b.nrow() && a.ncol() == b.ncol(),
"incompatible mat("
<< a.nrow() << "," << a.ncol() << ") +- mat("
<< b.nrow() << "," << b.ncol() << ") combination.");
}
template <class A, class B>
static inline
void
check_mat_mul_length (const A& a, const B& b)
{
check_macro (a.ncol() == b.nrow(),
"incompatible mat("
<< a.nrow() << "," << a.ncol() << ") * mat("
<< b.nrow() << "," << b.ncol() << ")");
}
// =========================[ MAT AND Float ]===================================
template <class T>
csr<T>
operator * (const csr<T>& a, const Float& lambda);
template <class T>
csr<T>
operator * (const Float& lambda, const csr<T>& a);
template <class T>
csr<T>
operator / (const csr<T>& a, const Float& lambda);
}// namespace rheolef
// ==============================[ others ]======================================
#ifdef _RHEOLEF_HAVE_EXPRESSION_TEMPLATE
#include "blas3-tmpl.h"
#else
#include "blas3-no-tmpl.h"
#endif
#endif // _SKIT_BLAS3_H
|