diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-04 08:38:16 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-04 08:38:16 +0100 |
commit | 20fcef9656301e55cb19d61c698de8fafd3cfa4c (patch) | |
tree | 0a070a25e613d51166264716d1d6bef795031420 /blas | |
parent | 62a51184d76e120c7c0484117db8c779a2c42c93 (diff) |
fixes related to ei_ -> internal change
Diffstat (limited to 'blas')
-rw-r--r-- | blas/level1_impl.h | 18 | ||||
-rw-r--r-- | blas/level3_impl.h | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/blas/level1_impl.h b/blas/level1_impl.h index a24adc681..68580036c 100644 --- a/blas/level1_impl.h +++ b/blas/level1_impl.h @@ -55,16 +55,18 @@ RealScalar EIGEN_BLAS_FUNC(asum)(int *n, RealScalar *px, int *incx) } #else -struct internal::scalar_norm1_op { +struct scalar_norm1_op { typedef RealScalar result_type; - EIGEN_EMPTY_STRUCT_CTOR(internal::scalar_norm1_op) + EIGEN_EMPTY_STRUCT_CTOR(scalar_norm1_op) inline RealScalar operator() (const Scalar& a) const { return internal::norm1(a); } }; namespace Eigen { -template<> struct internal::functor_traits<internal::scalar_norm1_op > -{ - enum { Cost = 3 * NumTraits<Scalar>::AddCost, PacketAccess = 0 }; -}; + namespace internal { + template<> struct functor_traits<scalar_norm1_op > + { + enum { Cost = 3 * NumTraits<Scalar>::AddCost, PacketAccess = 0 }; + }; + } } RealScalar EIGEN_CAT(EIGEN_CAT(REAL_SCALAR_SUFFIX,SCALAR_SUFFIX),asum_)(int *n, RealScalar *px, int *incx) @@ -75,8 +77,8 @@ RealScalar EIGEN_CAT(EIGEN_CAT(REAL_SCALAR_SUFFIX,SCALAR_SUFFIX),asum_)(int *n, if(*n<=0) return 0; - if(*incx==1) return vector(x,*n).unaryExpr<internal::scalar_norm1_op>().sum(); - else return vector(x,*n,std::abs(*incx)).unaryExpr<internal::scalar_norm1_op>().sum(); + if(*incx==1) return vector(x,*n).unaryExpr<scalar_norm1_op>().sum(); + else return vector(x,*n,std::abs(*incx)).unaryExpr<scalar_norm1_op>().sum(); } #endif diff --git a/blas/level3_impl.h b/blas/level3_impl.h index ef343dc50..a8ef5236e 100644 --- a/blas/level3_impl.h +++ b/blas/level3_impl.h @@ -27,7 +27,7 @@ int EIGEN_BLAS_FUNC(gemm)(char *opa, char *opb, int *m, int *n, int *k, RealScalar *palpha, RealScalar *pa, int *lda, RealScalar *pb, int *ldb, RealScalar *pbeta, RealScalar *pc, int *ldc) { // std::cerr << "in gemm " << *opa << " " << *opb << " " << *m << " " << *n << " " << *k << " " << *lda << " " << *ldb << " " << *ldc << " " << *palpha << " " << *pbeta << "\n"; - typedef void (*functype)(DenseIndex, DenseIndex, DenseIndex, const Scalar *, DenseIndex, const Scalar *, DenseIndex, Scalar *, DenseIndex, Scalar, internal::level3_blocking<Scalar,Scalar>&, Eigen::GemmParallelInfo<DenseIndex>*); + typedef void (*functype)(DenseIndex, DenseIndex, DenseIndex, const Scalar *, DenseIndex, const Scalar *, DenseIndex, Scalar *, DenseIndex, Scalar, internal::level3_blocking<Scalar,Scalar>&, Eigen::internal::GemmParallelInfo<DenseIndex>*); static functype func[12]; static bool init = false; |