diff --git a/src/syseq.h b/src/syseq.h
index 7075bd47be18fc3954c5c621131ac793e17c1f85..5c7702268f3a9c28a197c1859b11c2b0e89c457f 100644 (file)
--- a/src/syseq.h
+++ b/src/syseq.h
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#include <algorithm>
#include <iostream>
#include <iomanip>
#include <vector>
a[2]*b[1]*c[0]);
}
-/* Fills the matrix A with random values between lower and upper */
-template <int S, int T>
-inline void fill_random (double A[S][T], double lower = 0.0, double upper = 1.0) {
- srand(time(NULL));
- double range = upper - lower;
- for (int i = 0; i < S; ++i) {
- for (int j = 0; j < T; ++j) {
- A[i][j] = range*(random()/(RAND_MAX + 1.0)) - lower;
- }
- }
-}
-
/* Copy the elements of A into B */
template <int S, int T>
inline void copy_mat(double A[S][T], double B[S][T]) {
@@ -325,4 +314,4 @@ template <int S, int T> SolutionKind gaussjord_solve (double A[S][T], double x[T
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :