Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 972) sorted by relevance

12345678910>>...39

/external/ceres-solver/internal/ceres/
Dincomplete_lq_factorization_test.cc58 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 …]
Dpartitioned_matrix_view.cc52 const BlockSparseMatrix& matrix) { in Create() argument
58 matrix, options.elimination_groups[0]); in Create()
64 matrix, options.elimination_groups[0]); in Create()
70 matrix, options.elimination_groups[0]); in Create()
76 matrix, options.elimination_groups[0]); in Create()
82 matrix, options.elimination_groups[0]); in Create()
88 matrix, options.elimination_groups[0]); in Create()
94 matrix, options.elimination_groups[0]); in Create()
100 matrix, options.elimination_groups[0]); in Create()
106 matrix, options.elimination_groups[0]); in Create()
[all …]
Dincomplete_lq_factorization.cc45 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/opencv3/3rdparty/libjasper/
Djas_seq.c88 jas_matrix_t *matrix; in jas_seq2d_create() local
90 if (!(matrix = jas_matrix_create(yend - ystart, xend - xstart))) { in jas_seq2d_create()
93 matrix->xstart_ = xstart; in jas_seq2d_create()
94 matrix->ystart_ = ystart; in jas_seq2d_create()
95 matrix->xend_ = xend; in jas_seq2d_create()
96 matrix->yend_ = yend; in jas_seq2d_create()
97 return matrix; in jas_seq2d_create()
102 jas_matrix_t *matrix; in jas_matrix_create() local
105 if (!(matrix = jas_malloc(sizeof(jas_matrix_t)))) { in jas_matrix_create()
108 matrix->flags_ = 0; in jas_matrix_create()
[all …]
/external/pdfium/xfa/src/fxbarcode/qrcode/
DBC_QRCoderMatrixUtil.cpp79 void CBC_QRCoderMatrixUtil::ClearMatrix(CBC_CommonByteMatrix* matrix, in ClearMatrix() argument
81 if (matrix == NULL) { in ClearMatrix()
85 matrix->clear((uint8_t)-1); in ClearMatrix()
92 CBC_CommonByteMatrix* matrix, in BuildMatrix() argument
94 if (matrix == NULL) { in BuildMatrix()
98 ClearMatrix(matrix, e); in BuildMatrix()
100 EmbedBasicPatterns(version, matrix, e); in BuildMatrix()
102 EmbedTypeInfo(ecLevel, maskPattern, matrix, e); in BuildMatrix()
104 MaybeEmbedVersionInfo(version, matrix, e); in BuildMatrix()
106 EmbedDataBits(dataBits, maskPattern, matrix, e); in BuildMatrix()
[all …]
DBC_QRCoderMatrixUtil.h27 static void ClearMatrix(CBC_CommonByteMatrix* matrix, int32_t& e);
32 CBC_CommonByteMatrix* matrix,
35 CBC_CommonByteMatrix* matrix,
39 CBC_CommonByteMatrix* matrix,
43 CBC_CommonByteMatrix* matrix,
46 CBC_CommonByteMatrix* matrix,
59 static void EmbedTimingPatterns(CBC_CommonByteMatrix* matrix, int32_t& e);
60 static void EmbedDarkDotAtLeftBottomCorner(CBC_CommonByteMatrix* matrix,
64 CBC_CommonByteMatrix* matrix,
68 CBC_CommonByteMatrix* matrix,
[all …]
/external/opencv/cxcore/include/
Dcxcore.hpp213 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/opencv3/3rdparty/libjasper/jasper/
Djas_seq.h150 #define jas_matrix_numrows(matrix) \ argument
151 ((matrix)->numrows_)
154 #define jas_matrix_numcols(matrix) \ argument
155 ((matrix)->numcols_)
158 #define jas_matrix_get(matrix, i, j) \ argument
159 ((matrix)->rows_[i][j])
162 #define jas_matrix_set(matrix, i, j, v) \ argument
163 ((matrix)->rows_[i][j] = (v))
166 #define jas_matrix_getv(matrix, i) \ argument
167 (((matrix)->numrows_ == 1) ? ((matrix)->rows_[0][i]) : \
[all …]
/external/eigen/Eigen/src/LU/
DInverse.h24 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,
59 determinant = matrix.coeff(0,0);
71 const MatrixType& matrix, const typename ResultType::Scalar& invdet,
74 result.coeffRef(0,0) = matrix.coeff(1,1) * invdet;
75 result.coeffRef(1,0) = -matrix.coeff(1,0) * invdet;
76 result.coeffRef(0,1) = -matrix.coeff(0,1) * invdet;
[all …]
DDeterminant.h19 (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/
Dgeo_transformations.cpp39 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in non_projective_only()
58 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in non_projective_only()
61 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in non_projective_only()
167 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations()
168 t0.matrix().setZero(); in transformations()
170 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); in transformations()
182 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); in transformations()
185 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); in transformations()
189 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
192 VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); in transformations()
[all …]
Dcorners.cpp13 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/tests/
DColorFilterTest.cpp155 static void get_brightness_matrix(float amount, float matrix[20]) { in get_brightness_matrix()
159 memset(matrix, 0, 20 * sizeof(SkScalar)); in get_brightness_matrix()
160 matrix[0] = matrix[6] = matrix[12] = amount; in get_brightness_matrix()
161 matrix[18] = 1.f; in get_brightness_matrix()
164 static void get_grayscale_matrix(float amount, float matrix[20]) { in get_grayscale_matrix()
167 matrix[0] = 0.2126f + 0.7874f * amount; in get_grayscale_matrix()
168 matrix[1] = 0.7152f - 0.7152f * amount; in get_grayscale_matrix()
169 matrix[2] = 1.f - (matrix[0] + matrix[1]); in get_grayscale_matrix()
170 matrix[3] = matrix[4] = 0.f; in get_grayscale_matrix()
172 matrix[5] = 0.2126f - 0.2126f * amount; in get_grayscale_matrix()
[all …]
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DIMath.js147 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/
Daction_settings.txt1 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-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dmatrix-interpolation.js44 var matrix = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]];
47 matrix[i][3] = perspective[i];
52 matrix[3][i] += translate[j] * matrix[j][i];
70 matrix = multiply(matrix, rotMatrix);
75 matrix = multiply(matrix, temp);
81 matrix = multiply(matrix, temp);
87 matrix = multiply(matrix, temp);
92 matrix[i][j] *= scale[i];
96 if (is2D(matrix)) {
97 return [matrix[0][0], matrix[0][1], matrix[1][0], matrix[1][1], matrix[3][0], matrix[3][1]];
[all …]
/external/eigen/test/eigen2/
Deigen2_geometry.cpp141 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 …]
Deigen2_geometry_with_eigen2_prefix.cpp143 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/skia/gm/
Dcolormatrix.cpp16 static void set_color_matrix(SkPaint* paint, const SkColorMatrix& matrix) { in set_color_matrix() argument
17 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref(); in set_color_matrix()
78 SkColorMatrix matrix; in onDraw() local
84 matrix.setIdentity(); in onDraw()
85 set_color_matrix(&paint, matrix); in onDraw()
88 matrix.setRotate(SkColorMatrix::kR_Axis, 90); in onDraw()
89 set_color_matrix(&paint, matrix); in onDraw()
92 matrix.setRotate(SkColorMatrix::kG_Axis, 90); in onDraw()
93 set_color_matrix(&paint, matrix); in onDraw()
96 matrix.setRotate(SkColorMatrix::kB_Axis, 90); in onDraw()
[all …]
/external/opencv3/modules/core/include/opencv2/core/
Daffine.hpp126 Mat4 matrix; member in cv::Affine3
176 : matrix(Mat4::eye()) in Affine3()
181 : matrix(affine) in Affine3()
189 matrix.val[12] = matrix.val[13] = matrix.val[14] = 0; in Affine3()
190 matrix.val[15] = 1; in Affine3()
198 matrix.val[12] = matrix.val[13] = matrix.val[14] = 0; in Affine3()
199 matrix.val[15] = 1; in Affine3()
209 data.copyTo(matrix); in Affine3()
221 matrix.val[12] = matrix.val[13] = matrix.val[14] = 0; in Affine3()
222 matrix.val[15] = 1; in Affine3()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dmatrix.h79 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/experimental/
DSkSetPoly3To3_D.cpp11 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]);
26 static void computeOuterProduct(SkMatrix* matrix, in computeOuterProduct() argument
42 matrix->reset(); in computeOuterProduct()
43 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); in computeOuterProduct()
44 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); in computeOuterProduct()
45 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); in computeOuterProduct()
46 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); in computeOuterProduct()
54 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { in SkSetPoly3To3_D() argument
68 matrix->setConcat(dstOP, srcOP); in SkSetPoly3To3_D()
69 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, in SkSetPoly3To3_D()
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLProgramDataManager.cpp13 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()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/correlation/
DCovariance.java114 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/eigen/unsupported/Eigen/src/SVD/
DJacobiSVD.h87 bool run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) in run() argument
89 if(matrix.rows() > matrix.cols()) in run()
91 m_qr.compute(matrix); in run()
92 …svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<… in run()
133 bool run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) in run() argument
135 if(matrix.cols() > matrix.rows()) in run()
137 m_adjoint = matrix.adjoint(); in run()
139 …svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.rows(),matrix.rows()).template triangularView<… in run()
172 bool run(JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) in run() argument
174 if(matrix.rows() > matrix.cols()) in run()
[all …]

12345678910>>...39