/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
CanvasTest.java | 42 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 43 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 45 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 46 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(canvas).getDescription()); 48 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 49 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(targetBitmap).getDescription()); 55 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 56 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 58 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 59 "Bitmap for file:/an/image.jpg transformed by matrix", Robolectric.visualize(canvas)) [all...] |
/external/chromium-trace/trace-viewer/third_party/gl-matrix/src/ |
gl-matrix.js.erb | 2 * @fileoverview gl-matrix - High performance matrix and vector operations 41 // gl-matrix lives in a browser, define its namespaces in global 46 // gl-matrix lives in commonjs, define its namespaces in exports 51 <%= GLMatrix.sprockets['gl-matrix-manifest.js'] %>
|
/external/chromium_org/third_party/angle_dx11/src/compiler/ |
Types.h | 99 type(t), precision(p), qualifier(q), size(s), matrix(m), array(a), arraySize(0), structure(0) 104 type(EbtStruct), precision(p), qualifier(EvqTemporary), size(1), matrix(false), array(false), arraySize(0), structure(userDef) 159 bool isMatrix() const { return matrix ? true : false; } 160 void setMatrix(bool m) { matrix = m; } 167 bool isVector() const { return size > 1 && !matrix; } 168 bool isScalar() const { return size == 1 && !matrix && !structure; } 184 matrix == right.matrix && 190 matrix == right.matrix & 265 bool matrix; member in struct:TPublicType [all...] |
/external/chromium_org/third_party/skia/src/animator/ |
SkDrawShader.cpp | 19 SK_MEMBER(matrix, Matrix), 27 SkDrawShader::SkDrawShader() : matrix(NULL), 40 if (matrix) 41 shader->setLocalMatrix(matrix->getMatrix());
|
/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/skia/src/animator/ |
SkDrawShader.cpp | 19 SK_MEMBER(matrix, Matrix), 27 SkDrawShader::SkDrawShader() : matrix(NULL), 40 if (matrix) 41 shader->setLocalMatrix(matrix->getMatrix());
|
/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...] |
/external/eigen/doc/ |
SparseQuickReference.dox | 18 i.e either row major or column major. The default is column major. Most arithmetic operations on sparse matrices will assert that they have the same storage order. Moreover, when interacting with external libraries that are not yet supported by Eigen, it is important to know how to send the required matrix pointers. 24 SparseMatrix<double> sm1(1000,1000); // 1000x1000 compressed sparse matrix of double. 25 SparseMatrix<std::complex<double>,RowMajor> sm2; // Compressed row major matrix of complex double. 30 // Eventually fill the matrix sm1 ... 38 sm1.resize(m,n); //Change sm to a mxn matrix. 41 Note that when calling reserve(), it is not required that nnz is the exact number of nonzero elements in the final matrix. However, an exact estimation will avoid multiple reallocations during the insertion phase. 43 Insertions of values in the sparse matrix can be done directly by looping over nonzero elements and use the insert() function 46 sm1.insert(i, j) = v_ij; // It is assumed that v_ij does not already exist in the matrix. 64 The following functions can be used to set constant or random values in the matrix. 66 sm1.setZero(); // Reset the matrix with zero element [all...] |
C02_TutorialMatrixArithmetic.dox | 3 /** \page TutorialMatrixArithmetic Tutorial page 2 - %Matrix and vector arithmetic 25 Eigen offers matrix/vector arithmetic operations either through overloads of common C++ arithmetic operators such as +, -, *, 27 For the Matrix class (matrices and vectors), operators are only overloaded to support 28 linear-algebraic operations. For example, \c matrix1 \c * \c matrix2 means matrix-matrix product, 54 \li binary operator * as in \c matrix*scalar 55 \li binary operator * as in \c scalar*matrix 56 \li binary operator / as in \c matrix/scalar 57 \li compound operator *= as in \c matrix*=scalar 58 \li compound operator /= as in \c matrix/=scala [all...] |
/frameworks/base/libs/hwui/ |
SkiaShader.cpp | 26 #include "Matrix.h" 76 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 79 setMatrix(matrix); 108 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 109 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) { 110 updateLocalMatrix(matrix); 174 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { 180 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 181 matrix->postTranslate(-pts[0].fX, -pts[0].fY); 182 matrix->postScale(inv, inv) [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 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...] |
/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/eigen/test/ |
qr_colpivoting.cpp | 23 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> MatrixQType; 24 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType; 53 Matrix<Scalar,Rows,Cols> m1; 55 ColPivHouseholderQR<Matrix<Scalar,Rows,Cols> > qr(m1); 62 Matrix<Scalar,Rows,Cols> r = qr.matrixQR().template triangularView<Upper>(); 63 Matrix<Scalar,Rows,Cols> c = qr.householderQ() * r * qr.colsPermutation().inverse(); 66 Matrix<Scalar,Cols,Cols2> m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2); 67 Matrix<Scalar,Rows,Cols2> m3 = m1*m2; 68 m2 = Matrix<Scalar,Cols,Cols2>::Random(Cols,Cols2) [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/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/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...] |
/external/chromium_org/ui/gfx/ |
transform_unittest.cc | 28 EXPECT_FLOAT_EQ((a), (transform).matrix().get(0, 0)); \ 29 EXPECT_FLOAT_EQ((b), (transform).matrix().get(0, 1)); \ 30 EXPECT_FLOAT_EQ((c), (transform).matrix().get(0, 2)); \ 31 EXPECT_FLOAT_EQ((d), (transform).matrix().get(0, 3)); 34 EXPECT_FLOAT_EQ((a), (transform).matrix().get(1, 0)); \ 35 EXPECT_FLOAT_EQ((b), (transform).matrix().get(1, 1)); \ 36 EXPECT_FLOAT_EQ((c), (transform).matrix().get(1, 2)); \ 37 EXPECT_FLOAT_EQ((d), (transform).matrix().get(1, 3)); 40 EXPECT_FLOAT_EQ((a), (transform).matrix().get(2, 0)); \ 41 EXPECT_FLOAT_EQ((b), (transform).matrix().get(2, 1)); 92 SkMatrix44& matrix = transform->matrix(); local 118 SkMatrix44& matrix = transform->matrix(); local [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);
|