/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
GLES20TriangleRenderer.java | 34 import android.opengl.Matrix; 75 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); 76 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 77 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 89 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 154 Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
GLES20TriangleRenderer.java | 34 import android.opengl.Matrix; 73 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); 74 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 75 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 87 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 152 Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
/external/eigen/Eigen/src/SparseLU/ |
SparseLU_SupernodalMatrix.h | 22 * Only the lower triangular matrix has supernodes. 38 typedef Matrix<StorageIndex,Dynamic,1> IndexVector; 39 typedef Matrix<Scalar,Dynamic,1> ScalarVector; 56 * Set appropriate pointers for the lower triangular supernodal matrix 178 * \brief InnerIterator class to iterate over nonzero values of the current column in the supernodal matrix L 218 const MappedSuperNodalMatrix& m_matrix; // Supernodal lower triangular matrix 229 * \brief Solve with the supernode triangular matrix 242 Matrix<Scalar,Dynamic,Dest::ColsAtCompileTime, ColMajor> work(n, nrhs); // working vector 273 Map<const Matrix<Scalar,Dynamic,Dynamic, ColMajor>, 0, OuterStride<> > A( &(Lval[luptr]), nsupc, nsupc, OuterStride<>(lda) ); 274 Map< Matrix<Scalar,Dynamic,Dest::ColsAtCompileTime, ColMajor>, 0, OuterStride<> > U (&(X(fsupc,0)), nsupc, nrh (…) [all...] |
SparseLUImpl.h | 23 typedef Matrix<Scalar,Dynamic,1> ScalarVector; 24 typedef Matrix<StorageIndex,Dynamic,1> IndexVector; 25 typedef Matrix<Scalar,Dynamic,Dynamic,ColMajor> ScalarMatrix; 28 typedef Ref<Matrix<Scalar,Dynamic,1> > BlockScalarVector; 29 typedef Ref<Matrix<StorageIndex,Dynamic,1> > BlockIndexVector;
|
/external/eigen/unsupported/Eigen/src/Polynomials/ |
Companion.h | 51 typedef Matrix<Scalar, Deg, 1> RightColumn; 53 typedef Matrix<Scalar, Deg_1, 1> BottomLeftDiagonal; 55 typedef Matrix<Scalar, Deg, Deg> DenseCompanionMatrixType; 56 typedef Matrix< Scalar, _Deg, Deg_1 > LeftBlock; 57 typedef Matrix< Scalar, Deg_1, Deg_1 > BottomLeftBlock; 58 typedef Matrix< Scalar, 1, Deg_1 > LeftBlockFirstRow; 125 * "Balancing a matrix for calculation of eigenvalues and eigenvectors" 127 * A matrix with non zero row and non zero column is balanced
|
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/ |
ClassifierActivity.java | 22 import android.graphics.Matrix; 87 private Matrix frameToCropTransform; 88 private Matrix cropToFrameTransform; 139 cropToFrameTransform = new Matrix(); 191 final Matrix matrix = new Matrix(); local 193 matrix.postScale(scaleFactor, scaleFactor); 194 matrix.postTranslate( 197 canvas.drawBitmap(copy, matrix, new Paint()) [all...] |
/external/tensorflow/tensorflow/contrib/rnn/kernels/ |
lstm_ops.cc | 52 typename TTypes<T>::Matrix xh, typename TTypes<T>::Matrix i, 53 typename TTypes<T>::Matrix cs, typename TTypes<T>::Matrix f, 54 typename TTypes<T>::Matrix o, typename TTypes<T>::Matrix ci, 55 typename TTypes<T>::Matrix co, typename TTypes<T>::Matrix icfo, 56 typename TTypes<T>::Matrix h) { 136 typename TTypes<T>::ConstMatrix h_grad, typename TTypes<T>::Matrix do_ [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 31 import android.graphics.Matrix; 378 Matrix rotateMatrix = new Matrix(); 598 Matrix rotateMatrix = new Matrix(); 599 Matrix inverseRotateMatrix = new Matrix(); 737 Matrix m = new Matrix(); 739 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL) [all...] |
/external/eigen/test/ |
triangular.cpp | 18 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 81 // test back and forward substitution with a matrix as the rhs 119 Matrix<Scalar, MatrixType::ColsAtCompileTime, Dynamic> m5(cols, internal::random<int>(1,20)); m5.setRandom(); 120 Matrix<Scalar, Dynamic, MatrixType::RowsAtCompileTime> m6(internal::random<int>(1,20), rows); m6.setRandom(); 232 CALL_SUBTEST_1( triangular_square(Matrix<float, 1, 1>()) ); 233 CALL_SUBTEST_2( triangular_square(Matrix<float, 2, 2>()) ); 235 CALL_SUBTEST_4( triangular_square(Matrix<std::complex<float>,8, 8>()) ); 237 CALL_SUBTEST_6( triangular_square(Matrix<float,Dynamic,Dynamic,RowMajor>(r, r)) ); 239 CALL_SUBTEST_7( triangular_rect(Matrix<float, 4, 5>()) ); 240 CALL_SUBTEST_8( triangular_rect(Matrix<double, 6, 2>()) ) [all...] |
svd_common.h | 21 // Check that the matrix m is properly reconstructed and that the U and V factors are unitary 37 typedef Matrix<Scalar, RowsAtCompileTime, RowsAtCompileTime> MatrixUType; 38 typedef Matrix<Scalar, ColsAtCompileTime, ColsAtCompileTime> MatrixVType; 88 // For instance, with Dived&Conquer SVD, if only the factor 'V' is computedt then different matrix-matrix product implementation will be used 113 typedef Matrix<Scalar, RowsAtCompileTime, Dynamic> RhsType; 114 typedef Matrix<Scalar, ColsAtCompileTime, Dynamic> SolutionType; 166 // check minimal norm solutions, the inoput matrix m is only used to recover problem size 178 typedef Matrix<Scalar, ColsAtCompileTime, Dynamic> SolutionType; 185 typedef Matrix<Scalar, RankAtCompileTime2, ColsAtCompileTime> MatrixType2 [all...] |
mapped_matrix.cpp | 165 typedef Matrix<Scalar,Dynamic,Dynamic> MatrixType; 175 typedef Matrix<Scalar,Dynamic,1> VectorType; 187 CALL_SUBTEST_1( map_class_vector(Matrix<float, 1, 1>()) ); 188 CALL_SUBTEST_1( check_const_correctness(Matrix<float, 1, 1>()) ); 197 CALL_SUBTEST_1( map_class_matrix(Matrix<float, 1, 1>()) ); 199 CALL_SUBTEST_11( map_class_matrix(Matrix<float,3,5>()) ); 203 CALL_SUBTEST_6( map_static_methods(Matrix<double, 1, 1>()) );
|
cholesky.cpp | 30 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 45 // we are doing some downdates, so it might be the case that the matrix is not SPD anymore 69 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; 70 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 76 // let's make sure the matrix is not singular or near singular 150 symm = -symm; // test a negative matrix 233 Matrix<Scalar,Dynamic,Dynamic> a = Matrix<Scalar,Dynamic,Dynamic>::Random(rows,r); 251 Matrix<Scalar,Dynamic,Dynamic> a = Matrix<Scalar,Dynamic,Dynamic>::Random(rows,rows) [all...] |
adjoint.cpp | 76 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 77 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; 143 typedef Matrix<RealScalar, MatrixType::RowsAtCompileTime, 1> RealVectorType; 152 CALL_SUBTEST_1( adjoint(Matrix<float, 1, 1>()) ); 162 CALL_SUBTEST_9( adjoint(Matrix<int,4,4>()) ); 165 CALL_SUBTEST_10( adjoint(Matrix<float,8,8>()) ); 166 CALL_SUBTEST_11( adjoint(Matrix<double,4,4>()) ); 167 CALL_SUBTEST_12( adjoint(Matrix<int,8,8>()) ); 169 // test a large static matrix only once 170 CALL_SUBTEST_7( adjoint(Matrix<float, 100, 100>()) ) [all...] |
product_trmm.cpp | 25 typedef Matrix<Scalar,Dynamic,Dynamic,TriOrder> TriMatrix; 26 typedef Matrix<Scalar,Dynamic,OtherCols,OtherCols==1?ColMajor:OtherOrder> OnTheRight; 27 typedef Matrix<Scalar,OtherCols,Dynamic,OtherCols==1?RowMajor:OtherOrder> OnTheLeft; 29 typedef Matrix<Scalar,Dynamic,OtherCols,OtherCols==1?ColMajor:ResOrder> ResXS; 30 typedef Matrix<Scalar,OtherCols,Dynamic,OtherCols==1?RowMajor:ResOrder> ResSX; 68 // TODO check with sub-matrix expressions ?
|
product_trsolve.cpp | 34 Matrix<Scalar,Size,Size,ColMajor> cmLhs(size,size); 35 Matrix<Scalar,Size,Size,RowMajor> rmLhs(size,size); 39 Matrix<Scalar,Size,Cols,colmajor> cmRhs(size,cols); 40 Matrix<Scalar,Size,Cols,rowmajor> rmRhs(size,cols); 41 Matrix<Scalar,Dynamic,Dynamic,colmajor> ref(size,cols);
|
svd_fill.h | 30 Matrix<RealScalar,Dynamic,1> d = Matrix<RealScalar,Dynamic,1>::Random(diagSize); 45 Matrix<Scalar,Dynamic,Dynamic> U(m.rows(),diagSize); 46 Matrix<Scalar,Dynamic,Dynamic> VT(diagSize,m.cols()); 49 // in very rare cases let's try with a pure diagonal matrix 67 Matrix<Scalar,Dynamic,1> samples(9);
|
/external/eigen/unsupported/test/ |
openglsupport.cpp | 23 Matrix<float,4,4,ColMajor> m; m.setZero(); \ 149 VERIFY_MATRIX(glRotate(qd), Projective3d(qd).matrix()); 152 VERIFY_MATRIX(glRotate(qf), Projective3f(qf).matrix()); 155 Transform<float,3,AffineCompact> acf3; acf3.matrix().setRandom(); 156 VERIFY_MATRIX(glLoadMatrix(acf3), Projective3f(acf3).matrix()); 157 VERIFY_MATRIX(glMultMatrix(acf3), Projective3f(acf3).matrix()); 160 VERIFY_MATRIX(glLoadMatrix(af3), Projective3f(af3).matrix()); 161 VERIFY_MATRIX(glMultMatrix(af3), Projective3f(af3).matrix()); 163 Transform<float,3,Projective> pf3; pf3.matrix().setRandom(); 164 VERIFY_MATRIX(glLoadMatrix(pf3), Projective3f(pf3).matrix()); [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
RotateAnimationTest.java | 27 import android.graphics.Matrix; 114 Matrix expectedMatrix = new Matrix(); 138 private void assertMatrixEquals(Matrix expectedMatrix, Matrix actualMatrix) { 172 Matrix expectedMatrix = new Matrix();
|
/frameworks/base/core/java/android/view/ |
TextureView.java | 23 import android.graphics.Matrix; 116 private final Matrix mMatrix = new Matrix(); 479 * @see #getTransform(android.graphics.Matrix) 483 public void setTransform(Matrix transform) { 492 * @param transform The {@link Matrix} in which to copy the current 495 * @return The specified matrix if not null or a new {@link Matrix} 498 * @see #setTransform(android.graphics.Matrix) 500 public Matrix getTransform(Matrix transform) [all...] |
Surface.java | 23 import android.graphics.Matrix; 112 // A matrix to scale the matrix set by application. This is set to null for 114 private Matrix mCompatibleMatrix; 471 mCompatibleMatrix = new Matrix(); 841 * <li>Scales the matrix in setMatrix by the application scale, except if 842 * the matrix looks like obtained from getMatrix. This is a hack to handle 843 * the case that an application uses getMatrix to keep the original matrix, 844 * set matrix of its own, then set the original matrix back. There is n [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
CursorAnchorInfo.java | 20 import android.graphics.Matrix; 72 * transformed with the transformation matrix when rendered on the screen. This should be 79 * transformed with the transformation matrix when rendered on the screen. This should be 86 * transformed with the transformation matrix when rendered on the screen. This should be 93 * transformed with the transformation matrix when rendered on the screen. This should be 101 * Java chars, in the local coordinates that will be transformed with the transformation matrix 107 * Transformation matrix that is applied to any positional information of this class to 304 * coordinates that will be transformed with the transformation matrix when rendered on the 308 * will be transformed with the transformation matrix when rendered on the screen. This 311 * that will be transformed with the transformation matrix when rendered on the screen. Thi 554 final Matrix matrix = new Matrix(); local [all...] |
/frameworks/base/core/java/android/app/ |
ActivityTransitionCoordinator.java | 19 import android.graphics.Matrix; 210 private ArrayList<Matrix> mSharedElementParentMatrices; 488 Matrix tempMatrix, RectF tempRect, int[] decorLoc) { 500 if (scaleType == ImageView.ScaleType.MATRIX) { 565 mSharedElementParentMatrices = new ArrayList<Matrix>(numSharedElements); 572 Matrix matrix = new Matrix(); local 574 parent.transformMatrixToLocal(matrix); 575 matrix.postTranslate(parent.getScrollX(), parent.getScrollY()) 822 float[] matrix = new float[9]; local [all...] |
/external/tensorflow/tensorflow/core/ops/ |
sparse_ops.cc | 36 c->set_output(0, c->Matrix(InferenceContext::kUnknownDim, 79 0, c->Matrix(InferenceContext::kUnknownDim, c->Dim(a_shape, 0))); 117 c->set_output(0, c->Matrix(output_left, output_right)); 149 c->set_output(0, c->Matrix(InferenceContext::kUnknownDim, 3)); 164 c->set_output(0, c->Matrix(InferenceContext::kUnknownDim, 178 // serialized sparse is [?,3] matrix. 185 c->set_output(0, c->Matrix(InferenceContext::kUnknownDim, 247 c->set_output(0, c->Matrix(output_row_count, output_ind_cols)); 270 c->set_output(0, c->Matrix(c->UnknownDim(), 2)); 289 c->Matrix(InferenceContext::kUnknownDim, c->NumElements(input_shape)) [all...] |
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
GL2CameraEye.java | 37 import android.opengl.Matrix; 146 Matrix.setIdentityM(mSTMatrix, 0); 147 Matrix.setIdentityM(mMMatrix, 0); 221 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 222 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 237 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 322 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 5f, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 376 Matrix.setIdentityM(mMMatrix, 0); 377 Matrix.translateM(mMMatrix, 0, mPos[0], mPos[1], mPos[2]);
|
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
Utils.java | 24 import android.graphics.Matrix; 118 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode, 148 @RawRes int docRes, @Nullable Rect clipping, @Nullable Matrix transformation, 168 transformation = new Matrix(); 244 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode,
|