Home
last modified time | relevance | path

Searched refs:Cols (Results 1 – 25 of 56) sorted by relevance

123

/external/deqp/framework/common/
DtcuMatrix.hpp34 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 …]
DtcuMatrixUtil.hpp36 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/
DMath.h169 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/eigen/test/
Ddense_storage.cpp14 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()
Dqr_colpivoting.cpp69 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 …]
Dproduct_small.cpp43 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 …]
Dqr.cpp35 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()
Dpermutationmatrices.cpp19 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()
Dproduct_trsolve.cpp30 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()
Ddiagonalmatrices.cpp16 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/
Dsimd_wrappers.h152 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 …]
Dsimd_wrappers_common_neon_sse.h502 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 …]
Doutput.h91 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/
Ddng_matrix.cpp114 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 …]
Ddng_camera_profile.cpp228 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/
Des2fShaderMatrixTests.cpp392 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/
DTensorImagePatch.h30 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 …]
DTensorVolumePatch.h25 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/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderBuiltinPrecisionTests.cpp470 template <typename T, int Rows, int Cols>
471 struct Traits<Matrix<T, Rows, Cols> > :
472 ContainerTraits<Matrix<T, Rows, Cols>, Matrix<typename Traits<T>::IVal, Rows, Cols> >
899 template <typename T, int Rows, int Cols>
900 class ExprP<Matrix<T, Rows, Cols> > : public ContainerExprPBase<Matrix<T, Rows, Cols> > {};
973 template<int Rows, int Cols>
974 ExprP<Vector<float, Rows> > operator* (const ExprP<Vector<float, Cols> >& left,
975 const ExprP<Matrix<float, Rows, Cols> >& right);
976 template<int Rows, int Cols>
977 ExprP<Vector<float, Cols> > operator* (const ExprP<Matrix<float, Rows, Cols> >& left,
[all …]
/external/deqp/modules/glshared/
DglsBuiltinPrecisionTests.cpp503 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/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderMatrixTests.cpp618 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/
Des3fShaderMatrixTests.cpp623 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/eigen/Eigen/src/Core/
DNumTraits.h193 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/tensorflow/tensorflow/core/kernels/
Deigen_spatial_convolutions.h27 template <typename NewDimension, DenseIndex Rows, DenseIndex Cols,
35 const TensorImagePatchOp<Rows, Cols, ArgType> >,
45 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >,
54 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >,
67 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >, in TensorContractionInputMapper() argument
236 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >,
456 template <typename NewDimension, DenseIndex Rows, DenseIndex Cols,
464 const TensorImagePatchOp<Rows, Cols, ArgType> >,
476 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >,
485 NewDimension, const TensorImagePatchOp<Rows, Cols, ArgType> >,
[all …]
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
DMatrixPower.h435 template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
437 Matrix<ComplexScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
441 template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
443 Matrix<RealScalar, Rows, Cols, Options, MaxRows, MaxCols>& res,
569 template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
571 Matrix<ComplexScalar, Rows, Cols, Options, MaxRows, MaxCols>& res, in revertSchur() argument
577 template<int Rows, int Cols, int Options, int MaxRows, int MaxCols>
579 Matrix<RealScalar, Rows, Cols, Options, MaxRows, MaxCols>& res, in revertSchur() argument

123