aboutsummaryrefslogtreecommitdiffhomepage
path: root/blas/level1_impl.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-07-16 22:27:24 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-07-16 22:27:24 +0200
commitf59226e901c5af32c71d6087c84db8ff968ac413 (patch)
treee46fa465ae44a8e808c80897d900f19cab60356c /blas/level1_impl.h
parent4c19024fbf091fcf6823702263ea36053e82e03f (diff)
fix compilation of blas lib
Diffstat (limited to 'blas/level1_impl.h')
-rw-r--r--blas/level1_impl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/blas/level1_impl.h b/blas/level1_impl.h
index 9b79da6d5..5ea80064f 100644
--- a/blas/level1_impl.h
+++ b/blas/level1_impl.h
@@ -30,8 +30,6 @@ int EIGEN_BLAS_FUNC(axpy)(int *n, RealScalar *palpha, RealScalar *px, int *incx,
Scalar* y = reinterpret_cast<Scalar*>(py);
Scalar alpha = *reinterpret_cast<Scalar*>(palpha);
-// std::cerr << "axpy " << *n << " " << alpha << " " << *incx << " " << *incy << "\n";
-
if(*incx==1 && *incy==1) vector(y,*n) += alpha * vector(x,*n);
else if(*incx>0 && *incy>0) vector(y,*n,*incy) += alpha * vector(x,*n,*incx);
else if(*incx>0 && *incy<0) vector(y,*n,-*incy).reverse() += alpha * vector(x,*n,*incx);
@@ -126,7 +124,7 @@ int EIGEN_CAT(EIGEN_CAT(i,SCALAR_SUFFIX),amax_)(int *n, RealScalar *px, int *inc
if(*n<=0)
return 0;
- int ret;
+ DenseIndex ret;
if(*incx==1) vector(x,*n).cwiseAbs().maxCoeff(&ret);
else vector(x,*n,std::abs(*incx)).cwiseAbs().maxCoeff(&ret);