/external/eigen/Eigen/src/SparseCore/ |
SparseRedux.h | 19 eigen_assert(rows()>0 && cols()>0 && "you are using a non initialized matrix"); 31 eigen_assert(rows()>0 && cols()>0 && "you are using a non initialized matrix"); 32 return Matrix<Scalar,1,Dynamic>::Map(&m_data.value(0), m_data.size()).sum(); 39 eigen_assert(rows()>0 && cols()>0 && "you are using a non initialized matrix"); 40 return Matrix<Scalar,1,Dynamic>::Map(&m_data.value(0), m_data.size()).sum();
|
/external/eigen/test/ |
upperbidiagonalization.cpp | 18 typedef Matrix<typename MatrixType::RealScalar, MatrixType::RowsAtCompileTime, MatrixType::ColsAtCompileTime> RealMatrixType; 19 typedef Matrix<typename MatrixType::Scalar, MatrixType::ColsAtCompileTime, MatrixType::RowsAtCompileTime> TransposeMatrixType; 39 CALL_SUBTEST_5( upperbidiag(Matrix<float,6,4>()) ); 40 CALL_SUBTEST_6( upperbidiag(Matrix<float,5,5>()) ); 41 CALL_SUBTEST_7( upperbidiag(Matrix<double,4,3>()) );
|
/external/skia/gm/ |
imagealphathreshold.cpp | 47 SkMatrix matrix; variable 48 matrix.reset(); 49 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); 50 matrix.postScale(.8f, .8f); 52 canvas->concat(matrix);
|
/external/skia/src/animator/ |
SkDrawShader.cpp | 19 SK_MEMBER(matrix, Matrix), 27 SkDrawShader::SkDrawShader() : matrix(NULL), 40 return matrix ? &matrix->getMatrix() : NULL;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
TextDecoratorUiOperator.java | 19 import android.graphics.Matrix; 46 * @param matrix The matrix that transforms the local coordinates into the screen coordinates. 50 void layoutUi(final Matrix matrix, final RectF composingTextBounds, final boolean useRtlLayout);
|
/external/pdfium/fpdfsdk/src/ |
fpdf_flatten.cpp | 275 CFX_AffineMatrix GetMatrix(CPDF_Rect rcAnnot, CPDF_Rect rcStream, CFX_AffineMatrix matrix)
280 matrix.TransformRect(rcStream);
291 void GetOffset(FX_FLOAT& fa, FX_FLOAT& fd, FX_FLOAT& fe, FX_FLOAT& ff, CPDF_Rect rcAnnot, CPDF_Rect rcStream, CFX_AffineMatrix matrix)
298 if (matrix.a != 0 && matrix.d != 0)
309 FX_FLOAT x1 = matrix.a * rcStream.left + matrix.c * rcStream.bottom + matrix.e;
310 FX_FLOAT y1 = matrix.b * rcStream.left + matrix.d * rcStream.bottom + matrix.f; 498 CFX_AffineMatrix matrix = pAPDic->GetMatrix("Matrix"); local [all...] |
/external/eigen/Eigen/src/Eigenvalues/ |
GeneralizedSelfAdjointEigenSolver.h | 25 * \tparam _MatrixType the type of the matrix of which we are computing the 26 * eigendecomposition; this is expected to be an instantiation of the Matrix 30 * \f$ Av = \lambda Bv \f$. In this case, the matrix \f$ A \f$ should be 31 * selfadjoint and the matrix \f$ B \f$ should be positive definite. 33 * Only the \b lower \b triangular \b part of the input matrix is referenced. 36 * a given matrix. Alternatively, you can use the 60 * can only be used if \p _MatrixType is a fixed-size matrix; use 67 * \param [in] size Positive integer, size of the matrix whose 81 /** \brief Constructor; computes generalized eigendecomposition of given matrix pencil. 83 * \param[in] matA Selfadjoint matrix in matrix pencil [all...] |
EigenSolver.h | 25 * \tparam _MatrixType the type of the matrix of which we are computing the 26 * eigendecomposition; this is expected to be an instantiation of the Matrix 29 * The eigenvalues and eigenvectors of a matrix \f$ A \f$ are scalars 31 * \f$ D \f$ is a diagonal matrix with the eigenvalues on the diagonal, and 32 * \f$ V \f$ is a matrix with the eigenvectors as its columns, then \f$ A V = 33 * V D \f$. The matrix \f$ V \f$ is almost always invertible, in which case we 36 * The eigenvalues and eigenvectors of a matrix may be complex, even when the 37 * matrix is real. However, we can choose real matrices \f$ V \f$ and \f$ D 39 * matrix \f$ D \f$ is not required to be diagonal, but if it is allowed to 47 * a given matrix. Alternatively, you can use the [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
ScaleAnimationTest.java | 23 import android.graphics.Matrix; 84 float trans1X = values[Matrix.MTRANS_X]; 85 float trans1Y = values[Matrix.MTRANS_Y]; 90 float trans2X = values[Matrix.MTRANS_X]; 91 float trans2Y = values[Matrix.MTRANS_Y]; 96 float trans3X = values[Matrix.MTRANS_X]; 97 float trans3Y = values[Matrix.MTRANS_Y]; 124 float trans1X = values[Matrix.MTRANS_X]; 125 float trans1Y = values[Matrix.MTRANS_Y]; 130 float trans2X = values[Matrix.MTRANS_X] [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
querymatrix.c | 26 * mantissa[16] contains the contents of the current matrix in GLfixed 28 * matrix components, so that the internal representation of component i 101 GLfloat matrix[16]; local 112 /* This data structure defines the mapping between the current matrix 113 * mode and the desired matrix identifier. 124 /* Call Mesa to get the current matrix in floating-point form. First, 125 * we have to figure out what the current matrix mode is. 132 * returned mode to get the desired matrix; if we don't find it, 147 /* Now pull the matrix itself. */ 148 _mesa_GetFloatv(desiredMatrix, matrix); [all...] |
/external/eigen/Eigen/src/SVD/ |
UpperBidiagonalization.h | 32 typedef Matrix<Scalar, 1, ColsAtCompileTime> RowVectorType; 33 typedef Matrix<Scalar, RowsAtCompileTime, 1> ColVectorType; 35 typedef Matrix<Scalar, ColsAtCompileTime, 1> DiagVectorType; 36 typedef Matrix<Scalar, ColsAtCompileTimeMinusOne, 1> SuperDiagVectorType; 55 UpperBidiagonalization(const MatrixType& matrix) 56 : m_householder(matrix.rows(), matrix.cols()), 57 m_bidiagonal(matrix.cols(), matrix.cols()), 60 compute(matrix); [all...] |
/external/mesa3d/src/mesa/main/ |
querymatrix.c | 26 * mantissa[16] contains the contents of the current matrix in GLfixed 28 * matrix components, so that the internal representation of component i 99 GLfloat matrix[16]; local 110 /* This data structure defines the mapping between the current matrix 111 * mode and the desired matrix identifier. 122 /* Call Mesa to get the current matrix in floating-point form. First, 123 * we have to figure out what the current matrix mode is. 130 * returned mode to get the desired matrix; if we don't find it, 145 /* Now pull the matrix itself. */ 146 _mesa_GetFloatv(desiredMatrix, matrix); [all...] |
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
fbosync.rs | 158 rs_matrix4x4 matrix; 159 rsMatrixLoadIdentity(&matrix); 161 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 162 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 163 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 164 rsgProgramVertexLoadModelMatrix(&matrix); 174 rs_matrix4x4 proj, matrix; 177 rsMatrixLoadIdentity(&matrix); 178 rsgProgramVertexLoadModelMatrix(&matrix); 220 rs_matrix4x4 matrix; [all...] |
fbotest.rs | 157 rs_matrix4x4 matrix; 158 rsMatrixLoadIdentity(&matrix); 160 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 161 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 162 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 163 rsgProgramVertexLoadModelMatrix(&matrix); 173 rs_matrix4x4 proj, matrix; 176 rsMatrixLoadIdentity(&matrix); 177 rsgProgramVertexLoadModelMatrix(&matrix); 208 rs_matrix4x4 matrix; [all...] |
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
SampleProvider.java | 63 MatrixCursor matrix = new MatrixCursor(projection); local 72 addRow(matrix, PHOTO_INDIVIDUAL_1); 73 addRow(matrix, PHOTO_INDIVIDUAL_2); 74 addRow(matrix, PHOTO_INDIVIDUAL_3); 75 addRow(matrix, PHOTO_INDIVIDUAL_4); 80 addRow(matrix, PHOTO_INDIVIDUAL_1); 83 addRow(matrix, PHOTO_INDIVIDUAL_2); 86 addRow(matrix, PHOTO_INDIVIDUAL_3); 89 addRow(matrix, PHOTO_INDIVIDUAL_4); 97 return matrix; [all...] |
/external/eigen/doc/ |
TutorialMatrixArithmetic.dox | 3 /** \eigenManualPage TutorialMatrixArithmetic Matrix and vector arithmetic 12 Eigen offers matrix/vector arithmetic operations either through overloads of common C++ arithmetic operators such as +, -, *, 14 For the Matrix class (matrices and vectors), operators are only overloaded to support 15 linear-algebraic operations. For example, \c matrix1 \c * \c matrix2 means matrix-matrix product, 41 \li binary operator * as in \c matrix*scalar 42 \li binary operator * as in \c scalar*matrix 43 \li binary operator / as in \c matrix/scalar 44 \li compound operator *= as in \c matrix*=scalar 45 \li compound operator /= as in \c matrix/=scala [all...] |
/external/neven/Embedded/common/src/b_TensorEm/ |
Flt16Mat2D.h | 35 /** 2d matrix with floating point */ 65 /** initializes matrix */ 68 /** destroys matrix */ 87 /** returns determinate of matrix; return bbp is ptrA->bbpE * 2 */ 90 /** inverts matrix */ 93 /** returns inverted matrix */ 96 /** creates identity matrix */ 99 /** creates rotation matrix */ 102 /** creates scale matrix */ 105 /** creates rigid matrix (scale & rotation) * [all...] |
/external/pdfium/fpdfsdk/include/ |
fpdfedit.h | 143 // a - The coefficient "a" of the matrix.
144 // b - The coefficient "b" of the matrix.
145 // c - The coefficient "c" of the matrix.
146 // d - The coefficient "d" of the matrix.
147 // e - The coefficient "e" of the matrix.
148 // f - The coefficient "f" of the matrix.
158 // a - The coefficient "a" of the matrix.
159 // b - The coefficient "b" of the matrix.
160 // c - The coefficient "c" of the matrix.
161 // d - The coefficient "d" of the matrix. [all...] |
/external/pixman/pixman/ |
pixman-matrix.c | 24 * Matrix interfaces 218 tmp[i][0] = (int64_t)t->matrix[i][0] * (v->v[0] >> 16); 219 tmp[i][1] = (int64_t)t->matrix[i][0] * (v->v[0] & 0xFFFF); 220 tmp[i][0] += (int64_t)t->matrix[i][1] * (v->v[1] >> 16); 221 tmp[i][1] += (int64_t)t->matrix[i][1] * (v->v[1] & 0xFFFF); 222 tmp[i][0] += (int64_t)t->matrix[i][2] * (v->v[2] >> 16); 223 tmp[i][1] += (int64_t)t->matrix[i][2] * (v->v[2] & 0xFFFF); 320 hi0 = (int64_t)t->matrix[0][0] * (v->v[0] >> 16); 321 lo0 = (int64_t)t->matrix[0][0] * (v->v[0] & 0xFFFF); 322 hi0 += (int64_t)t->matrix[0][1] * (v->v[1] >> 16) [all...] |
/pdk/apps/CameraITS/pymodules/its/ |
dng.py | 33 matrix, and compute the values that the DNG ColorMatrix and ForwardMatrix 36 all Nexus 5 units). The calibration matrix should be the same for all DNGs 42 ccm: White balance transform matrix, as a list of 9 floats. 43 cal: Per-unit calibration matrix, as a list of 9 floats. 53 # W is the matrix that maps sRGB to XYZ. 60 # HH is the chromatic adaptation matrix from D65 (since sRGB's ref white is 67 # H is a chromatic adaptation matrix from D65 (because sRGB's reference 68 # white is D65) to the calibration illuminant (which is a standard matrix 69 # depending on the illuminant). For a D65 illuminant, the matrix is the 70 # identity. For the A illuminant, the matrix uses the linear Bradfor [all...] |
/external/eigen/unsupported/Eigen/src/Eigenvalues/ |
ArpackSelfAdjointEigenSolver.h | 79 /** \brief Constructor; computes generalized eigenvalues of given matrix with respect to another matrix. 81 * \param[in] A Self-adjoint matrix whose eigenvalues / eigenvectors will 84 * \param[in] B Self-adjoint matrix for the generalized eigenvalue problem. 86 * Must be less than the size of the input matrix, or an error is returned. 97 * to compute the eigenvalues of the matrix \p A with respect to \p B. The eigenvectors are computed if 114 /** \brief Constructor; computes eigenvalues of given matrix. 116 * \param[in] A Self-adjoint matrix whose eigenvalues / eigenvectors will 120 * Must be less than the size of the input matrix, or an error is returned. 131 * to compute the eigenvalues of the matrix \p A. The eigenvectors are computed i [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ScaleToFit.java | 36 private final Matrix mMatrix = new Matrix(); 39 private static final Matrix.ScaleToFit[] sFits = 40 new Matrix.ScaleToFit[] { 41 Matrix.ScaleToFit.FILL, 42 Matrix.ScaleToFit.START, 43 Matrix.ScaleToFit.CENTER, 44 Matrix.ScaleToFit.END 81 private void drawFit(Canvas canvas, int index, Matrix.ScaleToFit stf) {
|
/external/ceres-solver/internal/ceres/ |
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/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
api_transform.c | 31 #include "matrix.h" 37 struct matrix *mat = vg_state_matrix(&ctx->state.vg); 44 struct matrix *mat; 66 struct matrix *mat; 83 struct matrix *dst, src; 106 struct matrix *dst = vg_state_matrix(&ctx->state.vg); 113 struct matrix *dst = vg_state_matrix(&ctx->state.vg); 120 struct matrix *dst = vg_state_matrix(&ctx->state.vg); 127 struct matrix *dst = vg_state_matrix(&ctx->state.vg);
|
/external/chromium_org/third_party/skia/samplecode/ |
SampleTextOnPath.cpp | 54 SkMatrix matrix; local 77 matrix.setScale(-SK_Scalar1, SK_Scalar1); 78 matrix.postTranslate(pathLen, 0); 79 canvas->drawTextOnPath(text, len, path, &matrix, paint); 82 matrix.setScale(SK_Scalar1, -SK_Scalar1); 83 canvas->drawTextOnPath(text, len, path, &matrix, paint); 86 matrix.setScale(-SK_Scalar1, -SK_Scalar1); 87 matrix.postTranslate(pathLen, 0); 88 canvas->drawTextOnPath(text, len, path, &matrix, paint);
|