/external/chromium_org/cc/output/ |
D | render_surface_filters.cc | 30 void GetBrightnessMatrix(float amount, SkScalar matrix[20]) { in GetBrightnessMatrix() 34 memset(matrix, 0, 20 * sizeof(SkScalar)); in GetBrightnessMatrix() 35 matrix[0] = matrix[6] = matrix[12] = amount; in GetBrightnessMatrix() 36 matrix[18] = 1.f; in GetBrightnessMatrix() 39 void GetSaturatingBrightnessMatrix(float amount, SkScalar matrix[20]) { in GetSaturatingBrightnessMatrix() 42 memset(matrix, 0, 20 * sizeof(SkScalar)); in GetSaturatingBrightnessMatrix() 43 matrix[0] = matrix[6] = matrix[12] = matrix[18] = 1.f; in GetSaturatingBrightnessMatrix() 44 matrix[4] = matrix[9] = matrix[14] = amount * 255.f; in GetSaturatingBrightnessMatrix() 47 void GetContrastMatrix(float amount, SkScalar matrix[20]) { in GetContrastMatrix() 48 memset(matrix, 0, 20 * sizeof(SkScalar)); in GetContrastMatrix() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | incomplete_lq_factorization_test.cc | 58 CompressedRowSparseMatrix matrix(1, 1, 1); in TEST() local 59 matrix.mutable_rows()[0] = 0; in TEST() 60 matrix.mutable_rows()[1] = 1; in TEST() 61 matrix.mutable_cols()[0] = 0; in TEST() 62 matrix.mutable_values()[0] = 2; in TEST() 65 IncompleteLQFactorization(matrix, 1, 0.0, 1, 0.0)); in TEST() 66 ExpectMatricesAreEqual(matrix, *l, 1e-16); in TEST() 83 CompressedRowSparseMatrix matrix(10, 10, 100); in TEST() local 84 int* rows = matrix.mutable_rows(); in TEST() 85 int* cols = matrix.mutable_cols(); in TEST() [all …]
|
D | incomplete_lq_factorization.cc | 45 inline double NormalizeRow(const int row, CompressedRowSparseMatrix* matrix) { in NormalizeRow() argument 46 const int row_begin = matrix->rows()[row]; in NormalizeRow() 47 const int row_end = matrix->rows()[row + 1]; in NormalizeRow() 49 double* values = matrix->mutable_values(); in NormalizeRow() 118 CompressedRowSparseMatrix* matrix) { in DropEntriesAndAddRow() argument 119 int* rows = matrix->mutable_rows(); in DropEntriesAndAddRow() 120 int* cols = matrix->mutable_cols(); in DropEntriesAndAddRow() 121 double* values = matrix->mutable_values(); in DropEntriesAndAddRow() 122 int num_nonzeros = rows[matrix->num_rows()]; in DropEntriesAndAddRow() 125 matrix->set_num_rows(matrix->num_rows() + 1); in DropEntriesAndAddRow() [all …]
|
/external/chromium_org/cc/test/ |
D | geometry_test_utils.cc | 19 EXPECT_FLOAT_EQ((expected).matrix().get(0, 0), (actual).matrix().get(0, 0)); in ExpectTransformationMatrixEq() 20 EXPECT_FLOAT_EQ((expected).matrix().get(1, 0), (actual).matrix().get(1, 0)); in ExpectTransformationMatrixEq() 21 EXPECT_FLOAT_EQ((expected).matrix().get(2, 0), (actual).matrix().get(2, 0)); in ExpectTransformationMatrixEq() 22 EXPECT_FLOAT_EQ((expected).matrix().get(3, 0), (actual).matrix().get(3, 0)); in ExpectTransformationMatrixEq() 23 EXPECT_FLOAT_EQ((expected).matrix().get(0, 1), (actual).matrix().get(0, 1)); in ExpectTransformationMatrixEq() 24 EXPECT_FLOAT_EQ((expected).matrix().get(1, 1), (actual).matrix().get(1, 1)); in ExpectTransformationMatrixEq() 25 EXPECT_FLOAT_EQ((expected).matrix().get(2, 1), (actual).matrix().get(2, 1)); in ExpectTransformationMatrixEq() 26 EXPECT_FLOAT_EQ((expected).matrix().get(3, 1), (actual).matrix().get(3, 1)); in ExpectTransformationMatrixEq() 27 EXPECT_FLOAT_EQ((expected).matrix().get(0, 2), (actual).matrix().get(0, 2)); in ExpectTransformationMatrixEq() 28 EXPECT_FLOAT_EQ((expected).matrix().get(1, 2), (actual).matrix().get(1, 2)); in ExpectTransformationMatrixEq() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
D | FEColorMatrix.cpp | 76 inline void matrix(float& red, float& green, float& blue, float& alpha, const Vector<float>& values) in matrix() function 127 matrix(red, green, blue, alpha, values); in effectType() 179 static void saturateMatrix(float s, SkScalar matrix[20]) in saturateMatrix() 181 matrix[0] = 0.213f + 0.787f * s; in saturateMatrix() 182 matrix[1] = 0.715f - 0.715f * s; in saturateMatrix() 183 matrix[2] = 0.072f - 0.072f * s; in saturateMatrix() 184 matrix[3] = matrix[4] = 0; in saturateMatrix() 185 matrix[5] = 0.213f - 0.213f * s; in saturateMatrix() 186 matrix[6] = 0.715f + 0.285f * s; in saturateMatrix() 187 matrix[7] = 0.072f - 0.072f * s; in saturateMatrix() [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/eigen/Eigen/src/LU/ |
D | Inverse.h | 24 static inline void run(const MatrixType& matrix, ResultType& result) in run() 26 result = matrix.partialPivLu().inverse(); in run() 40 static inline void run(const MatrixType& matrix, ResultType& result) 43 result.coeffRef(0,0) = Scalar(1) / matrix.coeff(0,0); 51 const MatrixType& matrix, 58 determinant = matrix.coeff(0,0); 70 const MatrixType& matrix, const typename ResultType::Scalar& invdet, 73 result.coeffRef(0,0) = matrix.coeff(1,1) * invdet; 74 result.coeffRef(1,0) = -matrix.coeff(1,0) * invdet; 75 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/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() 165 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations() 166 t0.matrix().setZero(); in transformations() 168 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations() 180 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations() 183 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in transformations() 187 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations() 190 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 topRows<r>()), (matrix.template block<r,cols>(0,0))); in corners_fixedsize() 66 VERIFY_IS_EQUAL((matrix.template middleRows<r>(sr)), (matrix.template block<r,cols>(sr,0))); in corners_fixedsize() 67 VERIFY_IS_EQUAL((matrix.template bottomRows<r>()), (matrix.template block<r,cols>(rows-r,0))); in corners_fixedsize() [all …]
|
/external/eigen/bench/btl/data/ |
D | action_settings.txt | 1 aat ; "{/*1.5 A x A^T}" ; "matrix size" ; 4:3000 2 ata ; "{/*1.5 A^T x A}" ; "matrix size" ; 4:3000 3 atv ; "{/*1.5 matrix^T x vector}" ; "matrix size" ; 4:3000 6 matrix_matrix ; "{/*1.5 matrix matrix product}" ; "matrix size" ; 4:3000 7 matrix_vector ; "{/*1.5 matrix vector product}" ; "matrix size" ; 4:3000 8 trmm ; "{/*1.5 triangular matrix matrix product}" ; "matrix size" ; 4:3000 10 trisolve_matrix ; "{/*1.5 triangular solver - matrix (M = inv(L) M)}" ; "size" ; 4:3000 11 cholesky ; "{/*1.5 Cholesky decomposition}" ; "matrix size" ; 4:3000 12 complete_lu_decomp ; "{/*1.5 Complete LU decomposition}" ; "matrix size" ; 4:3000 13 partial_lu_decomp ; "{/*1.5 Partial LU decomposition}" ; "matrix size" ; 4:3000 [all …]
|
/external/chromium_org/ui/gfx/ |
D | matrix3_unittest.cc | 34 Matrix3F matrix = Matrix3F::Ones(); in TEST() local 38 matrix.set(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f); in TEST() 39 EXPECT_EQ(Vector3dF(2.0f, 5.0f, 8.0f), matrix.get_column(2)); in TEST() 40 matrix.set_column(0, Vector3dF(0.1f, 0.2f, 0.3f)); in TEST() 41 EXPECT_EQ(Vector3dF(0.1f, 0.2f, 0.3f), matrix.get_column(0)); in TEST() 43 EXPECT_EQ(0.1f, matrix.get(0, 0)); in TEST() 44 EXPECT_EQ(5.0f, matrix.get(1, 2)); in TEST() 53 Matrix3F matrix = Matrix3F::Zeros(); in TEST() local 54 matrix.set(0, 5, 6, 8, 7, 0, 1, 9, 0); in TEST() 55 EXPECT_EQ(390.0f, matrix.Determinant()); in TEST() [all …]
|
D | transform_unittest.cc | 29 EXPECT_FLOAT_EQ((a), (transform).matrix().get(0, 0)); \ 30 EXPECT_FLOAT_EQ((b), (transform).matrix().get(0, 1)); \ 31 EXPECT_FLOAT_EQ((c), (transform).matrix().get(0, 2)); \ 32 EXPECT_FLOAT_EQ((d), (transform).matrix().get(0, 3)); 35 EXPECT_FLOAT_EQ((a), (transform).matrix().get(1, 0)); \ 36 EXPECT_FLOAT_EQ((b), (transform).matrix().get(1, 1)); \ 37 EXPECT_FLOAT_EQ((c), (transform).matrix().get(1, 2)); \ 38 EXPECT_FLOAT_EQ((d), (transform).matrix().get(1, 3)); 41 EXPECT_FLOAT_EQ((a), (transform).matrix().get(2, 0)); \ 42 EXPECT_FLOAT_EQ((b), (transform).matrix().get(2, 1)); \ [all …]
|
/external/srec/srec/clib/ |
D | matx_ops.c | 41 covdata **matrix; in create_matrix() local 43 matrix = (covdata **) CALLOC(dimen, sizeof(covdata *), in create_matrix() 46 matrix[ii] = (covdata *) CALLOC(dimen, sizeof(covdata), in create_matrix() 48 return (matrix); in create_matrix() 51 void delete_matrix(covdata **matrix, int dimen) in delete_matrix() argument 55 ASSERT(matrix); in delete_matrix() 57 FREE((char *)matrix[ii]); in delete_matrix() 58 FREE((char *)matrix); in delete_matrix() 62 void diagonal_elements(covdata *vector, covdata **matrix, int dim) in diagonal_elements() argument 67 ASSERT(matrix); in diagonal_elements() [all …]
|
/external/chromium_org/cc/layers/ |
D | video_frame_provider_client_impl.cc | 80 void VideoFrameProviderClientImpl::DidUpdateMatrix(const float* matrix) { in DidUpdateMatrix() argument 82 matrix[0], matrix[4], matrix[8], matrix[12], in DidUpdateMatrix() 83 matrix[1], matrix[5], matrix[9], matrix[13], in DidUpdateMatrix() 84 matrix[2], matrix[6], matrix[10], matrix[14], in DidUpdateMatrix() 85 matrix[3], matrix[7], matrix[11], matrix[15]); in DidUpdateMatrix()
|
/external/chromium_org/gpu/command_buffer/tests/ |
D | occlusion_query_unittests.cc | 36 static void SetMatrix(float x, float z, float scale, float* matrix) { in SetMatrix() argument 37 matrix[0] = scale; in SetMatrix() 38 matrix[1] = 0.0f; in SetMatrix() 39 matrix[2] = 0.0f; in SetMatrix() 40 matrix[3] = 0.0f; in SetMatrix() 42 matrix[4] = 0.0f; in SetMatrix() 43 matrix[5] = scale; in SetMatrix() 44 matrix[6] = 0.0f; in SetMatrix() 45 matrix[7] = 0.0f; in SetMatrix() 47 matrix[8] = 0.0f; in SetMatrix() [all …]
|
/external/skia/gm/ |
D | bitmapmatrix.cpp | 38 SkMatrix matrix; in onDraw() local 39 matrix.reset(); in onDraw() 43 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 47 matrix.setScale(SkIntToScalar(2), SK_ScalarHalf); in onDraw() 48 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 52 matrix.reset(); in onDraw() 53 matrix.setRotate(SkIntToScalar(45), SkIntToScalar(bm.width() / 2), in onDraw() 57 canvas->drawBitmapMatrix(bm, matrix, &paint); in onDraw() 62 matrix.reset(); in onDraw() 63 matrix.setPerspX(SkScalarDiv(SK_Scalar1, SkIntToScalar(1000))); in onDraw() [all …]
|
D | colormatrix.cpp | 31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { in setColorMatrix() argument 32 paint->setColorFilter(SkNEW_ARGS(SkColorMatrixFilter, (matrix)))->unref(); in setColorMatrix() 102 SkColorMatrix matrix; in onDraw() local 109 matrix.setIdentity(); in onDraw() 110 setColorMatrix(&paint, matrix); in onDraw() 113 matrix.setRotate(SkColorMatrix::kR_Axis, 90); in onDraw() 114 setColorMatrix(&paint, matrix); in onDraw() 117 matrix.setRotate(SkColorMatrix::kG_Axis, 90); in onDraw() 118 setColorMatrix(&paint, matrix); in onDraw() 121 matrix.setRotate(SkColorMatrix::kB_Axis, 90); in onDraw() [all …]
|
/external/eigen/test/eigen2/ |
D | eigen2_geometry.cpp | 141 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in geometry() 142 t0.matrix().setZero(); in geometry() 144 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in geometry() 167 VERIFY((t0.matrix() * t1.matrix()).isIdentity(test_precision<Scalar>())); in geometry() 170 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in geometry() 175 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in geometry() 178 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in geometry() 180 VERIFY_IS_APPROX(t0.scale(a).matrix(), t1.scale(Vector3::Constant(a)).matrix()); in geometry() 181 VERIFY_IS_APPROX(t0.prescale(a).matrix(), t1.prescale(Vector3::Constant(a)).matrix()); in geometry() 189 tmat4.matrix()(3,3) = Scalar(1); in geometry() [all …]
|
D | eigen2_geometry_with_eigen2_prefix.cpp | 143 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in geometry() 144 t0.matrix().setZero(); in geometry() 146 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in geometry() 169 VERIFY((t0.matrix() * t1.matrix()).isIdentity(test_precision<Scalar>())); in geometry() 172 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in geometry() 177 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in geometry() 180 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in geometry() 182 VERIFY_IS_APPROX(t0.scale(a).matrix(), t1.scale(Vector3::Constant(a)).matrix()); in geometry() 183 VERIFY_IS_APPROX(t0.prescale(a).matrix(), t1.prescale(Vector3::Constant(a)).matrix()); in geometry() 191 tmat4.matrix()(3,3) = Scalar(1); in geometry() [all …]
|
/external/chromium_org/third_party/qcms/src/ |
D | matrix.h | 31 struct vector matrix_eval(struct matrix mat, struct vector v); 32 float matrix_det(struct matrix mat); 33 struct matrix matrix_identity(void); 34 struct matrix matrix_multiply(struct matrix a, struct matrix b); 35 struct matrix matrix_invert(struct matrix mat); 37 struct matrix matrix_invalid(void);
|
/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/chromium_org/third_party/mesa/src/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/pixman/pixman/ |
D | pixman-matrix.c | 218 tmp[i][0] = (int64_t)t->matrix[i][0] * (v->v[0] >> 16); in pixman_transform_point_31_16() 219 tmp[i][1] = (int64_t)t->matrix[i][0] * (v->v[0] & 0xFFFF); in pixman_transform_point_31_16() 220 tmp[i][0] += (int64_t)t->matrix[i][1] * (v->v[1] >> 16); in pixman_transform_point_31_16() 221 tmp[i][1] += (int64_t)t->matrix[i][1] * (v->v[1] & 0xFFFF); in pixman_transform_point_31_16() 222 tmp[i][0] += (int64_t)t->matrix[i][2] * (v->v[2] >> 16); in pixman_transform_point_31_16() 223 tmp[i][1] += (int64_t)t->matrix[i][2] * (v->v[2] & 0xFFFF); in pixman_transform_point_31_16() 320 hi0 = (int64_t)t->matrix[0][0] * (v->v[0] >> 16); in pixman_transform_point_31_16_affine() 321 lo0 = (int64_t)t->matrix[0][0] * (v->v[0] & 0xFFFF); in pixman_transform_point_31_16_affine() 322 hi0 += (int64_t)t->matrix[0][1] * (v->v[1] >> 16); in pixman_transform_point_31_16_affine() 323 lo0 += (int64_t)t->matrix[0][1] * (v->v[1] & 0xFFFF); in pixman_transform_point_31_16_affine() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
D | AnimatableValueTestHelper.cpp | 166 TransformationMatrix matrix; in PrintTo() local 167 op->apply(matrix, FloatSize(1.0, 1.0)); in PrintTo() 170 if (matrix.isAffine()) { in PrintTo() 171 *os << matrix.a(); in PrintTo() 172 *os << " " << matrix.b(); in PrintTo() 173 *os << " " << matrix.c(); in PrintTo() 174 *os << " " << matrix.d(); in PrintTo() 175 *os << " " << matrix.e(); in PrintTo() 176 *os << " " << matrix.f(); in PrintTo() 178 *os << matrix.m11(); in PrintTo() [all …]
|