/external/deqp/framework/common/ |
D | tcuMatrix.hpp | 34 template <typename T, int Rows, int Cols> 43 SIZE = Cols, 45 COLS = Cols, 50 explicit Matrix (const T src[Rows*Cols]); 52 Matrix (const Matrix<T, Rows, Cols>& src); 55 Matrix<T, Rows, Cols>& operator= (const Matrix<T, Rows, Cols>& src); 56 Matrix<T, Rows, Cols>& operator*= (const Matrix<T, Rows, Cols>& src); 58 void setRow (int rowNdx, const Vector<T, Cols>& vec); 61 Vector<T, Cols> getRow (int ndx) const; 71 Array<T, Rows*Cols> getRowMajorData (void) const; [all …]
|
D | tcuMatrixUtil.hpp | 36 template <typename T, int Rows, int Cols> 37 Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat); 60 template <typename T, int Rows, int Cols> 61 inline Matrix<T, Cols, Rows> transpose (const Matrix<T, Rows, Cols>& mat) in transpose() 63 Matrix<T, Cols, Rows> res; in transpose() 65 for (int col = 0; col < Cols; col++) in transpose()
|
/external/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 169 Matrix(unsigned Rows, unsigned Cols) : in Matrix() argument 170 Rows(Rows), Cols(Cols), Data(new PBQPNum[Rows * Cols]) { in Matrix() 175 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() argument 176 : Rows(Rows), Cols(Cols), Data(new PBQPNum[Rows * Cols]) { in Matrix() 177 std::fill(Data, Data + (Rows * Cols), InitVal); in Matrix() 182 : Rows(M.Rows), Cols(M.Cols), Data(new PBQPNum[Rows * Cols]) { in Matrix() 183 std::copy(M.Data, M.Data + (Rows * Cols), Data); in Matrix() 188 : Rows(M.Rows), Cols(M.Cols), Data(M.Data) { in Matrix() 189 M.Rows = M.Cols = 0; in Matrix() 199 Rows = M.Rows; Cols = M.Cols; [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 128 Matrix(unsigned Rows, unsigned Cols) : in Matrix() argument 129 Rows(Rows), Cols(Cols), Data(llvm::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix() 134 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() argument 135 : Rows(Rows), Cols(Cols), in Matrix() 136 Data(llvm::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix() 137 std::fill(Data.get(), Data.get() + (Rows * Cols), InitVal); in Matrix() 142 : Rows(M.Rows), Cols(M.Cols), in Matrix() 143 Data(llvm::make_unique<PBQPNum []>(Rows * Cols)) { in Matrix() 144 std::copy(M.Data.get(), M.Data.get() + (Rows * Cols), Data.get()); in Matrix() 149 : Rows(M.Rows), Cols(M.Cols), Data(std::move(M.Data)) { in Matrix() [all …]
|
/external/eigen/test/ |
D | dense_storage.cpp | 14 template <typename T, int Rows, int Cols> 17 static const int Size = ((Rows==Dynamic || Cols==Dynamic) ? Dynamic : Rows*Cols); in dense_storage_copy() 18 typedef DenseStorage<T,Size, Rows,Cols, 0> DenseStorageType; in dense_storage_copy() 21 const int cols = (Cols==Dynamic) ? 3 : Cols; in dense_storage_copy() 34 template <typename T, int Rows, int Cols> 37 static const int Size = ((Rows==Dynamic || Cols==Dynamic) ? Dynamic : Rows*Cols); in dense_storage_assignment() 38 typedef DenseStorage<T,Size, Rows,Cols, 0> DenseStorageType; in dense_storage_assignment() 41 const int cols = (Cols==Dynamic) ? 3 : Cols; in dense_storage_assignment()
|
D | qr_colpivoting.cpp | 69 Cols = MatrixType::ColsAtCompileTime in cod_fixedsize() enumerator 72 int rank = internal::random<int>(1, (std::min)(int(Rows), int(Cols)) - 1); in cod_fixedsize() 73 Matrix<Scalar, Rows, Cols> matrix; in cod_fixedsize() 74 createRandomPIMatrixOfRank(rank, Rows, Cols, matrix); in cod_fixedsize() 75 CompleteOrthogonalDecomposition<Matrix<Scalar, Rows, Cols> > cod(matrix); in cod_fixedsize() 77 VERIFY(Cols - cod.rank() == cod.dimensionOfKernel()); in cod_fixedsize() 79 VERIFY(cod.isSurjective() == (rank == Cols)); in cod_fixedsize() 82 Matrix<Scalar, Cols, Cols2> exact_solution; in cod_fixedsize() 83 exact_solution.setRandom(Cols, Cols2); in cod_fixedsize() 85 Matrix<Scalar, Cols, Cols2> cod_solution = cod.solve(rhs); in cod_fixedsize() [all …]
|
D | product_small.cpp | 43 template<typename T, int Rows, int Cols, int Depth, int OC, int OA, int OB> 46 || (Cols ==1&&Depth!=1&&OB==RowMajor) 47 || (Depth==1&&Cols !=1&&OB==ColMajor) 48 || (Rows ==1&&Cols !=1&&OC==ColMajor) 49 || (Cols ==1&&Rows !=1&&OC==RowMajor)),void>::type 53 Matrix<T,Depth,Cols,OB> B(depth,cols); B.setRandom(); in test_lazy_single() 54 Matrix<T,Rows,Cols,OC> C(rows,cols); C.setRandom(); in test_lazy_single() 55 Matrix<T,Rows,Cols,OC> D(C); in test_lazy_single() 59 template<typename T, int Rows, int Cols, int Depth, int OC, int OA, int OB> 62 || (Cols ==1&&Depth!=1&&OB==RowMajor) [all …]
|
D | qr.cpp | 35 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime }; in qr_fixedsize() enumerator 37 Matrix<Scalar,Rows,Cols> m1 = Matrix<Scalar,Rows,Cols>::Random(); in qr_fixedsize() 38 HouseholderQR<Matrix<Scalar,Rows,Cols> > qr(m1); in qr_fixedsize() 40 Matrix<Scalar,Rows,Cols> r = qr.matrixQR(); in qr_fixedsize() 42 for(int i = 0; i < Rows; i++) for(int j = 0; j < Cols; j++) if(i>j) r(i,j) = Scalar(0); in qr_fixedsize() 46 Matrix<Scalar,Cols,Cols2> m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2); in qr_fixedsize() 48 m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2); in qr_fixedsize()
|
D | permutationmatrices.cpp | 19 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime, in permutationmatrices() enumerator 24 typedef PermutationMatrix<Cols> RightPermutationType; in permutationmatrices() 25 typedef Matrix<int, Cols, 1> RightPermutationVectorType; in permutationmatrices() 47 Matrix<Scalar,Cols,Cols> rm(rp); in permutationmatrices() 114 Matrix<Scalar, Cols, Cols> A = rp; in permutationmatrices() 115 Matrix<Scalar, Cols, Cols> B = rp.transpose(); in permutationmatrices()
|
D | product_trsolve.cpp | 30 template<typename Scalar,int Size, int Cols> void trsolve(int size=Size,int cols=Cols) in trsolve() 38 rowmajor = Cols==1 ? ColMajor : RowMajor }; in trsolve() 39 Matrix<Scalar,Size,Cols,colmajor> cmRhs(size,cols); in trsolve() 40 Matrix<Scalar,Size,Cols,rowmajor> rmRhs(size,cols); in trsolve()
|
D | diagonalmatrices.cpp | 16 enum { Rows = MatrixType::RowsAtCompileTime, Cols = MatrixType::ColsAtCompileTime }; in diagonalmatrices() enumerator 18 typedef Matrix<Scalar, 1, Cols> RowVectorType; in diagonalmatrices() 22 typedef DiagonalMatrix<Scalar, Cols> RightDiagonalMatrix; in diagonalmatrices() 23 typedef Matrix<Scalar, Rows==Dynamic?Dynamic:2*Rows, Cols==Dynamic?Dynamic:2*Cols> BigMatrix; in diagonalmatrices()
|
/external/gemmlowp/internal/ |
D | simd_wrappers.h | 152 static constexpr int Cols = ResultBlockType::kCols; 160 static_assert(LhsCols == Cols || LhsCols == 1, ""); 161 static_assert(RhsCols == Cols || RhsCols == 1, ""); 169 for (int c = 0; c < Cols; c++) { 170 const int lhs_c = LhsCols == Cols ? c : 0; 171 const int rhs_c = RhsCols == Cols ? c : 0; 201 static constexpr int Cols = ResultBlockType::kCols; 215 static_assert(LhsCols == Cols || LhsCols == 1, ""); 216 static_assert(RhsCols == Cols || RhsCols == 1, ""); 217 for (int c = 0; c < Cols; c++) { [all …]
|
D | simd_wrappers_common_neon_sse.h | 502 template <int Rows, int Cols> 504 RegBlockInt32<Rows, Cols>> { 507 RegBlockInt32<Rows, Cols>* acc) { 512 for (int j = 0; j < Cols; j++) { 521 template <int Cols> 522 struct BroadcastMulAddImpl<RegBlockInt32<1, Cols>, RegBlockInt32<1, 1>, 523 RegBlockInt32<1, Cols>> { 524 static void Run(const RegBlockInt32<1, Cols>& lhs, 525 const RegBlockInt32<1, 1>& rhs, RegBlockInt32<1, Cols>* acc) { 527 for (int i = 0; i < RegBlockInt32<1, Cols>::kRegisterCount; i++) { [all …]
|
D | output.h | 91 template <int Rows, int Cols, VectorShape Shape> 93 RegisterBlock<std::int32_t, Rows, Cols>> { 94 typedef RegisterBlock<std::int32_t, Rows, Cols> InputType; 95 typedef RegisterBlock<std::int32_t, Rows, Cols> OutputType; 228 template <int Rows, int Cols, typename VectorType> 230 RegisterBlock<std::int32_t, Rows, Cols>> { 231 typedef RegisterBlock<std::int32_t, Rows, Cols> InputType; 232 typedef RegisterBlock<std::int32_t, Rows, Cols> OutputType; 428 template <typename ScalarType, int Rows, int Cols, typename DstType> 429 struct StoreFinalOutputImpl<RegisterBlock<ScalarType, Rows, Cols>, DstType> { [all …]
|
/external/dng_sdk/source/ |
D | dng_matrix.cpp | 114 Cols () != m.Cols ()) in operator ==() 122 for (uint32 k = 0; k < Cols (); k++) in operator ==() 148 if (Rows () != Cols ()) in IsDiagonal() 154 for (uint32 k = 0; k < Cols (); k++) in IsDiagonal() 188 for (uint32 k = 0; k < Cols (); k++) in MaxEntry() 214 for (uint32 k = 0; k < Cols (); k++) in MinEntry() 231 for (uint32 k = 0; k < Cols (); k++) in Scale() 248 for (uint32 k = 0; k < Cols (); k++) in Round() 273 for (uint32 k = 0; k < Cols (); k++) in SafeRound() 308 Cols () != 3) in dng_matrix_3by3() [all …]
|
D | dng_camera_profile.cpp | 228 cameraOne.SetIdentity (m.Cols ()); in NormalizeForwardMatrix() 297 return fColorMatrix1.Cols () == 3 && in HasColorMatrix1() 307 return fColorMatrix2.Cols () == 3 && in HasColorMatrix2() 421 if (fForwardMatrix1.Rows () == fColorMatrix1.Cols () && in CalculateFingerprint() 422 fForwardMatrix1.Cols () == fColorMatrix1.Rows ()) in CalculateFingerprint() 430 fReductionMatrix1.Cols () == colorChannels * 3) in CalculateFingerprint() 444 if (fForwardMatrix2.Rows () == fColorMatrix2.Cols () && in CalculateFingerprint() 445 fForwardMatrix2.Cols () == fColorMatrix2.Rows ()) in CalculateFingerprint() 453 fReductionMatrix2.Cols () == colorChannels * 3) in CalculateFingerprint() 568 cameraOne.SetIdentity (m.Cols ()); in ValidForwardMatrix() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fShaderMatrixTests.cpp | 392 template <typename T, int Rows, int Cols> 393 tcu::Matrix<T, Rows, Cols> matrixCompMult (const tcu::Matrix<T, Rows, Cols>& a, const tcu::Matrix<T… in matrixCompMult() 395 tcu::Matrix<T, Rows, Cols> retVal; in matrixCompMult() 398 for (int c = 0; c < Cols; ++c) in matrixCompMult() 406 template <typename T, int Rows, int Cols> 407 tcu::Matrix<T, Rows, Cols> negate (const tcu::Matrix<T, Rows, Cols>& mat) in negate() 409 tcu::Matrix<T, Rows, Cols> retVal; in negate() 412 for (int c = 0; c < Cols; ++c) in negate() 420 template <typename T, int Rows, int Cols> 421 tcu::Matrix<T, Rows, Cols> increment (const tcu::Matrix<T, Rows, Cols>& mat) in increment() [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorImagePatch.h | 30 template<DenseIndex Rows, DenseIndex Cols, typename XprType> 31 struct traits<TensorImagePatchOp<Rows, Cols, XprType> > : public traits<XprType> 43 template<DenseIndex Rows, DenseIndex Cols, typename XprType> 44 struct eval<TensorImagePatchOp<Rows, Cols, XprType>, Eigen::Dense> 46 typedef const TensorImagePatchOp<Rows, Cols, XprType>& type; 49 template<DenseIndex Rows, DenseIndex Cols, typename XprType> 50 struct nested<TensorImagePatchOp<Rows, Cols, XprType>, 1, typename eval<TensorImagePatchOp<Rows, Co… 52 typedef TensorImagePatchOp<Rows, Cols, XprType> type; 57 template<DenseIndex Rows, DenseIndex Cols, typename XprType> 58 class TensorImagePatchOp : public TensorBase<TensorImagePatchOp<Rows, Cols, XprType>, ReadOnlyAcces… [all …]
|
D | TensorVolumePatch.h | 25 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols, typename XprType> 26 struct traits<TensorVolumePatchOp<Planes, Rows, Cols, XprType> > : public traits<XprType> 38 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols, typename XprType> 39 struct eval<TensorVolumePatchOp<Planes, Rows, Cols, XprType>, Eigen::Dense> 41 typedef const TensorVolumePatchOp<Planes, Rows, Cols, XprType>& type; 44 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols, typename XprType> 45 …nested<TensorVolumePatchOp<Planes, Rows, Cols, XprType>, 1, typename eval<TensorVolumePatchOp<Plan… 47 typedef TensorVolumePatchOp<Planes, Rows, Cols, XprType> type; 52 template<DenseIndex Planes, DenseIndex Rows, DenseIndex Cols, typename XprType> 53 class TensorVolumePatchOp : public TensorBase<TensorVolumePatchOp<Planes, Rows, Cols, XprType>, Rea… [all …]
|
/external/deqp/modules/glshared/ |
D | glsBuiltinPrecisionTests.cpp | 503 template <typename T, int Rows, int Cols> 504 struct Traits<Matrix<T, Rows, Cols> > : 505 ContainerTraits<Matrix<T, Rows, Cols>, Matrix<typename Traits<T>::IVal, Rows, Cols> > 933 template <typename T, int Rows, int Cols> 934 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {}; 1007 template<int Rows, int Cols> 1008 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left, 1009 const ExprP<Matrix<float, Rows, Cols> >& right); 1010 template<int Rows, int Cols> 1011 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left, [all …]
|
/external/eigen/Eigen/src/Core/ |
D | NumTraits.h | 193 template<typename Scalar, int Rows, int Cols, int Options, int MaxRows, int MaxCols> 194 struct NumTraits<Array<Scalar, Rows, Cols, Options, MaxRows, MaxCols> > 196 typedef Array<Scalar, Rows, Cols, Options, MaxRows, MaxCols> ArrayType; 198 typedef Array<RealScalar, Rows, Cols, Options, MaxRows, MaxCols> Real; 200 typedef Array<NonIntegerScalar, Rows, Cols, Options, MaxRows, MaxCols> NonInteger;
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderMatrixTests.cpp | 618 template <typename T, int Rows, int Cols> 619 tcu::Matrix<T, Rows, Cols> matrixCompMult (const tcu::Matrix<T, Rows, Cols>& a, const tcu::Matrix<T… in matrixCompMult() 621 tcu::Matrix<T, Rows, Cols> retVal; in matrixCompMult() 624 for (int c = 0; c < Cols; ++c) in matrixCompMult() 632 template <typename T, int Rows, int Cols> 633 tcu::Matrix<T, Cols, Rows> outerProduct (const tcu::Vector<T, Cols>& a, const tcu::Vector<T, Rows>&… in outerProduct() 635 tcu::Matrix<T, Rows, Cols> retVal; in outerProduct() 638 for (int c = 0; c < Cols; ++c) in outerProduct() 825 template <typename T, int Rows, int Cols> 826 tcu::Matrix<T, Rows, Cols> negate (const tcu::Matrix<T, Rows, Cols>& mat) in negate() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderMatrixTests.cpp | 623 template <typename T, int Rows, int Cols> 624 tcu::Matrix<T, Rows, Cols> matrixCompMult (const tcu::Matrix<T, Rows, Cols>& a, const tcu::Matrix<T… in matrixCompMult() 626 tcu::Matrix<T, Rows, Cols> retVal; in matrixCompMult() 629 for (int c = 0; c < Cols; ++c) in matrixCompMult() 637 template <typename T, int Rows, int Cols> 638 tcu::Matrix<T, Cols, Rows> outerProduct (const tcu::Vector<T, Cols>& a, const tcu::Vector<T, Rows>&… in outerProduct() 640 tcu::Matrix<T, Rows, Cols> retVal; in outerProduct() 643 for (int c = 0; c < Cols; ++c) in outerProduct() 830 template <typename T, int Rows, int Cols> 831 tcu::Matrix<T, Rows, Cols> negate (const tcu::Matrix<T, Rows, Cols>& mat) in negate() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderBuiltinPrecisionTests.cpp | 756 template <typename T, int Rows, int Cols> 757 struct Traits<Matrix<T, Rows, Cols> > : 758 ContainerTraits<Matrix<T, Rows, Cols>, Matrix<typename Traits<T>::IVal, Rows, Cols> > 1247 template <typename T, int Rows, int Cols> 1248 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {}; 1328 template<int Rows, int Cols, typename T> 1329 ExprP<Vector<T, Rows> > operator* (const ExprP<Vector<T, Cols> >& left, 1330 const ExprP<Matrix<T, Rows, Cols> >& right); 1331 template<int Rows, int Cols, typename T> 1332 ExprP<Vector<T, Cols> > operator* (const ExprP<Matrix<T, Rows, Cols> >& left, [all …]
|
/external/pdfium/third_party/lcms/ |
D | 0015-cmsStageAllocMatrix-param-swap.patch | 9 - NewElem ->Offset = (cmsFloat64Number*) _cmsCalloc(ContextID, Cols, sizeof(cmsFloat64Number… 16 - for (i=0; i < Cols; i++) {
|