/external/eigen/blas/ |
D | level1_cplx_impl.h | 40 int EIGEN_BLAS_FUNC(dotcw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar… 54 if(*incx==1 && *incy==1) *res = (make_vector(x,*n).dot(make_vector(y,*n))); 55 else if(*incx>0 && *incy>0) *res = (make_vector(x,*n,*incx).dot(make_vector(y,*n,*incy))); 56 …else if(*incx<0 && *incy>0) *res = (make_vector(x,*n,-*incx).reverse().dot(make_vector(y,*n,*incy)… 57 …else if(*incx>0 && *incy<0) *res = (make_vector(x,*n,*incx).dot(make_vector(y,*n,-*incy).reverse()… 58 …else if(*incx<0 && *incy<0) *res = (make_vector(x,*n,-*incx).reverse().dot(make_vector(y,*n,-*incy… 63 int EIGEN_BLAS_FUNC(dotuw)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar… 76 if(*incx==1 && *incy==1) *res = (make_vector(x,*n).cwiseProduct(make_vector(y,*n))).sum(); 77 …else if(*incx>0 && *incy>0) *res = (make_vector(x,*n,*incx).cwiseProduct(make_vector(y,*n,*incy)))… 78 …else if(*incx<0 && *incy>0) *res = (make_vector(x,*n,-*incx).reverse().cwiseProduct(make_vector(y,… [all …]
|
D | level1_impl.h | 12 …, const RealScalar *palpha, const RealScalar *px, const int *incx, RealScalar *py, const int *incy) in EIGEN_BLAS_FUNC() 20 if(*incx==1 && *incy==1) make_vector(y,*n) += alpha * make_vector(x,*n); in EIGEN_BLAS_FUNC() 21 else if(*incx>0 && *incy>0) make_vector(y,*n,*incy) += alpha * make_vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 22 else if(*incx>0 && *incy<0) make_vector(y,*n,-*incy).reverse() += alpha * make_vector(x,*n,*incx); in EIGEN_BLAS_FUNC() 23 else if(*incx<0 && *incy>0) make_vector(y,*n,*incy) += alpha * make_vector(x,*n,-*incx).reverse(); in EIGEN_BLAS_FUNC() 24 …else if(*incx<0 && *incy<0) make_vector(y,*n,-*incy).reverse() += alpha * make_vector(x,*n,-*incx)… 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() 42 if(*incy<0) y = y - (*n-1)*(*incy); in EIGEN_BLAS_FUNC() 47 y += *incy; in EIGEN_BLAS_FUNC() [all …]
|
D | double.cpp | 22 double BLASFUNC(dsdot)(int* n, float* x, int* incx, float* y, int* incy) in BLASFUNC() 26 …if(*incx==1 && *incy==1) return (make_vector(x,*n).cast<double>().cwiseProduct(make_vector(y,*n… in BLASFUNC() 27 …else if(*incx>0 && *incy>0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vecto… in BLASFUNC() 28 …else if(*incx<0 && *incy>0) return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct… in BLASFUNC() 29 …else if(*incx>0 && *incy<0) return (make_vector(x,*n,*incx).cast<double>().cwiseProduct(make_vecto… in BLASFUNC() 30 …else if(*incx<0 && *incy<0) return (make_vector(x,*n,-*incx).reverse().cast<double>().cwiseProduct… in BLASFUNC()
|
D | level1_real_impl.h | 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 (make_vector(x,*n).cwiseProduct(make_vector(y,*n))).sum(); in EIGEN_BLAS_FUNC() 37 …else if(*incx>0 && *incy>0) return (make_vector(x,*n,*incx).cwiseProduct(make_vector(y,*n,*incy)))… in EIGEN_BLAS_FUNC() 38 …else if(*incx<0 && *incy>0) return (make_vector(x,*n,-*incx).reverse().cwiseProduct(make_vector(y,… in EIGEN_BLAS_FUNC() 39 …else if(*incx>0 && *incy<0) return (make_vector(x,*n,*incx).cwiseProduct(make_vector(y,*n,-*incy).… in EIGEN_BLAS_FUNC() 40 …else if(*incx<0 && *incy<0) return (make_vector(x,*n,-*incx).reverse().cwiseProduct(make_vector(y,… in EIGEN_BLAS_FUNC() 57 int EIGEN_BLAS_FUNC(rot)(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *… in EIGEN_BLAS_FUNC() 68 StridedVectorType vy(make_vector(y,*n,std::abs(*incy))); in EIGEN_BLAS_FUNC() 73 …if(*incx<0 && *incy>0) internal::apply_rotation_in_the_plane(rvx, vy, JacobiRotation<Scalar>(c,s)); in EIGEN_BLAS_FUNC() 74 …else if(*incx>0 && *incy<0) internal::apply_rotation_in_the_plane(vx, rvy, JacobiRotation<Scalar>(… in EIGEN_BLAS_FUNC()
|
D | level2_cplx_impl.h | 20 … const RealScalar *px, const int *incx, const RealScalar *pbeta, RealScalar *py, const int *incy) in EIGEN_BLAS_FUNC() 42 else if(*incy==0) info = 10; in EIGEN_BLAS_FUNC() 50 Scalar* actual_y = get_compact_vector(y,*n,*incy); in EIGEN_BLAS_FUNC() 68 if(actual_y!=y) delete[] copy_back(actual_y,y,*n,*incy); in EIGEN_BLAS_FUNC() 149 … int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pap) in EIGEN_BLAS_FUNC() 168 else if(*incy==0) info = 7; in EIGEN_BLAS_FUNC() 176 Scalar* y_cpy = get_compact_vector(y, *n, *incy); in EIGEN_BLAS_FUNC() 244 …t *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pa, in… in EIGEN_BLAS_FUNC() 263 else if(*incy==0) info = 7; in EIGEN_BLAS_FUNC() 272 Scalar* y_cpy = get_compact_vector(y, *n, *incy); in EIGEN_BLAS_FUNC() [all …]
|
D | level2_real_impl.h | 14 … const RealScalar *px, const int *incx, const RealScalar *pbeta, RealScalar *py, const int *incy) in EIGEN_BLAS_FUNC() 36 else if(*incy==0) info = 10; in EIGEN_BLAS_FUNC() 44 Scalar* actual_y = get_compact_vector(y,*n,*incy); in EIGEN_BLAS_FUNC() 59 if(actual_y!=y) delete[] copy_back(actual_y,y,*n,*incy); in EIGEN_BLAS_FUNC() 105 …, const RealScalar *px, const int *incx, const RealScalar *py, const int *incy, RealScalar *pc, co… in EIGEN_BLAS_FUNC() 124 else if(*incy==0) info = 7; in EIGEN_BLAS_FUNC() 133 const Scalar* y_cpy = get_compact_vector(y,*n,*incy); in EIGEN_BLAS_FUNC() 230 … int *n, RealScalar *palpha, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pap) in EIGEN_BLAS_FUNC() 249 else if(*incy==0) info = 7; in EIGEN_BLAS_FUNC() 257 Scalar* y_cpy = get_compact_vector(y, *n, *incy); in EIGEN_BLAS_FUNC() [all …]
|
/external/eigen/blas/f2c/ |
D | dspmv.c | 17 doublereal *y, integer *incy, ftnlen uplo_len) in dspmv_() argument 147 } else if (*incy == 0) { in dspmv_() 168 if (*incy > 0) { in dspmv_() 171 ky = 1 - (*n - 1) * *incy; in dspmv_() 180 if (*incy == 1) { in dspmv_() 200 iy += *incy; in dspmv_() 207 iy += *incy; in dspmv_() 221 if (*incx == 1 && *incy == 1) { in dspmv_() 252 iy += *incy; in dspmv_() 257 jy += *incy; in dspmv_() [all …]
|
D | sspmv.c | 16 real *x, integer *incx, real *beta, real *y, integer *incy, ftnlen in sspmv_() argument 147 } else if (*incy == 0) { in sspmv_() 168 if (*incy > 0) { in sspmv_() 171 ky = 1 - (*n - 1) * *incy; in sspmv_() 180 if (*incy == 1) { in sspmv_() 200 iy += *incy; in sspmv_() 207 iy += *incy; in sspmv_() 221 if (*incx == 1 && *incy == 1) { in sspmv_() 252 iy += *incy; in sspmv_() 257 jy += *incy; in sspmv_() [all …]
|
D | complexdots.c | 22 *incx, complex *cy, integer *incy) in cdotc_() argument 33 cdotcw_(n, &cx[1], incx, &cy[1], incy, &res); in cdotc_() 38 *incx, complex *cy, integer *incy) in cdotu_() argument 49 cdotuw_(n, &cx[1], incx, &cy[1], incy, &res); in cdotu_() 54 doublecomplex *cy, integer *incy) in zdotc_() argument 65 zdotcw_(n, &cx[1], incx, &cy[1], incy, &res); in zdotc_() 70 doublecomplex *cy, integer *incy) in zdotu_() argument 81 zdotuw_(n, &cx[1], incx, &cy[1], incy, &res); in zdotu_()
|
D | ssbmv.c | 17 integer *incy, ftnlen uplo_len) in ssbmv_() argument 190 } else if (*incy == 0) { in ssbmv_() 211 if (*incy > 0) { in ssbmv_() 214 ky = 1 - (*n - 1) * *incy; in ssbmv_() 223 if (*incy == 1) { in ssbmv_() 243 iy += *incy; in ssbmv_() 250 iy += *incy; in ssbmv_() 264 if (*incx == 1 && *incy == 1) { in ssbmv_() 298 iy += *incy; in ssbmv_() 304 jy += *incy; in ssbmv_() [all …]
|
D | dsbmv.c | 17 doublereal *beta, doublereal *y, integer *incy, ftnlen uplo_len) in dsbmv_() argument 188 } else if (*incy == 0) { in dsbmv_() 209 if (*incy > 0) { in dsbmv_() 212 ky = 1 - (*n - 1) * *incy; in dsbmv_() 221 if (*incy == 1) { in dsbmv_() 241 iy += *incy; in dsbmv_() 248 iy += *incy; in dsbmv_() 262 if (*incx == 1 && *incy == 1) { in dsbmv_() 296 iy += *incy; in dsbmv_() 302 jy += *incy; in dsbmv_() [all …]
|
D | drotm.c | 16 doublereal *dy, integer *incy, doublereal *dparam) in drotm_() argument 99 if (! (*incx == *incy && *incx > 0)) { in drotm_() 158 if (*incy < 0) { in drotm_() 159 ky = (1 - *n) * *incy + 1; in drotm_() 179 ky += *incy; in drotm_() 193 ky += *incy; in drotm_() 209 ky += *incy; in drotm_()
|
D | srotm.c | 16 integer *incy, real *sparam) in srotm_() argument 100 if (! (*incx == *incy && *incx > 0)) { in srotm_() 159 if (*incy < 0) { in srotm_() 160 ky = (1 - *n) * *incy + 1; in srotm_() 180 ky += *incy; in srotm_() 194 ky += *incy; in srotm_() 210 ky += *incy; in srotm_()
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_blas.cc | 478 DeviceMemory<float> *y, int incy) { in DoBlasAxpy() argument 482 GpuMemory(x), incx, GpuMemoryMutable(y), incy); in DoBlasAxpy() 487 DeviceMemory<double> *y, int incy) { in DoBlasAxpy() argument 491 GpuMemory(x), incx, GpuMemoryMutable(y), incy); in DoBlasAxpy() 497 DeviceMemory<std::complex<float>> *y, int incy) { in DoBlasAxpy() argument 500 complex_cast(alpha), complex_cast(x), incx, complex_cast(y), incy); in DoBlasAxpy() 506 DeviceMemory<std::complex<double>> *y, int incy) { in DoBlasAxpy() argument 509 complex_cast(alpha), complex_cast(x), incx, complex_cast(y), incy); in DoBlasAxpy() 514 DeviceMemory<float> *y, int incy) { in DoBlasCopy() argument 517 GpuMemory(x), incx, GpuMemoryMutable(y), incy); in DoBlasCopy() [all …]
|
/external/tensorflow/tensorflow/stream_executor/ |
D | blas.h | 266 DeviceMemory<float> *y, int incy) = 0; 269 DeviceMemory<double> *y, int incy) = 0; 273 DeviceMemory<std::complex<float>> *y, int incy) = 0; 277 DeviceMemory<std::complex<double>> *y, int incy) = 0; 282 DeviceMemory<float> *y, int incy) = 0; 285 DeviceMemory<double> *y, int incy) = 0; 288 DeviceMemory<std::complex<float>> *y, int incy) = 0; 291 DeviceMemory<std::complex<double>> *y, int incy) = 0; 296 const DeviceMemory<float> &y, int incy, 300 const DeviceMemory<double> &y, int incy, [all …]
|
D | stream.cc | 1514 DeviceMemory<float> *y, int incy) { in ThenBlasAxpy() argument 1516 PARAM(incy)); in ThenBlasAxpy() 1522 y, incy); in ThenBlasAxpy() 1527 DeviceMemory<double> *y, int incy) { in ThenBlasAxpy() argument 1529 PARAM(incy)); in ThenBlasAxpy() 1535 y, incy); in ThenBlasAxpy() 1541 int incy) { in ThenBlasAxpy() argument 1543 PARAM(incy)); in ThenBlasAxpy() 1550 y, incy); in ThenBlasAxpy() 1556 int incy) { in ThenBlasAxpy() argument [all …]
|
/external/cblas/testing/ |
D | c_cblas2.c | 14 const void *beta, void *y, int *incy) { in F77_cgemv() argument 30 beta, y, *incy ); in F77_cgemv() 35 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy ); in F77_cgemv() 38 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy ); in F77_cgemv() 44 CBLAS_TEST_COMPLEX *beta, CBLAS_TEST_COMPLEX *y, int *incy) { in F77_cgbmv() argument 77 *incx, beta, y, *incy ); in F77_cgbmv() 82 *incx, beta, y, *incy ); in F77_cgbmv() 85 *incx, beta, y, *incy ); in F77_cgbmv() 89 CBLAS_TEST_COMPLEX *x, int *incx, CBLAS_TEST_COMPLEX *y, int *incy, in F77_cgeru() argument 103 cblas_cgeru( CblasRowMajor, *m, *n, alpha, x, *incx, y, *incy, A, LDA ); in F77_cgeru() [all …]
|
D | c_zblas2.c | 14 const void *beta, void *y, int *incy) { in F77_zgemv() argument 30 beta, y, *incy ); in F77_zgemv() 35 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy ); in F77_zgemv() 38 *m, *n, alpha, a, *lda, x, *incx, beta, y, *incy ); in F77_zgemv() 44 CBLAS_TEST_ZOMPLEX *beta, CBLAS_TEST_ZOMPLEX *y, int *incy) { in F77_zgbmv() argument 77 *incx, beta, y, *incy ); in F77_zgbmv() 82 *incx, beta, y, *incy ); in F77_zgbmv() 85 *incx, beta, y, *incy ); in F77_zgbmv() 89 CBLAS_TEST_ZOMPLEX *x, int *incx, CBLAS_TEST_ZOMPLEX *y, int *incy, in F77_zgeru() argument 103 cblas_zgeru( CblasRowMajor, *m, *n, alpha, x, *incx, y, *incy, A, LDA ); in F77_zgeru() [all …]
|
D | c_sblas2.c | 13 float *y, int *incy ) { in F77_sgemv() argument 27 *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy ); in F77_sgemv() 32 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy ); in F77_sgemv() 35 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy ); in F77_sgemv() 39 float *y, int *incy, float *a, int *lda ) { in F77_sger() argument 53 cblas_sger(CblasRowMajor, *m, *n, *alpha, x, *incx, y, *incy, A, LDA ); in F77_sger() 60 cblas_sger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda ); in F77_sger() 117 int *incy) { in F77_ssymv() argument 131 *beta, y, *incy ); in F77_ssymv() 136 *beta, y, *incy ); in F77_ssymv() [all …]
|
D | c_dblas2.c | 13 double *y, int *incy ) { in F77_dgemv() argument 27 *m, *n, *alpha, A, LDA, x, *incx, *beta, y, *incy ); in F77_dgemv() 32 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy ); in F77_dgemv() 35 *m, *n, *alpha, a, *lda, x, *incx, *beta, y, *incy ); in F77_dgemv() 39 double *y, int *incy, double *a, int *lda ) { in F77_dger() argument 53 cblas_dger(CblasRowMajor, *m, *n, *alpha, x, *incx, y, *incy, A, LDA ); in F77_dger() 60 cblas_dger( CblasColMajor, *m, *n, *alpha, x, *incx, y, *incy, a, *lda ); in F77_dger() 117 int *incy) { in F77_dsymv() argument 131 *beta, y, *incy ); in F77_dsymv() 136 *beta, y, *incy ); in F77_dsymv() [all …]
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_blas.cc | 611 DeviceMemory<float> *y, int incy) { in DoBlasInternalImpl() argument 614 GpuMemoryMutable(y), incy); in DoBlasInternalImpl() 619 DeviceMemory<double> *y, int incy) { in DoBlasInternalImpl() argument 622 GpuMemoryMutable(y), incy); in DoBlasInternalImpl() 628 DeviceMemory<std::complex<float>> *y, int incy) { in DoBlasInternalImpl() argument 633 GpuComplex(GpuMemoryMutable(y)), incy); in DoBlasInternalImpl() 639 DeviceMemory<std::complex<double>> *y, int incy) { in DoBlasInternalImpl() argument 644 GpuComplex(GpuMemoryMutable(y)), incy); in DoBlasInternalImpl() 649 DeviceMemory<float> *y, int incy) { in DoBlasInternalImpl() argument 652 incy); in DoBlasInternalImpl() [all …]
|
D | cublas_9_0.inc | 107 int incy) { 112 return func_ptr(n, elemSize, x, incx, devicePtr, incy); 116 int incx, void *y, int incy) { 121 return func_ptr(n, elemSize, x, incx, y, incy); 146 void *devicePtr, int incy, 152 return func_ptr(n, elemSize, hostPtr, incx, devicePtr, incy, stream); 158 int incy, 164 return func_ptr(n, elemSize, devicePtr, incx, hostPtr, incy, stream); 252 cudaDataType yType, int incy, 260 return func_ptr(handle, n, x, xType, incx, y, yType, incy, result, resultType, [all …]
|
D | cublas_11_0.inc | 139 int incy) { 144 return func_ptr(n, elemSize, x, incx, devicePtr, incy); 148 int incx, void *y, int incy) { 153 return func_ptr(n, elemSize, x, incx, y, incy); 178 void *devicePtr, int incy, 184 return func_ptr(n, elemSize, hostPtr, incx, devicePtr, incy, stream); 190 int incy, 196 return func_ptr(n, elemSize, devicePtr, incx, hostPtr, incy, stream); 284 cudaDataType yType, int incy, 292 return func_ptr(handle, n, x, xType, incx, y, yType, incy, result, resultType, [all …]
|
D | cublas_10_1.inc | 139 int incy) { 144 return func_ptr(n, elemSize, x, incx, devicePtr, incy); 148 int incx, void *y, int incy) { 153 return func_ptr(n, elemSize, x, incx, y, incy); 178 void *devicePtr, int incy, 184 return func_ptr(n, elemSize, hostPtr, incx, devicePtr, incy, stream); 190 int incy, 196 return func_ptr(n, elemSize, devicePtr, incx, hostPtr, incy, stream); 284 cudaDataType yType, int incy, 292 return func_ptr(handle, n, x, xType, incx, y, yType, incy, result, resultType, [all …]
|
D | cublas_10_2.inc | 139 int incy) { 144 return func_ptr(n, elemSize, x, incx, devicePtr, incy); 148 int incx, void *y, int incy) { 153 return func_ptr(n, elemSize, x, incx, y, incy); 178 void *devicePtr, int incy, 184 return func_ptr(n, elemSize, hostPtr, incx, devicePtr, incy, stream); 190 int incy, 196 return func_ptr(n, elemSize, devicePtr, incx, hostPtr, incy, stream); 284 cudaDataType yType, int incy, 292 return func_ptr(handle, n, x, xType, incx, y, yType, incy, result, resultType, [all …]
|