summaryrefslogtreecommitdiffstats
path: root/includes/algebra.hpp
diff options
context:
space:
mode:
authorAngelo Rossi <angelo.rossi.homelab@gmail.com>2023-06-21 12:04:16 +0000
committerAngelo Rossi <angelo.rossi.homelab@gmail.com>2023-06-21 12:04:16 +0000
commitb18347ffc9db9641e215995edea1c04c363b2bdf (patch)
treef3908dc911399f1a21e17d950355ee56dc0919ee /includes/algebra.hpp
Initial commit.
Diffstat (limited to 'includes/algebra.hpp')
-rw-r--r--includes/algebra.hpp64
1 files changed, 64 insertions, 0 deletions
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 <iostream>
+#include <iomanip>
+#include <cmath>
+
+// Local includes.
+
+#include "blkcom.hpp"
+#include "utilities.hpp"
+#include "movecopy.hpp"
+
+namespace algebra {
+
+ bool cdivz(std::vector<double> &, \
+ std::vector<double> &, \
+ const double &, \
+ const double &, \
+ const double &, \
+ const double &, \
+ const long int &);
+ bool cmultz(std::vector<double> &, \
+ std::vector<double> &, \
+ const double &, \
+ const double &, \
+ const double &, \
+ const double &, \
+ const long int &);
+ bool trgwnd(const double &, double *);
+ bool addmxd(std::vector<double> &, \
+ const double &, \
+ std::vector<double> &, \
+ const size_t &);
+ bool multmx(std::vector<double> &, \
+ std::vector<double> &, \
+ std::vector<double> &, \
+ std::vector<double> &, \
+ const size_t &);
+ bool mult(std::vector<double> &, \
+ std::vector<double> &, \
+ std::vector<double> &, \
+ const size_t &, \
+ long int &);
+ void dgelg(std::vector<double> &, \
+ std::vector<double> &, \
+ 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