/* Functions listed in alphabetical order */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef F2C_COMPAT
void cdotc_(fcomplex *dotval, int *n, fcomplex *cx, int *incx,
int ztrsv_(char *uplo, char *trans, char *diag, int *n, dcomplex *a,
int *lda, dcomplex *x, int *incx);
+
+#ifdef __cplusplus
+}
+#endif
#include "blas.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int daxpy_(int *n, double *sa, double *sx, int *incx, double *sy,
int *incy)
{
return 0;
} /* daxpy_ */
+
+#ifdef __cplusplus
+}
+#endif
#include "blas.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
double ddot_(int *n, double *sx, int *incx, double *sy, int *incy)
{
long int i, m, nn, iincx, iincy;
return stemp;
} /* ddot_ */
+
+#ifdef __cplusplus
+}
+#endif
#include <math.h> /* Needed for fabs() and sqrt() */
#include "blas.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
double dnrm2_(int *n, double *x, int *incx)
{
long int ix, nn, iincx;
return norm;
} /* dnrm2_ */
+
+#ifdef __cplusplus
+}
+#endif
#include "blas.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int dscal_(int *n, double *sa, double *sx, int *incx)
{
long int i, m, nincx, nn, iincx;
return 0;
} /* dscal_ */
+
+#ifdef __cplusplus
+}
+#endif
CFLAGS = -Wall -Wconversion -O3 -fPIC -I$(MATLABDIR)/extern/include -I..
MEX = $(MATLABDIR)/bin/mex
-MEX_OPTION = CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)"
+MEX_OPTION = CC="$(CXX)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)"
# comment the following line if you use MATLAB on a 32-bit computer
MEX_OPTION += -largeArrayDims
MEX_EXT = $(shell $(MATLABDIR)/bin/mexext)