/external/pdfium/xfa/fxbarcode/qrcode/ |
D | BC_QRCoderMatrixUtil.cpp | 78 void CBC_QRCoderMatrixUtil::ClearMatrix(CBC_CommonByteMatrix* matrix, in ClearMatrix() argument 80 if (!matrix) { in ClearMatrix() 84 matrix->clear((uint8_t)-1); in ClearMatrix() 91 CBC_CommonByteMatrix* matrix, in BuildMatrix() argument 93 if (!matrix) { in BuildMatrix() 97 ClearMatrix(matrix, e); in BuildMatrix() 100 EmbedBasicPatterns(version, matrix, e); in BuildMatrix() 103 EmbedTypeInfo(ecLevel, maskPattern, matrix, e); in BuildMatrix() 106 MaybeEmbedVersionInfo(version, matrix, e); in BuildMatrix() 109 EmbedDataBits(dataBits, maskPattern, matrix, e); in BuildMatrix() [all …]
|
D | BC_QRCoderMatrixUtil.h | 28 static void ClearMatrix(CBC_CommonByteMatrix* matrix, int32_t& e); 33 CBC_CommonByteMatrix* matrix, 36 CBC_CommonByteMatrix* matrix, 40 CBC_CommonByteMatrix* matrix, 44 CBC_CommonByteMatrix* matrix, 47 CBC_CommonByteMatrix* matrix, 60 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, int32_t& e); 61 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix, 65 CBC_CommonByteMatrix* matrix, 69 CBC_CommonByteMatrix* matrix, [all …]
|
D | BC_QRCoderMaskUtil.cpp | 32 CBC_CommonByteMatrix* matrix) { in ApplyMaskPenaltyRule1() argument 33 return ApplyMaskPenaltyRule1Internal(matrix, true) + in ApplyMaskPenaltyRule1() 34 ApplyMaskPenaltyRule1Internal(matrix, false); in ApplyMaskPenaltyRule1() 38 CBC_CommonByteMatrix* matrix) { in ApplyMaskPenaltyRule2() argument 40 uint8_t* array = matrix->GetArray(); in ApplyMaskPenaltyRule2() 41 int32_t width = matrix->GetWidth(); in ApplyMaskPenaltyRule2() 42 int32_t height = matrix->GetHeight(); in ApplyMaskPenaltyRule2() 57 CBC_CommonByteMatrix* matrix) { in ApplyMaskPenaltyRule3() argument 59 uint8_t* array = matrix->GetArray(); in ApplyMaskPenaltyRule3() 60 int32_t width = matrix->GetWidth(); in ApplyMaskPenaltyRule3() [all …]
|
/external/opencv/cxcore/include/ |
D | cxcore.hpp | 213 CvMatrix() : matrix(0) {} in CvMatrix() 215 { matrix = cvCreateMat( rows, cols, type ); } in CvMatrix() 219 { matrix = cvInitMatHeader( hdr, rows, cols, type, data, step ); } in CvMatrix() 224 { matrix = cvCreateMatHeader( rows, cols, type ); in CvMatrix() 225 cvSetData( matrix, data, step ); } in CvMatrix() 228 { matrix = m; } in CvMatrix() 232 matrix = m.matrix; in CvMatrix() 236 CvMatrix( const char* filename, const char* matname=0, int color=-1 ) : matrix(0) in CvMatrix() 239 CvMatrix( CvFileStorage* fs, const char* mapname, const char* matname ) : matrix(0) in CvMatrix() 242 CvMatrix( CvFileStorage* fs, const char* seqname, int idx ) : matrix(0) in CvMatrix() [all …]
|
/external/skia/tests/ |
D | ColorFilterTest.cpp | 153 static void get_brightness_matrix(float amount, float matrix[20]) { in get_brightness_matrix() 157 memset(matrix, 0, 20 * sizeof(SkScalar)); in get_brightness_matrix() 158 matrix[0] = matrix[6] = matrix[12] = amount; in get_brightness_matrix() 159 matrix[18] = 1.f; in get_brightness_matrix() 162 static void get_grayscale_matrix(float amount, float matrix[20]) { in get_grayscale_matrix() 165 matrix[0] = 0.2126f + 0.7874f * amount; in get_grayscale_matrix() 166 matrix[1] = 0.7152f - 0.7152f * amount; in get_grayscale_matrix() 167 matrix[2] = 1.f - (matrix[0] + matrix[1]); in get_grayscale_matrix() 168 matrix[3] = matrix[4] = 0.f; in get_grayscale_matrix() 170 matrix[5] = 0.2126f - 0.2126f * amount; in get_grayscale_matrix() [all …]
|
/external/eigen/Eigen/src/LU/ |
D | InverseImpl.h | 26 static inline void run(const MatrixType& matrix, ResultType& result) in run() 28 result = matrix.partialPivLu().inverse(); in run() 43 static inline void run(const MatrixType& matrix, ResultType& result) 46 internal::evaluator<MatrixType> matrixEval(matrix); 56 const MatrixType& matrix, 64 determinant = matrix.coeff(0,0); 77 const MatrixType& matrix, const typename ResultType::Scalar& invdet, 80 result.coeffRef(0,0) = matrix.coeff(1,1) * invdet; 81 result.coeffRef(1,0) = -matrix.coeff(1,0) * invdet; 82 result.coeffRef(0,1) = -matrix.coeff(0,1) * invdet; [all …]
|
D | Determinant.h | 19 (const MatrixBase<Derived>& matrix, int a, int b, int c) in bruteforce_det3_helper() argument 21 return matrix.coeff(0,a) in bruteforce_det3_helper() 22 * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b)); in bruteforce_det3_helper() 27 (const MatrixBase<Derived>& matrix, int j, int k, int m, int n) in bruteforce_det4_helper() argument 29 return (matrix.coeff(j,0) * matrix.coeff(k,1) - matrix.coeff(k,0) * matrix.coeff(j,1)) in bruteforce_det4_helper() 30 * (matrix.coeff(m,2) * matrix.coeff(n,3) - matrix.coeff(n,2) * matrix.coeff(m,3)); in bruteforce_det4_helper()
|
/external/libtextclassifier/common/ |
D | embedding-network-params.h | 80 Matrix matrix; in GetEmbeddingMatrix() local 81 matrix.rows = embeddings_num_rows(i); in GetEmbeddingMatrix() 82 matrix.cols = embeddings_num_cols(i); in GetEmbeddingMatrix() 83 matrix.elements = embeddings_weights(i); in GetEmbeddingMatrix() 84 matrix.quant_type = embeddings_quant_type(i); in GetEmbeddingMatrix() 85 matrix.quant_scales = embeddings_quant_scales(i); in GetEmbeddingMatrix() 86 return matrix; in GetEmbeddingMatrix() 114 Matrix matrix; in GetHiddenLayerMatrix() local 115 matrix.rows = hidden_num_rows(i); in GetHiddenLayerMatrix() 116 matrix.cols = hidden_num_cols(i); in GetHiddenLayerMatrix() [all …]
|
/external/autotest/client/deps/webgl_mpd/src/resources/ |
D | J3DIMath.js | 147 var matrix; 150 matrix = arguments[0].$matrix; 152 this.$matrix.m11 = matrix.m11; 153 this.$matrix.m12 = matrix.m12; 154 this.$matrix.m13 = matrix.m13; 155 this.$matrix.m14 = matrix.m14; 157 this.$matrix.m21 = matrix.m21; 158 this.$matrix.m22 = matrix.m22; 159 this.$matrix.m23 = matrix.m23; 160 this.$matrix.m24 = matrix.m24; [all …]
|
/external/eigen/bench/btl/data/ |
D | action_settings.txt | 1 aat ; "{/*1.5 A x A^T}" ; "matrix size" ; 4:5000 2 ata ; "{/*1.5 A^T x A}" ; "matrix size" ; 4:5000 3 atv ; "{/*1.5 matrix^T x vector}" ; "matrix size" ; 4:5000 6 matrix_matrix ; "{/*1.5 matrix matrix product}" ; "matrix size" ; 4:5000 7 matrix_vector ; "{/*1.5 matrix vector product}" ; "matrix size" ; 4:5000 8 trmm ; "{/*1.5 triangular matrix matrix product}" ; "matrix size" ; 4:5000 10 trisolve_matrix ; "{/*1.5 triangular solver - matrix (M = inv(L) M)}" ; "size" ; 4:5000 11 cholesky ; "{/*1.5 Cholesky decomposition}" ; "matrix size" ; 4:5000 12 complete_lu_decomp ; "{/*1.5 Complete LU decomposition}" ; "matrix size" ; 4:5000 13 partial_lu_decomp ; "{/*1.5 Partial LU decomposition}" ; "matrix size" ; 4:5000 [all …]
|
/external/eigen/test/ |
D | geo_transformations.cpp | 50 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in non_projective_only() 69 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in non_projective_only() 72 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in non_projective_only() 178 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations() 179 t0.matrix().setZero(); in transformations() 181 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations() 193 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations() 196 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in transformations() 200 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations() 203 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations() [all …]
|
D | corners.cpp | 13 VERIFY_IS_EQUAL(matrix.A, matrix.B); \ 25 MatrixType matrix = MatrixType::Random(rows,cols); in corners() local 48 MatrixType matrix = MatrixType::Random(); in corners_fixedsize() local 60 VERIFY_IS_EQUAL((matrix.template topLeftCorner<r,c>()), (matrix.template block<r,c>(0,0))); in corners_fixedsize() 61 VERIFY_IS_EQUAL((matrix.template topRightCorner<r,c>()), (matrix.template block<r,c>(0,cols-c))); in corners_fixedsize() 62 …VERIFY_IS_EQUAL((matrix.template bottomLeftCorner<r,c>()), (matrix.template block<r,c>(rows-r,0))); in corners_fixedsize() 63 …VERIFY_IS_EQUAL((matrix.template bottomRightCorner<r,c>()), (matrix.template block<r,c>(rows-r,col… in corners_fixedsize() 65 …VERIFY_IS_EQUAL((matrix.template topLeftCorner<r,c>()), (matrix.template topLeftCorner<r,Dynamic>(… in corners_fixedsize() 66 …VERIFY_IS_EQUAL((matrix.template topRightCorner<r,c>()), (matrix.template topRightCorner<r,Dynamic… in corners_fixedsize() 67 …VERIFY_IS_EQUAL((matrix.template bottomLeftCorner<r,c>()), (matrix.template bottomLeftCorner<r,Dyn… in corners_fixedsize() [all …]
|
/external/skia/gm/ |
D | colormatrix.cpp | 17 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) { in set_color_matrix() argument 18 paint->setColorFilter(SkColorFilter::MakeMatrixFilterRowMajor255(matrix.fMat)); in set_color_matrix() 79 SkColorMatrix matrix; in onDraw() local 85 matrix.setIdentity(); in onDraw() 86 set_color_matrix(&paint, matrix); in onDraw() 89 matrix.setRotate(SkColorMatrix::kR_Axis, 90); in onDraw() 90 set_color_matrix(&paint, matrix); in onDraw() 93 matrix.setRotate(SkColorMatrix::kG_Axis, 90); in onDraw() 94 set_color_matrix(&paint, matrix); in onDraw() 97 matrix.setRotate(SkColorMatrix::kB_Axis, 90); in onDraw() [all …]
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLProgramDataManager.cpp | 13 void GrGLSLProgramDataManager::setSkMatrix(UniformHandle u, const SkMatrix& matrix) const { in setSkMatrix() 15 matrix.get(SkMatrix::kMScaleX), in setSkMatrix() 16 matrix.get(SkMatrix::kMSkewY), in setSkMatrix() 17 matrix.get(SkMatrix::kMPersp0), in setSkMatrix() 18 matrix.get(SkMatrix::kMSkewX), in setSkMatrix() 19 matrix.get(SkMatrix::kMScaleY), in setSkMatrix() 20 matrix.get(SkMatrix::kMPersp1), in setSkMatrix() 21 matrix.get(SkMatrix::kMTransX), in setSkMatrix() 22 matrix.get(SkMatrix::kMTransY), in setSkMatrix() 23 matrix.get(SkMatrix::kMPersp2), in setSkMatrix() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrSimpleTextureEffect.h | 26 const SkMatrix& matrix) { in Make() argument 28 new GrSimpleTextureEffect(tex, std::move(colorSpaceXform), matrix, in Make() 35 const SkMatrix& matrix, in Make() argument 38 new GrSimpleTextureEffect(tex, std::move(colorSpaceXform), matrix, filterMode)); in Make() 43 const SkMatrix& matrix, in Make() argument 46 matrix, p)); in Make() 53 const SkMatrix& matrix) { in Make() argument 56 std::move(colorSpaceXform), matrix, in Make() 64 const SkMatrix& matrix, in Make() argument 69 matrix, filterMode)); in Make() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | matrix.h | 79 struct matrix { struct 83 static INLINE void matrix_init(struct matrix *mat, in matrix_init() argument 89 static INLINE void matrix_inits(struct matrix *mat, in matrix_inits() 99 static INLINE void matrix_load_identity(struct matrix *matrix) in matrix_load_identity() argument 104 memcpy(matrix->m, identity, sizeof(identity)); in matrix_load_identity() 107 static INLINE VGboolean matrix_is_identity(struct matrix *matrix) in matrix_is_identity() argument 109 return floatsEqual(matrix->m[0], 1) && floatIsZero(matrix->m[1]) && in matrix_is_identity() 110 floatIsZero(matrix->m[2]) && in matrix_is_identity() 111 floatIsZero(matrix->m[3]) && floatsEqual(matrix->m[4], 1) && in matrix_is_identity() 112 floatIsZero(matrix->m[5]) && in matrix_is_identity() [all …]
|
/external/skia/bench/ |
D | ImageFilterCollapse.cpp | 102 SkScalar matrix[20] = { 1, 0, 0, 0, amount255, in make_brightness() local 106 return SkColorFilter::MakeMatrixFilterRowMajor255(matrix); in make_brightness() 110 SkScalar matrix[20]; in make_grayscale() local 111 memset(matrix, 0, 20 * sizeof(SkScalar)); in make_grayscale() 112 matrix[0] = matrix[5] = matrix[10] = 0.2126f; in make_grayscale() 113 matrix[1] = matrix[6] = matrix[11] = 0.7152f; in make_grayscale() 114 matrix[2] = matrix[7] = matrix[12] = 0.0722f; in make_grayscale() 115 matrix[18] = 1.0f; in make_grayscale() 116 return SkColorFilter::MakeMatrixFilterRowMajor255(matrix); in make_grayscale()
|
/external/skia/experimental/ |
D | SkSetPoly3To3_D.cpp | 12 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]); 27 static void computeOuterProduct(SkMatrix* matrix, in computeOuterProduct() argument 43 matrix->reset(); in computeOuterProduct() 44 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); in computeOuterProduct() 45 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); in computeOuterProduct() 46 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); in computeOuterProduct() 47 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); in computeOuterProduct() 55 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3_D() argument 69 matrix->setConcat(dstOP, srcOP); in SkSetPoly3To3_D() 70 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3_D() [all …]
|
/external/eigen/blas/ |
D | level3_impl.h | 64 if(beta==Scalar(0)) matrix(c, *m, *n, *ldc).setZero(); in EIGEN_BLAS_FUNC() 65 else matrix(c, *m, *n, *ldc) *= beta; in EIGEN_BLAS_FUNC() 175 matrix(b,*m,*n,*ldb) *= alpha; in EIGEN_BLAS_FUNC() 269 Matrix<Scalar,Dynamic,Dynamic,ColMajor> tmp = matrix(b,*m,*n,*ldb); in EIGEN_BLAS_FUNC() 270 matrix(b,*m,*n,*ldb).setZero(); in EIGEN_BLAS_FUNC() 310 if(beta==Scalar(0)) matrix(c, *m, *n, *ldc).setZero(); in EIGEN_BLAS_FUNC() 311 else matrix(c, *m, *n, *ldc) *= beta; in EIGEN_BLAS_FUNC() 325 matA.triangularView<Upper>() = matrix(a,size,size,*lda); in EIGEN_BLAS_FUNC() 326 matA.triangularView<Lower>() = matrix(a,size,size,*lda).transpose(); in EIGEN_BLAS_FUNC() 330 matA.triangularView<Lower>() = matrix(a,size,size,*lda); in EIGEN_BLAS_FUNC() [all …]
|
/external/eigen/unsupported/Eigen/ |
D | MatrixFunctions | 24 * matrix functions. 33 * - \ref matrixbase_cos "MatrixBase::cos()", for computing the matrix cosine 34 * - \ref matrixbase_cosh "MatrixBase::cosh()", for computing the matrix hyperbolic cosine 35 * - \ref matrixbase_exp "MatrixBase::exp()", for computing the matrix exponential 36 * - \ref matrixbase_log "MatrixBase::log()", for computing the matrix logarithm 37 * - \ref matrixbase_pow "MatrixBase::pow()", for computing the matrix power 38 …* - \ref matrixbase_matrixfunction "MatrixBase::matrixFunction()", for computing general matrix f… 39 * - \ref matrixbase_sin "MatrixBase::sin()", for computing the matrix sine 40 * - \ref matrixbase_sinh "MatrixBase::sinh()", for computing the matrix hyperbolic sine 41 * - \ref matrixbase_sqrt "MatrixBase::sqrt()", for computing the matrix square root [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/correlation/ |
D | Covariance.java | 114 public Covariance(RealMatrix matrix, boolean biasCorrected) { in Covariance() argument 115 checkSufficientData(matrix); in Covariance() 116 n = matrix.getRowDimension(); in Covariance() 117 covarianceMatrix = computeCovarianceMatrix(matrix, biasCorrected); in Covariance() 130 public Covariance(RealMatrix matrix) { in Covariance() argument 131 this(matrix, true); in Covariance() 160 protected RealMatrix computeCovarianceMatrix(RealMatrix matrix, boolean biasCorrected) { in computeCovarianceMatrix() argument 161 int dimension = matrix.getColumnDimension(); in computeCovarianceMatrix() 166 double cov = covariance(matrix.getColumn(i), matrix.getColumn(j), biasCorrected); in computeCovarianceMatrix() 170 outMatrix.setEntry(i, i, variance.evaluate(matrix.getColumn(i))); in computeCovarianceMatrix() [all …]
|
/external/pdfium/core/fxge/apple/ |
D | fx_quartz_device.cpp | 68 void CQuartz2D::setGraphicsTextMatrix(void* graphics, CFX_Matrix* matrix) { in setGraphicsTextMatrix() argument 69 if (!graphics || !matrix) in setGraphicsTextMatrix() 72 CGFloat ty = CGBitmapContextGetHeight(context) - matrix->f; in setGraphicsTextMatrix() 74 context, CGAffineTransformMake(matrix->a, matrix->b, matrix->c, matrix->d, in setGraphicsTextMatrix() 75 matrix->e, ty)); in setGraphicsTextMatrix() 85 CFX_Matrix* matrix) { in drawGraphicsString() argument 91 if (matrix) { in drawGraphicsString() 94 m, CGAffineTransformMake(matrix->a, matrix->b, matrix->c, matrix->d, in drawGraphicsString() 95 matrix->e, matrix->f)); in drawGraphicsString()
|
/external/eigen/unsupported/test/ |
D | openglsupport.cpp | 149 VERIFY_MATRIX(glRotate(qd), Projective3d(qd).matrix()); in test_openglsupport() 152 VERIFY_MATRIX(glRotate(qf), Projective3f(qf).matrix()); in test_openglsupport() 155 Transform<float,3,AffineCompact> acf3; acf3.matrix().setRandom(); in test_openglsupport() 156 VERIFY_MATRIX(glLoadMatrix(acf3), Projective3f(acf3).matrix()); in test_openglsupport() 157 VERIFY_MATRIX(glMultMatrix(acf3), Projective3f(acf3).matrix()); in test_openglsupport() 160 VERIFY_MATRIX(glLoadMatrix(af3), Projective3f(af3).matrix()); in test_openglsupport() 161 VERIFY_MATRIX(glMultMatrix(af3), Projective3f(af3).matrix()); in test_openglsupport() 163 Transform<float,3,Projective> pf3; pf3.matrix().setRandom(); in test_openglsupport() 164 VERIFY_MATRIX(glLoadMatrix(pf3), Projective3f(pf3).matrix()); in test_openglsupport() 165 VERIFY_MATRIX(glMultMatrix(pf3), Projective3f(pf3).matrix()); in test_openglsupport() [all …]
|
/external/skia/src/c/ |
D | sk_effects.cpp | 11 static void from_c_matrix(const sk_matrix_t* cmatrix, SkMatrix* matrix) { in from_c_matrix() argument 12 matrix->setAll(cmatrix->mat[0], cmatrix->mat[1], cmatrix->mat[2], in from_c_matrix() 59 SkMatrix matrix; in sk_shader_new_linear_gradient() local 61 from_c_matrix(cmatrix, &matrix); in sk_shader_new_linear_gradient() 63 matrix.setIdentity(); in sk_shader_new_linear_gradient() 68 mode, 0, &matrix).release(); in sk_shader_new_linear_gradient() 86 SkMatrix matrix; in sk_shader_new_radial_gradient() local 88 from_c_matrix(cmatrix, &matrix); in sk_shader_new_radial_gradient() 90 matrix.setIdentity(); in sk_shader_new_radial_gradient() 96 colorCount, mode, 0, &matrix).release(); in sk_shader_new_radial_gradient() [all …]
|
/external/skia/src/effects/ |
D | SkHighContrastFilter.cpp | 207 float* matrix = scratch->makeArray<float>(12); in onAppendStages() local 208 matrix[0] = matrix[1] = matrix[2] = r; in onAppendStages() 209 matrix[3] = matrix[4] = matrix[5] = g; in onAppendStages() 210 matrix[6] = matrix[7] = matrix[8] = b; in onAppendStages() 211 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages() 215 float* matrix = scratch->makeArray<float>(12); in onAppendStages() local 216 matrix[0] = matrix[4] = matrix[8] = -1; in onAppendStages() 217 matrix[9] = matrix[10] = matrix[11] = 1; in onAppendStages() 218 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages() 221 float* matrix = scratch->makeArray<float>(12); in onAppendStages() local [all …]
|