Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 68867a5f authored by hhakim's avatar hhakim
Browse files

Fix missing std namespace.

parent 24344391
Branches
Tags
No related merge requests found
......@@ -5,6 +5,9 @@
#include "faust_SVDTJ.h"
#include "faust_TransformHelper.h"
#include <complex>
using namespace std;
namespace Faust
{
......
......@@ -160,6 +160,8 @@ foreach(SCALAR_AND_FSUFFIX IN LISTS MEX_TYPES_AND_SUFFIXES) # TODO: complex<floa
# Truncated Jacobi eigtj and svdtj
if(NOT ${FAUST_SCALAR} MATCHES "complex")
set(SVD_COMPLEX 1)
set(REAL_TYPE ${FAUST_SCALAR})
configure_file(${FAUST_MATLAB_MEX_SRC_DIR}/mex_eigtj.cpp.in ${FAUST_MATLAB_MEX_SRC_DIR}/mex_eigtj${SCALAR}.cpp @ONLY)
configure_file(${FAUST_MATLAB_MEX_SRC_DIR}/mexsvdtj.cpp.in ${FAUST_MATLAB_MEX_SRC_DIR}/mexsvdtj${SCALAR}.cpp @ONLY)
endif()
......
......@@ -49,12 +49,15 @@
#include "mx2Faust.h"
#include "faust2Mx.h"
#include <stdexcept>
#include <complex>
using namespace Faust;
using namespace std;
typedef @FAUST_SCALAR@ SCALAR;
//typedef complex<SCALAR> CPLX_SCALAR; // re-enable if one day complex<float> is supported
//typedef std::complex<SCALAR> CPLX_SCALAR; // re-enable if one day complex<float> is supported
typedef complex<double> CPLX_SCALAR;
using namespace Faust;
//void svdtj_cplx(const mxArray* matlab_matrix, int J, int t, double tol, unsigned int verbosity, bool relErr, int order, const bool enable_large_Faust mxArray **plhs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment