aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-03-18 20:43:12 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-03-18 20:43:12 +0000
commite429c917962b8ef0bd3fdd92be4be03147e1cc32 (patch)
treea8d15a156dcb6f69bc6dd270439fec72ac63de25
parent78d7b698a40c651aefb2a57028c2b4c09716c51a (diff)
added iem_matrix to the pd-extended build system
svn path=/trunk/externals/iem/iem_matrix/; revision=7504
-rw-r--r--src/matrix_orthogonal.c1
-rw-r--r--src/matrix_pinv.c4
-rw-r--r--src/spherical_line.c3
3 files changed, 7 insertions, 1 deletions
diff --git a/src/matrix_orthogonal.c b/src/matrix_orthogonal.c
index 8acf650..54a38b8 100644
--- a/src/matrix_orthogonal.c
+++ b/src/matrix_orthogonal.c
@@ -3,6 +3,7 @@
iem_matrix written by Thomas Musil (c) IEM KUG Graz Austria 2002 - 2006 */
+#include "m_pd.h"
/* -------------------------- matrix_orthogonal ------------------------------ */
diff --git a/src/matrix_pinv.c b/src/matrix_pinv.c
index f1ede7b..c1ef278 100644
--- a/src/matrix_pinv.c
+++ b/src/matrix_pinv.c
@@ -3,6 +3,8 @@
iem_matrix written by Thomas Musil (c) IEM KUG Graz Austria 2002 - 2006 */
+#include "m_pd.h"
+
/* -------------------------- matrix_pinv ------------------------------ */
typedef struct _matrix_pinv
@@ -400,7 +402,7 @@ static void matrix_pinv_mul2(t_matrix_pinv *x)
{
int n_ls=x->x_n_ls+x->x_n_phls;
int n_ambi=x->x_n_ambi;
- int n_ambi2=2*n_ambi;
+ int n_ambi2=2*x->x_n_ambi;
int i, j, k;
double *vec1, *beg1=x->x_transp;
double *vec2, *beg2=x->x_inv_work2+n_ambi;
diff --git a/src/spherical_line.c b/src/spherical_line.c
index 026b5a8..2477dd8 100644
--- a/src/spherical_line.c
+++ b/src/spherical_line.c
@@ -3,6 +3,9 @@
iem_matrix written by Thomas Musil (c) IEM KUG Graz Austria 2002 - 2006 */
+#include "m_pd.h"
+#include "math.h"
+
/* -------------------------- spherical_line ------------------------------ */
typedef struct _spherical_line