/external/eigen/blas/ |
D | level1_cplx_impl.h | 28 …lar EIGEN_CAT(EIGEN_CAT(REAL_SCALAR_SUFFIX,SCALAR_SUFFIX),asum_)(int *n, RealScalar *px, int *incx) 35 if(*incx==1) return vector(x,*n).unaryExpr<scalar_norm1_op>().sum(); 36 else return vector(x,*n,std::abs(*incx)).unaryExpr<scalar_norm1_op>().sum(); 40 int EIGEN_BLAS_FUNC(dotcw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar… 50 if(*incx==1 && *incy==1) *res = (vector(x,*n).dot(vector(y,*n))); 51 else if(*incx>0 && *incy>0) *res = (vector(x,*n,*incx).dot(vector(y,*n,*incy))); 52 else if(*incx<0 && *incy>0) *res = (vector(x,*n,-*incx).reverse().dot(vector(y,*n,*incy))); 53 else if(*incx>0 && *incy<0) *res = (vector(x,*n,*incx).dot(vector(y,*n,-*incy).reverse())); 54 …else if(*incx<0 && *incy<0) *res = (vector(x,*n,-*incx).reverse().dot(vector(y,*n,-*incy).reverse(… 59 int EIGEN_BLAS_FUNC(dotuw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar… [all …]
|
D | level1_impl.h | 12 int EIGEN_BLAS_FUNC(axpy)(int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, in… in EIGEN_BLAS_FUNC() 20 if(*incx==1 && *incy==1) vector(y,*n) += alpha * vector(x,*n); in EIGEN_BLAS_FUNC() 21 else if(*incx>0 && *incy>0) vector(y,*n,*incy) += alpha * vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 22 else if(*incx>0 && *incy<0) vector(y,*n,-*incy).reverse() += alpha * vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 23 else if(*incx<0 && *incy>0) vector(y,*n,*incy) += alpha * vector(x,*n,-*incx).reverse(); in EIGEN_BLAS_FUNC() 24 …else if(*incx<0 && *incy<0) vector(y,*n,-*incy).reverse() += alpha * vector(x,*n,-*incx).reverse(); in EIGEN_BLAS_FUNC() 29 int EIGEN_BLAS_FUNC(copy)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy) in EIGEN_BLAS_FUNC() 37 if(*incx==1 && *incy==1) in EIGEN_BLAS_FUNC() 41 if(*incx<0) x = x - (*n-1)*(*incx); in EIGEN_BLAS_FUNC() 46 x += *incx; in EIGEN_BLAS_FUNC() [all …]
|
D | level1_real_impl.h | 14 RealScalar EIGEN_BLAS_FUNC(asum)(int *n, RealScalar *px, int *incx) in EIGEN_BLAS_FUNC() 22 if(*incx==1) return vector(x,*n).cwiseAbs().sum(); in EIGEN_BLAS_FUNC() 23 else return vector(x,*n,std::abs(*incx)).cwiseAbs().sum(); in EIGEN_BLAS_FUNC() 27 Scalar EIGEN_BLAS_FUNC(dot)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy) in EIGEN_BLAS_FUNC() 36 if(*incx==1 && *incy==1) return (vector(x,*n).cwiseProduct(vector(y,*n))).sum(); in EIGEN_BLAS_FUNC() 37 else if(*incx>0 && *incy>0) return (vector(x,*n,*incx).cwiseProduct(vector(y,*n,*incy))).sum(); in EIGEN_BLAS_FUNC() 38 …else if(*incx<0 && *incy>0) return (vector(x,*n,-*incx).reverse().cwiseProduct(vector(y,*n,*incy))… in EIGEN_BLAS_FUNC() 39 …else if(*incx>0 && *incy<0) return (vector(x,*n,*incx).cwiseProduct(vector(y,*n,-*incy).reverse())… in EIGEN_BLAS_FUNC() 40 …else if(*incx<0 && *incy<0) return (vector(x,*n,-*incx).reverse().cwiseProduct(vector(y,*n,-*incy)… in EIGEN_BLAS_FUNC() 46 Scalar EIGEN_BLAS_FUNC(nrm2)(int *n, RealScalar *px, int *incx) in EIGEN_BLAS_FUNC() [all …]
|
D | level2_cplx_impl.h | 19 …nt *n, RealScalar *palpha, RealScalar *pa, int *lda, RealScalar *px, int *incx, RealScalar *pbeta,… in EIGEN_BLAS_FUNC() 32 else if(*incx==0) info = 7; in EIGEN_BLAS_FUNC() 40 Scalar* actual_x = get_compact_vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 118 int EIGEN_BLAS_FUNC(her)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSca… in EIGEN_BLAS_FUNC() 127 else if(*incx==0) info = 5; in EIGEN_BLAS_FUNC() 135 Scalar* x_cpy = get_compact_vector(x, *n, *incx); in EIGEN_BLAS_FUNC() 162 int EIGEN_BLAS_FUNC(her2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSc… in EIGEN_BLAS_FUNC() 172 else if(*incx==0) info = 5; in EIGEN_BLAS_FUNC() 181 Scalar* x_cpy = get_compact_vector(x, *n, *incx); in EIGEN_BLAS_FUNC() 203 int EIGEN_BLAS_FUNC(geru)(int *m, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar… in EIGEN_BLAS_FUNC() [all …]
|
D | common.h | 116 T* get_compact_vector(T* x, int n, int incx) in get_compact_vector() argument 118 if(incx==1) in get_compact_vector() 122 if(incx<0) vector(ret,n) = vector(x,n,-incx).reverse(); in get_compact_vector() 123 else vector(ret,n) = vector(x,n, incx); in get_compact_vector() 128 T* copy_back(T* x_cpy, T* x, int n, int incx) in copy_back() argument 133 if(incx<0) vector(x,n,-incx).reverse() = vector(x_cpy,n); in copy_back() 134 else vector(x,n, incx) = vector(x_cpy,n); in copy_back()
|
D | level2_real_impl.h | 13 …nt *n, RealScalar *palpha, RealScalar *pa, int *lda, RealScalar *px, int *incx, RealScalar *pbeta,… in EIGEN_BLAS_FUNC() 26 else if(*incx==0) info = 7; in EIGEN_BLAS_FUNC() 34 Scalar* actual_x = get_compact_vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 54 int EIGEN_BLAS_FUNC(syr)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSca… in EIGEN_BLAS_FUNC() 79 else if(*incx==0) info = 5; in EIGEN_BLAS_FUNC() 87 Scalar* x_cpy = get_compact_vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 108 int EIGEN_BLAS_FUNC(syr2)(char *uplo, int *n, RealScalar *palpha, RealScalar *px, int *incx, RealSc… in EIGEN_BLAS_FUNC() 133 else if(*incx==0) info = 5; in EIGEN_BLAS_FUNC() 142 Scalar* x_cpy = get_compact_vector(x,*n,*incx); in EIGEN_BLAS_FUNC()
|
D | level2_impl.h | 198 RealScalar *px, int *incx, RealScalar *pbeta, RealScalar *py, int *incy) in EIGEN_BLAS_FUNC() 214 else if(*incx==0) info = 10; in EIGEN_BLAS_FUNC() 227 Scalar* actual_x = get_compact_vector(x,actual_n,*incx); in EIGEN_BLAS_FUNC() 267 … *uplo, char *opa, char *diag, int *n, int *k, RealScalar *pa, int *lda, RealScalar *px, int *incx) 280 else if(*incx==0) info = 9; 289 Scalar* actual_x = get_compact_vector(x,actual_n,*incx); 329 …r *uplo, char *op, char *diag, int *n, int *k, RealScalar *pa, int *lda, RealScalar *px, int *incx) in EIGEN_BLAS_FUNC() 370 else if(*incx==0) info = 9; in EIGEN_BLAS_FUNC() 379 Scalar* actual_x = get_compact_vector(x,actual_n,*incx); in EIGEN_BLAS_FUNC() 387 if(actual_x!=x) delete[] copy_back(actual_x,x,actual_n,*incx); in EIGEN_BLAS_FUNC() [all …]
|
/external/eigen/Eigen/src/Core/products/ |
D | TriangularMatrixVector_MKL.h | 108 MKL_INT m, n, lda, incx, incy; \ 117 incx = 1; \ 126 MKLPREFIX##trmv(&uplo, &trans, &diag, &n, (const MKLTYPE*)_lhs, &lda, (MKLTYPE*)x, &incx); \ 129 MKLPREFIX##axpy(&n, &alpha_,(const MKLTYPE*)x, &incx, (MKLTYPE*)_res, &incy); \ 148 …MKLPREFIX##gemv(&trans, &m, &n, &alpha_, (const MKLTYPE*)a, &lda, (const MKLTYPE*)x, &incx, &beta_… 193 MKL_INT m, n, lda, incx, incy; \ 202 incx = 1; \ 211 MKLPREFIX##trmv(&uplo, &trans, &diag, &n, (const MKLTYPE*)_lhs, &lda, (MKLTYPE*)x, &incx); \ 214 MKLPREFIX##axpy(&n, &alpha_,(const MKLTYPE*)x, &incx, (MKLTYPE*)_res, &incy); \ 233 …MKLPREFIX##gemv(&trans, &n, &m, &alpha_, (const MKLTYPE*)a, &lda, (const MKLTYPE*)x, &incx, &beta_…
|
D | SelfadjointMatrixVector_MKL.h | 88 MKL_INT n=size, lda=lhsStride, incx=rhsIncr, incy=1; \ 96 Map<const SYMVVector, 0, InnerStride<> > map_x(_rhs,size,1,InnerStride<>(incx)); \ 99 incx=1; \ 101 …MKLFUNC(&uplo, &n, &alpha_, (const MKLTYPE*)lhs, &lda, (const MKLTYPE*)x_ptr, &incx, &beta_, (MKLT…
|
D | GeneralMatrixVector_MKL.h | 101 MKL_INT m=rows, n=cols, lda=lhsStride, incx=rhsIncr, incy=resIncr; \ 113 Map<const GEMVVector, 0, InnerStride<> > map_x(rhs,cols,1,InnerStride<>(incx)); \ 116 incx=1; \ 118 …MKLPREFIX##gemv(&trans, &m, &n, &alpha_, (const MKLTYPE*)lhs, &lda, (const MKLTYPE*)x_ptr, &incx, …
|
/external/llvm/test/Transforms/LoopRotate/ |
D | PhiSelfRefernce-1.ll | 4 define void @snrm2(i32 %incx) { 31 %sx_addr.5 = getelementptr float* %sx_addr.2.pn, i32 %incx ; <float*> [#uses=1]
|
/external/llvm/test/Transforms/GVN/ |
D | 2008-02-13-NewPHI.ll | 4 define i32 @sscal(i32 %n, double %sa1, float* %sx, i32 %incx) {
|