/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
fall.rs | 200 rs_matrix4x4 matrix; 208 rsMatrixLoadIdentity(&matrix); 210 rsMatrixTranslate(&matrix, x - g_xOffset * 2, y, 0); 212 rsMatrixTranslate(&matrix, x, y, 0); 213 rsMatrixRotate(&matrix, 90.0f, 0.0f, 0.0f, 1.0f); 218 rsMatrixScale(&matrix, s, s, 1.0f); 219 rsMatrixRotate(&matrix, r, 0.0f, 0.0f, 1.0f); 220 rsgProgramVertexLoadModelMatrix(&matrix); 232 rsMatrixLoadIdentity(&matrix); 234 rsMatrixTranslate(&matrix, x - g_xOffset * 2, y, tz) [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
nexus.rs | 157 rs_matrix4x4 matrix; 179 rsMatrixLoadIdentity(&matrix); 181 rsgProgramVertexLoadTextureMatrix(&matrix); 198 rsMatrixRotate(&matrix, 180.0f, 0.0f, 0.0f, 1.0f); 199 rsgProgramVertexLoadTextureMatrix(&matrix); 215 rsMatrixRotate(&matrix, -90.0f, 0.0f, 0.0f, 1.0f); 216 rsgProgramVertexLoadTextureMatrix(&matrix); 233 rsMatrixRotate(&matrix, 90.0f, 0.0f, 0.0f, 1.0f); 234 rsgProgramVertexLoadTextureMatrix(&matrix); 253 rsMatrixLoadIdentity(&matrix); [all...] |
/cts/suite/cts/deviceTests/opengl/jni/reference/scene/glowing/ |
GlowingScene.cpp | 76 Matrix* GlowingScene::setUpModelMatrix() { 77 return new Matrix(); 80 Matrix* GlowingScene::setUpViewMatrix() { 96 // Set the view matrix. 97 return Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); 100 Matrix* GlowingScene::setUpProjectionMatrix(float width, float height) { 101 // Create a new perspective projection matrix. The height will stay the same 111 return Matrix::newFrustum(left, right, bottom, top, near, far); 170 Matrix* transformMatrix = Matrix::newScale(mFboRatio, 1.0f, 1.0f) [all...] |
/external/ceres-solver/internal/ceres/ |
dense_normal_cholesky_solver.cc | 74 ConstColMajorMatrixRef Aref = A->matrix(); 75 Matrix lhs(num_cols, num_cols); 83 // same matrix being multiplied with itself and that the product is 92 lhs += D.array().square().matrix().asDiagonal(); 113 // Temporarily append a diagonal block to the A matrix, but undo 114 // it before returning the matrix to the user. 119 Matrix lhs(num_cols, num_cols); 125 // matrix is the same as the number of rows. 135 // Undo the modifications to the matrix A. 142 A->matrix().transpose() * ConstVectorRef(b, A->num_rows()) [all...] |
implicit_schur_complement.h | 72 // matrix vector product with the Schur complement 76 // It is straightforward to see that matrix vector products with S can 79 // matrix), it can be done in terms of matrix vector products with E, 90 // num_eliminate_blocks is the number of E blocks in the matrix 93 // preconditioner indicates whether the inverse of the matrix F'F 108 // If D is null, then it is treated as a zero dimensional matrix. It 109 // is important that the matrix A have a BlockStructure object 117 // The Schur complement is a symmetric positive definite matrix, 142 void AddDiagonalAndInvert(const double* D, BlockSparseMatrix* matrix); [all...] |
triplet_sparse_matrix.h | 62 virtual void ToDenseMatrix(Matrix* dense_matrix) const; 78 // Append the matrix B at the bottom of this matrix. B should have 82 // Append the matrix B at the right of this matrix. B should have 86 // Resize the matrix. Entries which fall outside the new matrix 96 // Returns true if the entries of the matrix obey the row, column, 102 // Build a sparse diagonal matrix of size num_rows x num_rows from 104 // sparse matrix [all...] |
/external/chromium_org/cc/animation/ |
transform_operations.cc | 33 to_return.PreconcatTransform(operations_[i].matrix); 69 to_add.matrix.Translate3d(x, y, z); 81 to_add.matrix.RotateAbout(gfx::Vector3dF(x, y, z), degrees); 93 to_add.matrix.Scale3d(x, y, z); 104 to_add.matrix.SkewX(x); 105 to_add.matrix.SkewY(y); 115 to_add.matrix.ApplyPerspectiveDepth(depth); 122 void TransformOperations::AppendMatrix(const gfx::Transform& matrix) { 124 to_add.matrix = matrix; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
WebKitCSSMatrix.idl | 33 // These attributes are simple aliases for certain elements of the 4x4 matrix 60 // Multiply this matrix by secondMatrix, on the right (result = this * secondMatrix) 63 // Return the inverse of this matrix. Throw an exception if the matrix is not invertible 66 // Return this matrix translated by the passed values. 72 // Returns this matrix scaled by the passed values. 79 // Returns this matrix rotated by the passed values. 86 // Returns this matrix rotated about the passed axis by the passed angle. 94 // Returns this matrix skewed along the X axis by the passed values. 98 // Returns this matrix skewed along the Y axis by the passed values [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
GrSWMaskHelper.cpp | 88 const SkMatrix* matrix) { 89 if (NULL != matrix) { 90 fMatrix = *matrix; 143 * Software rasterizes path to A8 mask (possibly using the context's matrix) 152 SkMatrix* matrix) { 157 if (!helper.init(resultBounds, matrix)) { 188 // We want to use device coords to compute the texture coordinates. We set our matrix to be 189 // equal to the view matrix followed by a translation so that the top-left of the device bounds 190 // maps to 0,0, and then a scaling matrix to normalized coords. We apply this matrix to th [all...] |
/external/chromium_org/third_party/skia/src/gpu/gl/ |
GrGLEffectMatrix.h | 17 * This is a helper to implement a matrix in a GrGLEffect that operates on incoming coords in the 19 * coords in the vertex shader are local coordinates this class accounts for the coord change matrix 21 * change matrix is ignored. The GrGLEffectMatrix will emit different code based on the type of 22 * matrix and thus must contribute to the effect's key. 24 * This class cannot be used to apply a matrix to coordinates that come in the form of custom vertex 29 // We specialize the generated code for each of these matrix types. 36 // The key for is made up of a matrix type and a bit that indicates the source of the input 52 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may place these bits at an 82 * Emits code to implement the matrix in the VS. A varying is added as an output of the VS and 107 * Call from a GrGLEffect's subclass to update the texture matrix. The effectMatrix and textur [all...] |
/external/chromium_org/ui/gfx/ |
skia_util.cc | 53 flattened->set(0, SkDoubleToScalar(transform.matrix().getDouble(0, 0))); 54 flattened->set(1, SkDoubleToScalar(transform.matrix().getDouble(0, 1))); 55 flattened->set(2, SkDoubleToScalar(transform.matrix().getDouble(0, 3))); 56 flattened->set(3, SkDoubleToScalar(transform.matrix().getDouble(1, 0))); 57 flattened->set(4, SkDoubleToScalar(transform.matrix().getDouble(1, 1))); 58 flattened->set(5, SkDoubleToScalar(transform.matrix().getDouble(1, 3))); 59 flattened->set(6, SkDoubleToScalar(transform.matrix().getDouble(3, 0))); 60 flattened->set(7, SkDoubleToScalar(transform.matrix().getDouble(3, 1))); 61 flattened->set(8, SkDoubleToScalar(transform.matrix().getDouble(3, 3))); 73 // Unscale matrix by |bitmap_scale| such that the bitmap is drawn at th [all...] |
/external/eigen/Eigen/src/Core/ |
PermutationMatrix.h | 25 * This class is the base class for all expressions representing a permutation matrix, 27 * The convention followed here is that if \f$ \sigma \f$ is a permutation, the corresponding permutation matrix 36 * operator* to multiply any kind of permutation object with any kind of matrix expression (MatrixBase) 71 typedef Matrix<Scalar,RowsAtCompileTime,ColsAtCompileTime,0,MaxRowsAtCompileTime,MaxColsAtCompileTime> 113 /** \returns the size of a side of the respective square matrix, i.e., the number of indices */ 126 /** \returns a Matrix object initialized from this permutation matrix. Notice that it 127 * is inefficient to return this Matrix object by value. For efficiency, favor using 128 * the Matrix constructor taking EigenBase objects. 147 /** Sets *this to be the identity permutation matrix */ [all...] |
/external/eigen/test/ |
mixingtypes.cpp | 30 typedef Matrix<float, SizeAtCompileType, SizeAtCompileType> Mat_f; 31 typedef Matrix<double, SizeAtCompileType, SizeAtCompileType> Mat_d; 32 typedef Matrix<std::complex<float>, SizeAtCompileType, SizeAtCompileType> Mat_cf; 33 typedef Matrix<std::complex<double>, SizeAtCompileType, SizeAtCompileType> Mat_cd; 34 typedef Matrix<float, SizeAtCompileType, 1> Vec_f; 35 typedef Matrix<double, SizeAtCompileType, 1> Vec_d; 36 typedef Matrix<std::complex<float>, SizeAtCompileType, 1> Vec_cf; 37 typedef Matrix<std::complex<double>, SizeAtCompileType, 1> Vec_cd; 94 // check matrix-matrix product [all...] |
/external/llvm/lib/CodeGen/ |
LiveRegMatrix.cpp | 33 "Live Register Matrix", false, false) 37 "Live Register Matrix", false, false) 56 if (NumRegUnits != Matrix.size()) 58 Matrix.init(LIUAlloc, NumRegUnits); 66 for (unsigned i = 0, e = Matrix.size(); i != e; ++i) { 67 Matrix[i].clear(); 80 Matrix[*Units].unify(VirtReg); 93 Matrix[*Units].extract(VirtReg); 131 Q.init(UserTag, &VirtReg, &Matrix[RegUnit]); 148 // Check the matrix for virtual register interference [all...] |
/external/skia/src/gpu/ |
GrSWMaskHelper.cpp | 88 const SkMatrix* matrix) { 89 if (NULL != matrix) { 90 fMatrix = *matrix; 143 * Software rasterizes path to A8 mask (possibly using the context's matrix) 152 SkMatrix* matrix) { 157 if (!helper.init(resultBounds, matrix)) { 188 // We want to use device coords to compute the texture coordinates. We set our matrix to be 189 // equal to the view matrix followed by a translation so that the top-left of the device bounds 190 // maps to 0,0, and then a scaling matrix to normalized coords. We apply this matrix to th [all...] |
/external/skia/src/gpu/gl/ |
GrGLEffectMatrix.h | 17 * This is a helper to implement a matrix in a GrGLEffect that operates on incoming coords in the 19 * coords in the vertex shader are local coordinates this class accounts for the coord change matrix 21 * change matrix is ignored. The GrGLEffectMatrix will emit different code based on the type of 22 * matrix and thus must contribute to the effect's key. 24 * This class cannot be used to apply a matrix to coordinates that come in the form of custom vertex 29 // We specialize the generated code for each of these matrix types. 36 // The key for is made up of a matrix type and a bit that indicates the source of the input 52 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may place these bits at an 82 * Emits code to implement the matrix in the VS. A varying is added as an output of the VS and 107 * Call from a GrGLEffect's subclass to update the texture matrix. The effectMatrix and textur [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
MatrixFit.java | 22 // Simple implementation of a matrix fit in N dimensions. 75 // Make an empty (dim) x (dim + 1) matrix and fill it 89 // Make an empty (dim+1) x (dim+1) matrix and fill it 144 private void printMatrix(String name, double[][] matrix) { 146 for (int i = 0; i < matrix.length; i++) { 148 for (int j = 0; j < matrix[0].length; j++) { 149 str += "" + matrix[i][j] + " "; 156 * Transforms the given matrix into a row echelon matrix 176 if (Math.abs(m[y][y]) <= sEPS) { // Singular Matrix [all...] |
/external/chromium-trace/trace-viewer/third_party/gl-matrix/spec/gl-matrix/ |
mat2d-spec.js | 54 it("should return a 6 element array initialized to a 2x3 identity matrix", function() { expect(result).toBeEqualish(identity); }); 75 describe("with a separate output matrix", function() { 83 describe("when matA is the output matrix", function() { 100 describe("with a separate output matrix", function() { 109 describe("when matA is the output matrix", function() { 117 describe("when matB is the output matrix", function() { 127 describe("with a separate output matrix", function() { 135 describe("when matA is the output matrix", function() { 147 describe("with a separate output matrix", function() { 155 describe("when matA is the output matrix", function() [all...] |
/external/chromium_org/cc/output/ |
filter_operation.cc | 51 FilterOperation::FilterOperation(FilterType type, SkScalar matrix[20]) 58 memcpy(matrix_, matrix, sizeof(matrix_)); 141 SkScalar matrix[20]; local 142 memset(matrix, 0, 20 * sizeof(SkScalar)); 143 matrix[0] = matrix[6] = matrix[12] = matrix[18] = 1.f; 144 return FilterOperation::CreateColorMatrixFilter(matrix); 243 scoped_ptr<ListValue> matrix(new ListValue) [all...] |
/external/eigen/doc/ |
C00_QuickStartGuide.dox | 39 The Eigen header files define many types, but for simple applications it may be enough to use only the \c MatrixXd type. This represents a matrix of arbitrary size (hence the \c X in \c MatrixXd), in which every entry is a \c double (hence the \c d in \c MatrixXd). See the \ref QuickRef_Types "quick reference guide" for an overview of the different types you can use to represent a matrix. 43 The first line of the \c main function declares a variable of type \c MatrixXd and specifies that it is a matrix with 2 rows and 2 columns (the entries are not initialized). The statement <tt>m(0,0) = 3</tt> sets the entry in the top-left corner to 3. You need to use round parentheses to refer to entries in the matrix. As usual in computer science, the index of the first index is 0, as opposed to the convention in mathematics that the first index is 1. 45 The following three statements sets the other three entries. The final line outputs the matrix \c m to the standard output stream. 68 The second example starts by declaring a 3-by-3 matrix \c m which is initialized using the \link DenseBase::Random(Index,Index) Random() \endlink method with random values between -1 and 1. The next line applies a linear mapping such that the values are between 10 and 110. The function call \link DenseBase::Constant(Index,Index,const Scalar&) MatrixXd::Constant\endlink(3,3,1.2) returns a 3-by-3 matrix expression having all coefficients equal to 1.2. The rest is standard arithmetics. 81 The final line of the program multiplies the matrix \c m with the vector \c v and outputs the result. 83 Now look back at the second example program. We presented two versions of it. In the version in the left column, the matrix is of type \c MatrixXd which represents matrices of arbitrary size. The version in the right column is similar, except that the matrix is of type \c Matrix3d, which represents matrices of a fixed size (here 3-by-3). Because the type (…) [all...] |
C07_TutorialReductionsVisitorsBroadcasting.dox | 25 In Eigen, a reduction is a function taking a matrix or array, and returning a single 27 returning the sum of all the coefficients inside a given matrix or array. 38 The \em trace of a matrix, as returned by the function \c trace(), is the sum of the diagonal coefficients and can equivalently be computed <tt>a.diagonal().sum()</tt>. 47 These operations can also operate on matrices; in that case, a n-by-p matrix is seen as a vector of size (n*p), so for example the \link MatrixBase::norm() norm() \endlink method returns the "Frobenius" or "Hilbert-Schmidt" norm. We refrain from speaking of the \f$\ell^2\f$ norm of a matrix because that can mean different things. 65 - \link DenseBase::all() all() \endlink returns \b true if all of the coefficients in a given Matrix or Array evaluate to \b true . 66 - \link DenseBase::any() any() \endlink returns \b true if at least one of the coefficients in a given Matrix or Array evaluates to \b true . 67 - \link DenseBase::count() count() \endlink returns the number of coefficients in a given Matrix or Array that evaluate to \b true. 88 a Matrix or Array. The simplest examples are 91 the location of the greatest or smallest coefficient in a Matrix or [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
arc.c | 29 #include "matrix.h" 141 /* Pre-compute rotation matrix entries */ 173 /* Pre-compute rotation matrix entries */ 231 struct matrix matrix; local 237 matrix_load_identity(&matrix); 238 matrix_scale(&matrix, 1.f, arc->a/arc->b); 239 matrix_rotate(&matrix, -arc->theta); 240 matrix_map_point(&matrix, 243 matrix_map_point(&matrix, [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.c | 29 #include "matrix.h" 141 /* Pre-compute rotation matrix entries */ 173 /* Pre-compute rotation matrix entries */ 231 struct matrix matrix; local 237 matrix_load_identity(&matrix); 238 matrix_scale(&matrix, 1.f, arc->a/arc->b); 239 matrix_rotate(&matrix, -arc->theta); 240 matrix_map_point(&matrix, 243 matrix_map_point(&matrix, [all...] |
/external/eigen/Eigen/src/Geometry/ |
Transform.h | 76 * - #Affine: the transformation is stored as a (Dim+1)^2 matrix, 78 * - #AffineCompact: the transformation is stored as a (Dim)x(Dim+1) matrix. 79 * - #Projective: the transformation is stored as a (Dim+1)^2 matrix 81 * \tparam _Options has the same meaning as in class Matrix. It allows to specify DontAlign and/or RowMajor. 82 * These Options are passed directly to the underlying matrix type. 84 * The homography is internally represented and stored by a matrix which 85 * is available through the matrix() method. To understand the behavior of 87 * matrix representation. The chosen convention is right multiply: 91 * Therefore, an affine transformation matrix M is shaped like this: 101 * However, unlike a plain matrix, the Transform class provides many feature 367 inline const MatrixType& matrix() const { return m_matrix; } function in class:Eigen::Transform 369 inline MatrixType& matrix() { return m_matrix; } function in class:Eigen::Transform [all...] |
/external/chromium_org/third_party/skia/include/utils/ |
SkMatrix44.h | 145 * Return a reference to a const identity matrix 151 kTranslate_Mask = 0x01, //!< set if the matrix has translation 152 kScale_Mask = 0x02, //!< set if the matrix has any scale != 1 153 kAffine_Mask = 0x04, //!< set if the matrix skews or rotates 154 kPerspective_Mask = 0x08 //!< set if the matrix is in perspective 158 * Returns a bitfield describing the transformations the matrix may 173 * Return true if the matrix is identity. 180 * Return true if the matrix contains translate or is identity. 187 * Return true if the matrix only contains scale or translate or is identity. 197 * get a value from the matrix. The row,col parameters work as follows [all...] |