/external/ceres-solver/internal/ceres/ |
H A D | incomplete_lq_factorization_test.cc | 58 CompressedRowSparseMatrix matrix(1, 1, 1); 59 matrix.mutable_rows()[0] = 0; 60 matrix.mutable_rows()[1] = 1; 61 matrix.mutable_cols()[0] = 0; 62 matrix.mutable_values()[0] = 2; 65 IncompleteLQFactorization(matrix, 1, 0.0, 1, 0.0)); 66 ExpectMatricesAreEqual(matrix, *l, 1e-16); 83 CompressedRowSparseMatrix matrix(10, 10, 100); 84 int* rows = matrix.mutable_rows(); 85 int* cols = matrix [all...] |
H A D | partitioned_matrix_view.cc | 52 const BlockSparseMatrix& matrix) { 58 matrix, options.elimination_groups[0]); 64 matrix, options.elimination_groups[0]); 70 matrix, options.elimination_groups[0]); 76 matrix, options.elimination_groups[0]); 82 matrix, options.elimination_groups[0]); 88 matrix, options.elimination_groups[0]); 94 matrix, options.elimination_groups[0]); 100 matrix, options.elimination_groups[0]); 106 matrix, option 51 Create(const LinearSolver::Options& options, const BlockSparseMatrix& matrix) argument [all...] |
H A D | incomplete_lq_factorization.h | 47 // An incomplete LQ factorization of a matrix A is a decomposition 51 // Where L is a lower triangular matrix, and Q is a near orthonormal 52 // matrix. The extent of orthonormality depends on E. E is the "drop" 53 // matrix. Each row of L has a maximum of l_level_of_fill entries, and 62 // there one only needs the L matrix, therefore this function just 67 const CompressedRowSparseMatrix& matrix, 76 // vector to matrix. 79 // assumed that scratch is of size matrix->num_cols(). 85 CompressedRowSparseMatrix* matrix);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | arc.h | 33 struct matrix; 64 struct matrix *matrix); 69 struct matrix *matrix); 73 struct matrix *matrix); 77 struct matrix *matrix);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowColorMatrixColorFilter.java | 11 private ColorMatrix matrix; field in class:ShadowColorMatrixColorFilter 14 public void __constructor__(ColorMatrix matrix) { argument 15 this.matrix = matrix; 20 this.matrix = new ColorMatrix(array); 25 return "ColorMatrixColorFilter<" + matrix + ">";
|
/external/skia/src/core/ |
H A D | SkMatrixUtils.h | 20 * Given a matrix and width/height, return true if the computed dst-rect would 38 static inline bool SkTreatAsSpriteFilter(const SkMatrix& matrix, argument 40 return SkTreatAsSprite(matrix, width, height, kSkSubPixelBitsForBilerp); 43 /** Decomposes the upper-left 2x2 of the matrix into a rotation (represented by 47 Returns true if successful. Returns false if the matrix is degenerate. 49 bool SkDecomposeUpper2x2(const SkMatrix& matrix,
|
/external/skia/src/gpu/effects/ |
H A D | GrSimpleTextureEffect.h | 19 * can have a matrix applied in the VS in both the local and position cases but not with a custom 27 const SkMatrix& matrix, 29 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, GrTextureParams::kNone_FilterMode, 35 const SkMatrix& matrix, 38 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, filterMode, coordSet)); 42 const SkMatrix& matrix, 45 return SkNEW_ARGS(GrSimpleTextureEffect, (tex, matrix, p, coordSet)); 58 const SkMatrix& matrix, 61 : GrSingleTextureEffect(texture, matrix, filterMode, coordSet) { 66 const SkMatrix& matrix, 26 Create(GrTexture* tex, const SkMatrix& matrix, GrCoordSet coordSet = kLocal_GrCoordSet) argument 34 Create(GrTexture* tex, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet = kLocal_GrCoordSet) argument 41 Create(GrTexture* tex, const SkMatrix& matrix, const GrTextureParams& p, GrCoordSet coordSet = kLocal_GrCoordSet) argument 57 GrSimpleTextureEffect(GrTexture* texture, const SkMatrix& matrix, GrTextureParams::FilterMode filterMode, GrCoordSet coordSet) argument 65 GrSimpleTextureEffect(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params, GrCoordSet coordSet) argument [all...] |
H A D | GrBicubicEffect.h | 54 * Create a Mitchell filter effect with specified texture matrix and x/y tile modes. 56 static GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix, argument 58 return Create(tex, gMitchellCoefficients, matrix, tileModes); 62 * Create a filter effect with custom bicubic coefficients, the texture matrix, and the x/y 66 const SkMatrix& matrix, 68 return SkNEW_ARGS(GrBicubicEffect, (tex, coefficients, matrix, tileModes)); 72 * Create a Mitchell filter effect with a texture matrix and a domain. 74 static GrFragmentProcessor* Create(GrTexture* tex, const SkMatrix& matrix, argument 76 return SkNEW_ARGS(GrBicubicEffect, (tex, gMitchellCoefficients, matrix, domain)); 91 const SkMatrix &matrix, cons 65 Create(GrTexture* tex, const SkScalar coefficients[16], const SkMatrix& matrix, const SkShader::TileMode tileModes[2]) argument [all...] |
/external/skia/tests/ |
H A D | ColorFilterTest.cpp | 155 static void get_brightness_matrix(float amount, float matrix[20]) { argument 159 memset(matrix, 0, 20 * sizeof(SkScalar)); 160 matrix[0] = matrix[6] = matrix[12] = amount; 161 matrix[18] = 1.f; 164 static void get_grayscale_matrix(float amount, float matrix[20]) { argument 167 matrix[0] = 0.2126f + 0.7874f * amount; 168 matrix[1] = 0.7152f - 0.7152f * amount; 169 matrix[ 187 SkScalar matrix[20]; local 192 SkScalar matrix[20]; local [all...] |
/external/eigen/Eigen/src/LU/ |
H A D | Inverse.h | 24 static inline void run(const MatrixType& matrix, ResultType& result) argument 26 result = matrix.partialPivLu().inverse(); 40 static inline void run(const MatrixType& matrix, ResultType& result) argument 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 50 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& result, typename ResultType::Scalar& determinant, bool& invertible ) argument 70 compute_inverse_size2_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, ResultType& result) argument 83 run(const MatrixType& matrix, ResultType& result) argument 94 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument 130 compute_inverse_size3_helper( const MatrixType& matrix, const typename ResultType::Scalar& invdet, const Matrix<typename ResultType::Scalar,3,1>& cofactors_col0, ResultType& result) argument 148 run(const MatrixType& matrix, ResultType& result) argument 164 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument 191 general_det3_helper(const MatrixBase<Derived>& matrix, int i1, int i2, int i3, int j1, int j2, int j3) argument 199 cofactor_4x4(const MatrixType& matrix) argument 217 run(const MatrixType& matrix, ResultType& result) argument 249 run( const MatrixType& matrix, const typename MatrixType::RealScalar& absDeterminantThreshold, ResultType& inverse, typename ResultType::Scalar& determinant, bool& invertible ) argument 282 inverse_impl(const MatrixType& matrix) argument [all...] |
H A D | Determinant.h | 19 (const MatrixBase<Derived>& matrix, int a, int b, int c) 21 return matrix.coeff(0,a) 22 * (matrix.coeff(1,b) * matrix.coeff(2,c) - matrix.coeff(1,c) * matrix.coeff(2,b)); 27 (const MatrixBase<Derived>& matrix, int j, int k, int m, int n) 29 return (matrix.coeff(j,0) * matrix.coeff(k,1) - matrix 18 bruteforce_det3_helper(const MatrixBase<Derived>& matrix, int a, int b, int c) argument 26 bruteforce_det4_helper(const MatrixBase<Derived>& matrix, int j, int k, int m, int n) argument [all...] |
/external/opencv/cxcore/include/ |
H A D | cxcore.hpp | 213 CvMatrix() : matrix(0) {} 215 { matrix = cvCreateMat( rows, cols, type ); } 219 { matrix = cvInitMatHeader( hdr, rows, cols, type, data, step ); } 224 { matrix = cvCreateMatHeader( rows, cols, type ); 225 cvSetData( matrix, data, step ); } 228 { matrix = m; } 232 matrix = m.matrix; 236 CvMatrix( const char* filename, const char* matname=0, int color=-1 ) : matrix(0) 239 CvMatrix( CvFileStorage* fs, const char* mapname, const char* matname ) : matrix( 348 CvMat* matrix; member in class:CvMatrix [all...] |
/external/skia/gm/ |
H A D | colormatrix.cpp | 31 static void setColorMatrix(SkPaint* paint, const SkColorMatrix& matrix) { argument 32 paint->setColorFilter(SkColorMatrixFilter::Create(matrix))->unref(); 100 SkColorMatrix matrix; local 106 matrix.setIdentity(); 107 setColorMatrix(&paint, matrix); 110 matrix.setRotate(SkColorMatrix::kR_Axis, 90); 111 setColorMatrix(&paint, matrix); 114 matrix.setRotate(SkColorMatrix::kG_Axis, 90); 115 setColorMatrix(&paint, matrix); 118 matrix [all...] |
H A D | fadefilter.cpp | 14 SkScalar matrix[20] = { 1, 0, 0, 0, 128.0f, local 19 SkColorMatrixFilter::Create(matrix));
|
/external/skia/bench/ |
H A D | ImageFilterCollapse.cpp | 17 // Chains several matrix color filters image filter or several 116 SkScalar matrix[20] = { 1, 0, 0, 0, amount255, local 120 return SkColorMatrixFilter::Create(matrix); 124 SkScalar matrix[20]; local 125 memset(matrix, 0, 20 * sizeof(SkScalar)); 126 matrix[0] = matrix[5] = matrix[10] = 0.2126f; 127 matrix[1] = matrix[ [all...] |
/external/skia/experimental/ |
H A D | SkSetPoly3To3_D.cpp | 11 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]); 26 static void computeOuterProduct(SkMatrix* matrix, argument 42 matrix->reset(); 43 matrix->setScaleX(SkDScalar_toScalar(tmp[0])); 44 matrix->setSkewY( SkDScalar_toScalar(tmp[1])); 45 matrix->setSkewX( SkDScalar_toScalar(tmp[2])); 46 matrix->setScaleY(SkDScalar_toScalar(tmp[3])); 54 bool SkSetPoly3To3_D(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { argument 68 matrix->setConcat(dstOP, srcOP); 69 matrix [all...] |
H A D | SkSetPoly3To3.cpp | 11 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]); 33 bool SkSetPoly3To3(SkMatrix* matrix, const SkPoint src[3], const SkPoint dst[3]) { argument 59 matrix->reset(); 60 matrix->setScaleX(dot(srcOP0, srcOP1, dstOP[0], dstOP[2])); 61 matrix->setSkewX( dot(srcOP2, srcOP3, dstOP[0], dstOP[2])); 62 matrix->setSkewY (dot(srcOP0, srcOP1, dstOP[1], dstOP[3])); 63 matrix->setScaleY(dot(srcOP2, srcOP3, dstOP[1], dstOP[3])); 64 matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY, 65 matrix->getScaleX(), matrix [all...] |
/external/skia/src/gpu/ |
H A D | GrPaint.cpp | 26 void GrPaint::addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { argument 27 this->addColorProcessor(GrSimpleTextureEffect::Create(texture, matrix))->unref(); 30 void GrPaint::addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix) { argument 31 this->addCoverageProcessor(GrSimpleTextureEffect::Create(texture, matrix))->unref(); 35 const SkMatrix& matrix, 37 this->addColorProcessor(GrSimpleTextureEffect::Create(texture, matrix, params))->unref(); 41 const SkMatrix& matrix, 43 this->addCoverageProcessor(GrSimpleTextureEffect::Create(texture, matrix, params))->unref(); 34 addColorTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) argument 40 addCoverageTextureProcessor(GrTexture* texture, const SkMatrix& matrix, const GrTextureParams& params) argument
|
H A D | GrPathRenderer.cpp | 16 const SkMatrix& matrix, 23 matrix.mapRect(bounds); 14 GetPathDevBounds(const SkPath& path, int devW, int devH, const SkMatrix& matrix, SkRect* bounds) argument
|
/external/eigen/test/ |
H A D | corners.cpp | 13 VERIFY_IS_EQUAL(matrix.A, matrix.B); \ 25 MatrixType matrix = MatrixType::Random(rows,cols); local 48 MatrixType matrix = MatrixType::Random(); local 60 VERIFY_IS_EQUAL((matrix.template topLeftCorner<r,c>()), (matrix.template block<r,c>(0,0))); 61 VERIFY_IS_EQUAL((matrix.template topRightCorner<r,c>()), (matrix.template block<r,c>(0,cols-c))); 62 VERIFY_IS_EQUAL((matrix.template bottomLeftCorner<r,c>()), (matrix [all...] |
H A D | geo_transformations.cpp | 39 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); 58 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); 61 VERIFY_IS_APPROX(t1.matrix(), t0.matrix()); 122 // rotation matrix conversion 167 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); 168 t0.matrix().setZero(); 170 VERIFY_IS_APPROX(t0.matrix(), Transform3::MatrixType::Identity()); 182 VERIFY((t0 * t1).matrix().isIdentity(test_precision<Scalar>())); 185 VERIFY_IS_APPROX(t1.matrix(), t [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/correlation/ |
H A D | Covariance.java | 27 * Computes covariances for pairs of arrays or columns of a matrix. 48 /** covariance matrix */ 52 * Create an empty covariance matrix. 67 * Create a Covariance matrix from a rectangular array 86 * Create a Covariance matrix from a rectangular array 101 * Create a covariance matrix from a matrix whose columns 107 * <p>The matrix must have at least two columns and two rows</p> 109 * @param matrix matrix wit 114 Covariance(RealMatrix matrix, boolean biasCorrected) argument 130 Covariance(RealMatrix matrix) argument 160 computeCovarianceMatrix(RealMatrix matrix, boolean biasCorrected) argument 182 computeCovarianceMatrix(RealMatrix matrix) argument 265 checkSufficientData(final RealMatrix matrix) argument [all...] |
H A D | SpearmansCorrelation.java | 52 * Create a SpearmansCorrelation with the given input data matrix 55 * @param dataMatrix matrix of data with columns representing 67 * Create a SpearmansCorrelation from the given data matrix. 69 * @param dataMatrix matrix of data with columns representing 97 * <code>new SpearmansCorrelation(matrix).getRankCorrelation()</code> 99 * <code>new PearsonsCorrelation(rankTransform(matrix))</code> where 100 * <code>rankTransform(matrix)</code> is the result of applying the 102 * <code>matrix.</code> 111 * Computes the Spearman's rank correlation matrix for the columns of the 112 * input matrix 117 computeCorrelationMatrix(RealMatrix matrix) argument 131 computeCorrelationMatrix(double[][] matrix) argument 167 rankTransform(RealMatrix matrix) argument [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
H A D | ComplexSchur_MKL.h | 45 ComplexSchur<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW> >::compute(const Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW>& matrix, bool computeU) \ 52 eigen_assert(matrix.cols() == matrix.rows()); \ 55 if(matrix.cols() == 1) \ 57 m_matT = matrix.cast<ComplexScalar>(); \ 64 lapack_int n = matrix.cols(), sdim, info; \ 65 lapack_int lda = matrix.outerStride(); \ 72 m_matT = matrix; \
|
/external/eigen/doc/examples/ |
H A D | Tutorial_ArrayClass_interop.cpp | 18 result = (m.array() + 4).matrix() * m; 20 result = (m.array() * n.array()).matrix() * m;
|