/external/ruy/ruy/ |
D | side_pair.h | 26 enum class Side { enum 33 inline Side OtherSide(Side side) { in OtherSide() 34 return side == Side::kLhs ? Side::kRhs : Side::kLhs; in OtherSide() 44 const T& operator[](Side side) const { 52 T& operator[](Side side) { 61 static_assert(static_cast<int>(Side::kLhs) == 0, ""); 62 static_assert(static_cast<int>(Side::kRhs) == 1, "");
|
D | trace.h | 385 inline std::string str(Side s) { return s == Side::kLhs ? "LHS" : "RHS"; } in str() 554 ThreadLocalTrace()->Write("LHS: %s", str(params->src[Side::kLhs])); \ 555 ThreadLocalTrace()->Write("RHS: %s", str(params->src[Side::kRhs])); \ 573 str(params->packed_matrix[Side::kLhs])); \ 575 str(params->packed_matrix[Side::kRhs])); \ 577 params->run_pack[Side::kLhs]); \ 579 params->run_pack[Side::kRhs]); 669 block_map->small_block_dims[Side::kLhs], \ 670 block_map->small_block_dims[Side::kRhs], \ 671 block_map->small_block_dims[Side::kLhs] + \ [all …]
|
D | trmul.cc | 79 for (Side side : {Side::kLhs, Side::kRhs}) { in Run() 123 bool TryPack(Side side, int block, int start, int end, Tuning tuning) { in TryPack() 202 SidePair<int> next_runahead_block{block[Side::kLhs] + 1, in EnsurePacked() 203 block[Side::kRhs] + 1}; in EnsurePacked() 204 Side next_runahead_side = Side::kLhs; in EnsurePacked() 208 for (Side side : {Side::kLhs, Side::kRhs}) { in EnsurePacked() 217 const Side runahead_side = next_runahead_side; in EnsurePacked() 295 params->is_prepacked[Side::kLhs], params->is_prepacked[Side::kRhs]); in TrMul() 297 PEMat& packed_lhs = params->packed_matrix[Side::kLhs]; in TrMul() 298 PEMat& packed_rhs = params->packed_matrix[Side::kRhs]; in TrMul() [all …]
|
D | block_map.cc | 39 (*local_pos)[Side::kLhs] = square_index & ((1 << size_log2) - 1); in DecodeTraversalLinear() 40 (*local_pos)[Side::kRhs] = square_index >> size_log2; in DecodeTraversalLinear() 54 (*local_pos)[Side::kLhs] = n16 & 0xffff; in DecodeTraversalFractalZ() 55 (*local_pos)[Side::kRhs] = n16 >> 16; in DecodeTraversalFractalZ() 62 (*local_pos)[Side::kLhs] ^= (*local_pos)[Side::kRhs]; in DecodeTraversalFractalU() 86 (*local_pos)[Side::kLhs] = y; in DecodeTraversalFractalHilbert() 87 (*local_pos)[Side::kRhs] = x; in DecodeTraversalFractalHilbert() 122 for (Side side : {Side::kLhs, Side::kRhs}) { in GetBlockByIndex() 450 block_map->dims[Side::kLhs] = rows; in MakeBlockMap() 451 block_map->dims[Side::kRhs] = cols; in MakeBlockMap() [all …]
|
D | block_map_test.cc | 49 EXPECT_EQ(std::min(block_map.rectangularness_log2[Side::kLhs], in MakeBlockMapTuningTest() 50 block_map.rectangularness_log2[Side::kRhs]), in MakeBlockMapTuningTest() 52 EXPECT_EQ(std::max(block_map.rectangularness_log2[Side::kLhs], in MakeBlockMapTuningTest() 53 block_map.rectangularness_log2[Side::kRhs]), in MakeBlockMapTuningTest() 145 return std::abs(a[Side::kLhs] - b[Side::kLhs]) + in L1Distance() 146 std::abs(a[Side::kRhs] - b[Side::kRhs]); in L1Distance() 159 for (Side side : {Side::kLhs, Side::kRhs}) { in GetBlockByIndexSquareTest() 185 ++block_hit_counts[block_coords[Side::kLhs] + in GetBlockByIndexSquareTest() 186 num_blocks_per_side * block_coords[Side::kRhs]]; in GetBlockByIndexSquareTest()
|
D | prepare_packed_matrices.cc | 37 bool ShouldCache(const TrMulParams& params, Side side) { in ShouldCache() 41 const Side other_side = OtherSide(side); in ShouldCache() 71 for (Side side : {Side::kLhs, Side::kRhs}) { in PreparePackedMatrices()
|
D | create_trmul_params.h | 55 void CreatePackedMatrix(Side side, const KernelLayout& kernel_layout, in CreatePackedMatrix() 134 Side::kLhs, ToKernelLayout<LhsKernelLayout>(), params); 136 Side::kRhs, ToKernelLayout<RhsKernelLayout>(), params); 137 params->run_pack[Side::kLhs] = 139 params->run_pack[Side::kRhs] = 283 const Side channel_side = 284 mul_params->channel_dimension() == ChannelDimension::kRow ? Side::kLhs 285 : Side::kRhs; 327 const Side channel_side = 328 mul_params->channel_dimension() == ChannelDimension::kRow ? Side::kLhs [all …]
|
D | block_map.h | 131 void GetBlockMatrixCoords(Side side, const BlockMap& block_map, int block, 142 inline int NumBlocksPerSide(Side side, const BlockMap& block_map) { in NumBlocksPerSide() 156 block_map.rectangularness_log2[Side::kLhs] + in NumBlocks() 157 block_map.rectangularness_log2[Side::kRhs]); in NumBlocks()
|
/external/eigen/Eigen/src/Core/ |
D | SolveTriangular.h | 19 template<typename LhsScalar, typename RhsScalar, typename Index, int Side, int Mode, bool Conjugate… 22 template <typename Scalar, typename Index, int Side, int Mode, bool Conjugate, int TriStorageOrder,… 26 template<typename Lhs, typename Rhs, int Side> 31 … RhsIsVectorAtCompileTime = (Side==OnTheLeft ? Rhs::ColsAtCompileTime : Rhs::RowsAtCompileTime)==1 42 int Side, // can be OnTheLeft/OnTheRight 44 int Unrolling = trsolve_traits<Lhs,Rhs,Side>::Unrolling, 45 int RhsVectors = trsolve_traits<Lhs,Rhs,Side>::RhsVectors 49 template<typename Lhs, typename Rhs, int Side, int Mode> 50 struct triangular_solver_selector<Lhs,Rhs,Side,Mode,NoUnrolling,1> 71 …triangular_solve_vector<LhsScalar, RhsScalar, Index, Side, Mode, LhsProductTraits::NeedToConjugate, [all …]
|
/external/eigen/Eigen/src/Householder/ |
D | HouseholderSequence.h | 59 template<typename VectorsType, typename CoeffsType, int Side> 60 struct traits<HouseholderSequence<VectorsType,CoeffsType,Side> > 66 RowsAtCompileTime = Side==OnTheLeft ? traits<VectorsType>::RowsAtCompileTime 69 MaxRowsAtCompileTime = Side==OnTheLeft ? traits<VectorsType>::MaxRowsAtCompileTime 78 template<typename VectorsType, typename CoeffsType, int Side> 79 struct evaluator_traits<HouseholderSequence<VectorsType,CoeffsType,Side> > 80 : public evaluator_traits_base<HouseholderSequence<VectorsType,CoeffsType,Side> > 85 template<typename VectorsType, typename CoeffsType, int Side> 119 template<typename VectorsType, typename CoeffsType, int Side> class HouseholderSequence 120 : public EigenBase<HouseholderSequence<VectorsType,CoeffsType,Side> > [all …]
|
/external/cblas/src/ |
D | cblas_ssymm.c | 12 void cblas_ssymm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_ssymm() argument 44 if( Side == CblasRight) SD='R'; in cblas_ssymm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_ssymm() 49 "Illegal Side setting, %d\n", Side); in cblas_ssymm() 75 if( Side == CblasRight) SD='L'; in cblas_ssymm() 76 else if ( Side == CblasLeft ) SD='R'; in cblas_ssymm() 80 "Illegal Side setting, %d\n", Side); in cblas_ssymm()
|
D | cblas_csymm.c | 12 void cblas_csymm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_csymm() argument 44 if( Side == CblasRight) SD='R'; in cblas_csymm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_csymm() 48 cblas_xerbla(2, "cblas_csymm", "Illegal Side setting, %d\n", Side); in cblas_csymm() 74 if( Side == CblasRight) SD='L'; in cblas_csymm() 75 else if ( Side == CblasLeft ) SD='R'; in cblas_csymm() 78 cblas_xerbla(2, "cblas_csymm", "Illegal Side setting, %d\n", Side); in cblas_csymm()
|
D | cblas_zhemm.c | 12 void cblas_zhemm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_zhemm() argument 44 if( Side == CblasRight) SD='R'; in cblas_zhemm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_zhemm() 48 cblas_xerbla(2, "cblas_zhemm", "Illegal Side setting, %d\n", Side); in cblas_zhemm() 74 if( Side == CblasRight) SD='L'; in cblas_zhemm() 75 else if ( Side == CblasLeft ) SD='R'; in cblas_zhemm() 78 cblas_xerbla(2, "cblas_zhemm", "Illegal Side setting, %d\n", Side); in cblas_zhemm()
|
D | cblas_chemm.c | 12 void cblas_chemm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_chemm() argument 44 if( Side == CblasRight) SD='R'; in cblas_chemm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_chemm() 48 cblas_xerbla(2, "cblas_chemm", "Illegal Side setting, %d\n", Side); in cblas_chemm() 74 if( Side == CblasRight) SD='L'; in cblas_chemm() 75 else if ( Side == CblasLeft ) SD='R'; in cblas_chemm() 78 cblas_xerbla(2, "cblas_chemm", "Illegal Side setting, %d\n", Side); in cblas_chemm()
|
D | cblas_zsymm.c | 12 void cblas_zsymm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_zsymm() argument 44 if( Side == CblasRight) SD='R'; in cblas_zsymm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_zsymm() 48 cblas_xerbla(2, "cblas_zsymm", "Illegal Side setting, %d\n", Side); in cblas_zsymm() 74 if( Side == CblasRight) SD='L'; in cblas_zsymm() 75 else if ( Side == CblasLeft ) SD='R'; in cblas_zsymm() 78 cblas_xerbla(2, "cblas_zsymm", "Illegal Side setting, %d\n", Side); in cblas_zsymm()
|
D | cblas_dsymm.c | 12 void cblas_dsymm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_dsymm() argument 44 if( Side == CblasRight) SD='R'; in cblas_dsymm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_dsymm() 48 cblas_xerbla(2, "cblas_dsymm","Illegal Side setting, %d\n", Side); in cblas_dsymm() 74 if( Side == CblasRight) SD='L'; in cblas_dsymm() 75 else if ( Side == CblasLeft ) SD='R'; in cblas_dsymm() 78 cblas_xerbla(2, "cblas_dsymm","Illegal Side setting, %d\n", Side); in cblas_dsymm()
|
D | cblas_strmm.c | 12 void cblas_strmm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_strmm() argument 44 if( Side == CblasRight) SD='R'; in cblas_strmm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_strmm() 48 cblas_xerbla(2, "cblas_strmm","Illegal Side setting, %d\n", Side); in cblas_strmm() 95 if( Side == CblasRight) SD='L'; in cblas_strmm() 96 else if ( Side == CblasLeft ) SD='R'; in cblas_strmm() 99 cblas_xerbla(2, "cblas_strmm","Illegal Side setting, %d\n", Side); in cblas_strmm()
|
D | cblas_ctrmm.c | 12 void cblas_ctrmm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_ctrmm() argument 44 if( Side == CblasRight ) SD='R'; in cblas_ctrmm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_ctrmm() 48 cblas_xerbla(2, "cblas_ctrmm", "Illegal Side setting, %d\n", Side); in cblas_ctrmm() 90 if( Side == CblasRight ) SD='L'; in cblas_ctrmm() 91 else if ( Side == CblasLeft ) SD='R'; in cblas_ctrmm() 94 cblas_xerbla(2, "cblas_ctrmm", "Illegal Side setting, %d\n", Side); in cblas_ctrmm()
|
D | cblas_dtrsm.c | 12 void cblas_dtrsm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_dtrsm() argument 45 if ( Side == CblasRight) SD='R'; in cblas_dtrsm() 46 else if ( Side == CblasLeft ) SD='L'; in cblas_dtrsm() 49 cblas_xerbla(2, "cblas_dtrsm","Illegal Side setting, %d\n", Side); in cblas_dtrsm() 98 if ( Side == CblasRight) SD='L'; in cblas_dtrsm() 99 else if ( Side == CblasLeft ) SD='R'; in cblas_dtrsm() 102 cblas_xerbla(2, "cblas_dtrsm","Illegal Side setting, %d\n", Side); in cblas_dtrsm()
|
D | cblas_ztrsm.c | 12 void cblas_ztrsm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_ztrsm() argument 45 if( Side == CblasRight) SD='R'; in cblas_ztrsm() 46 else if ( Side == CblasLeft ) SD='L'; in cblas_ztrsm() 49 cblas_xerbla(2, "cblas_ztrsm", "Illegal Side setting, %d\n", Side); in cblas_ztrsm() 99 if( Side == CblasRight) SD='L'; in cblas_ztrsm() 100 else if ( Side == CblasLeft ) SD='R'; in cblas_ztrsm() 103 cblas_xerbla(2, "cblas_ztrsm", "Illegal Side setting, %d\n", Side); in cblas_ztrsm()
|
D | cblas_ztrmm.c | 12 void cblas_ztrmm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_ztrmm() argument 44 if( Side == CblasRight ) SD='R'; in cblas_ztrmm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_ztrmm() 48 cblas_xerbla(2, "cblas_ztrmm", "Illegal Side setting, %d\n", Side); in cblas_ztrmm() 95 if( Side == CblasRight ) SD='L'; in cblas_ztrmm() 96 else if ( Side == CblasLeft ) SD='R'; in cblas_ztrmm() 99 cblas_xerbla(2, "cblas_ztrmm", "Illegal Side setting, %d\n", Side); in cblas_ztrmm()
|
D | cblas_ctrsm.c | 12 void cblas_ctrsm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_ctrsm() argument 45 if( Side == CblasRight) SD='R'; in cblas_ctrsm() 46 else if ( Side == CblasLeft ) SD='L'; in cblas_ctrsm() 49 cblas_xerbla(2, "cblas_ctrsm", "Illegal Side setting, %d\n", Side); in cblas_ctrsm() 99 if( Side == CblasRight) SD='L'; in cblas_ctrsm() 100 else if ( Side == CblasLeft ) SD='R'; in cblas_ctrsm() 103 cblas_xerbla(2, "cblas_ctrsm", "Illegal Side setting, %d\n", Side); in cblas_ctrsm()
|
D | cblas_strsm.c | 12 void cblas_strsm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_strsm() argument 45 if( Side == CblasRight) SD='R'; in cblas_strsm() 46 else if ( Side == CblasLeft ) SD='L'; in cblas_strsm() 49 cblas_xerbla(2, "cblas_strsm", "Illegal Side setting, %d\n", Side); in cblas_strsm() 93 if( Side == CblasRight) SD='L'; in cblas_strsm() 94 else if ( Side == CblasLeft ) SD='R'; in cblas_strsm() 97 cblas_xerbla(2, "cblas_strsm", "Illegal Side setting, %d\n", Side); in cblas_strsm()
|
D | cblas_dtrmm.c | 12 void cblas_dtrmm(const enum CBLAS_ORDER Order, const enum CBLAS_SIDE Side, in cblas_dtrmm() argument 44 if( Side == CblasRight) SD='R'; in cblas_dtrmm() 45 else if ( Side == CblasLeft ) SD='L'; in cblas_dtrmm() 48 cblas_xerbla(2, "cblas_dtrmm","Illegal Side setting, %d\n", Side); in cblas_dtrmm() 95 if( Side == CblasRight) SD='L'; in cblas_dtrmm() 96 else if ( Side == CblasLeft ) SD='R'; in cblas_dtrmm() 99 cblas_xerbla(2, "cblas_dtrmm","Illegal Side setting, %d\n", Side); in cblas_dtrmm()
|
/external/eigen/Eigen/src/SparseCore/ |
D | SparsePermutation.h | 19 template<typename ExpressionType, int Side, bool Transposed> 20 struct permutation_matrix_product<ExpressionType, Side, Transposed, SparseShape> 30 MoveOuter = SrcStorageOrder==RowMajor ? Side==OnTheLeft : Side==OnTheRight 48 …sizes[((Side==OnTheLeft) ^ Transposed) ? jp : j] = StorageIndex(mat.innerVector(((Side==OnTheRight… 54 Index jsrc = ((Side==OnTheRight) ^ Transposed) ? jp : j; 55 Index jdst = ((Side==OnTheLeft) ^ Transposed) ? jp : j; 67 if((Side==OnTheLeft) ^ Transposed)
|