X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fsyseq.h;h=2902a8858f854b66295091456616ccc2ca719d94;hb=99f8079bc0a32aef279e4af06de4cbf4bd853563;hp=7075bd47be18fc3954c5c621131ac793e17c1f85;hpb=4358ff6156766a315e38e72a5c3c83d6d5f7486b;p=inkscape.git diff --git a/src/syseq.h b/src/syseq.h index 7075bd47b..2902a8858 100644 --- a/src/syseq.h +++ b/src/syseq.h @@ -12,6 +12,7 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include #include #include #include @@ -64,18 +65,6 @@ determinant3v (const double a[3], const double b[3], const double c[3]) { a[2]*b[1]*c[0]); } -/* Fills the matrix A with random values between lower and upper */ -template -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 inline void copy_mat(double A[S][T], double B[S][T]) {