From b18347ffc9db9641e215995edea1c04c363b2bdf Mon Sep 17 00:00:00 2001 From: Angelo Rossi Date: Wed, 21 Jun 2023 12:04:16 +0000 Subject: Initial commit. --- includes/algebra.hpp | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 includes/algebra.hpp (limited to 'includes/algebra.hpp') diff --git a/includes/algebra.hpp b/includes/algebra.hpp new file mode 100644 index 0000000..d16c61b --- /dev/null +++ b/includes/algebra.hpp @@ -0,0 +1,64 @@ +//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*- + +// file algebra.hpp + +#ifndef _ALGEBRA_HPP +#define _ALGEBRA_HPP + +// System includes. + +#include +#include +#include + +// Local includes. + +#include "blkcom.hpp" +#include "utilities.hpp" +#include "movecopy.hpp" + +namespace algebra { + + bool cdivz(std::vector &, \ + std::vector &, \ + const double &, \ + const double &, \ + const double &, \ + const double &, \ + const long int &); + bool cmultz(std::vector &, \ + std::vector &, \ + const double &, \ + const double &, \ + const double &, \ + const double &, \ + const long int &); + bool trgwnd(const double &, double *); + bool addmxd(std::vector &, \ + const double &, \ + std::vector &, \ + const size_t &); + bool multmx(std::vector &, \ + std::vector &, \ + std::vector &, \ + std::vector &, \ + const size_t &); + bool mult(std::vector &, \ + std::vector &, \ + std::vector &, \ + const size_t &, \ + long int &); + void dgelg(std::vector &, \ + std::vector &, \ + const size_t &, \ + const size_t &, \ + const float &, \ + long int &); + void matmul(float [ 3 ][ 3 ], float [ 3 ][ 3 ]); + void matvec(float [ 3 ][ 3 ], float [ 15 ]); + +} + +#endif // _ALGEBRA_HPP + +// end of file algebra.hpp -- cgit v1.2.3