/external/eigen/Eigen/src/Geometry/ |
RotationBase.h | 36 /** corresponding linear transformation matrix type */ 37 typedef Matrix<Scalar,Dim,Dim> RotationMatrixType; 38 typedef Matrix<Scalar,Dim,1> VectorType; 44 /** \returns an equivalent rotation matrix */ 47 /** \returns an equivalent rotation matrix 50 EIGEN_DEVICE_FUNC inline RotationMatrixType matrix() const { return derived().toRotationMatrix(); } function in class:Eigen::RotationBase 65 * - a DimxDim linear transformation matrix 66 * - a DimxDim diagonal matrix (axis aligned scaling) 99 // implementation of the generic product rotation * matrix 104 typedef Matrix<typename RotationDerived::Scalar,Dim,Dim> ReturnType [all...] |
/external/eigen/test/ |
householder.cpp | 26 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 27 typedef Matrix<Scalar, internal::decrement_size<MatrixType::RowsAtCompileTime>::ret, 1> EssentialVectorType; 28 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; 29 typedef Matrix<Scalar, Dynamic, MatrixType::ColsAtCompileTime> HBlockMatrixType; 30 typedef Matrix<Scalar, Dynamic, 1> HCoeffsVectorType; 32 typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, MatrixType::RowsAtCompileTime> TMatrixType; 34 Matrix<Scalar, EIGEN_SIZE_MAX(MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime), 1> _tmp((std::max)(rows,cols)); 97 VERIFY_IS_APPROX(m3 * m5, m1); // test evaluating hseq to a dense matrix, then applying 123 VERIFY_IS_APPROX(m3 * m5, m1); // test evaluating rhseq to a dense matrix, then applying 129 CALL_SUBTEST_1( householder(Matrix<double,2,2>()) ) [all...] |
miscmatrices.cpp | 19 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; 29 Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> 41 CALL_SUBTEST_1( miscMatrices(Matrix<float, 1, 1>()) );
|
sparse.h | 49 /* Initializes both a sparse and dense matrix with same random values, 52 * allowing to control the shape of the matrix. 58 Matrix<Scalar,Dynamic,Dynamic,Opt1>& refMat, 61 std::vector<Matrix<StorageIndex,2,1> >* zeroCoords = 0, 62 std::vector<Matrix<StorageIndex,2,1> >* nonzeroCoords = 0) 99 nonzeroCoords->push_back(Matrix<StorageIndex,2,1> (ai,aj)); 103 zeroCoords->push_back(Matrix<StorageIndex,2,1> (ai,aj)); 113 Matrix<Scalar,Dynamic,Dynamic, Opt1>& refMat, 116 std::vector<Matrix<Index,2,1> >* zeroCoords = 0, 117 std::vector<Matrix<Index,2,1> >* nonzeroCoords = 0 [all...] |
umeyama.cpp | 20 // Constructs a random matrix from the unitary group U(size). 22 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> randMatrixUnitary(int size) 25 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixType; 34 // initialize random matrix 50 // the numerical orthogonality of the matrix 68 eigen_assert(false && "randMatrixUnitary: Could not construct unitary matrix!"); 73 // Constructs a random matrix from the special unitary group SU(size). 75 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> randMatrixSpecialUnitary(int size) 79 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> MatrixType; 81 // initialize unitary matrix [all...] |
determinant.cpp | 50 // check empty matrix 58 CALL_SUBTEST_1( determinant(Matrix<float, 1, 1>()) ); 59 CALL_SUBTEST_2( determinant(Matrix<double, 2, 2>()) ); 60 CALL_SUBTEST_3( determinant(Matrix<double, 3, 3>()) ); 61 CALL_SUBTEST_4( determinant(Matrix<double, 4, 4>()) ); 62 CALL_SUBTEST_5( determinant(Matrix<std::complex<double>, 10, 10>()) );
|
prec_inverse_4x4.cpp | 61 Matrix<Scalar,5,5> mat(s,s); 75 CALL_SUBTEST_1(( inverse_general_4x4<Matrix<float,4,4,RowMajor> >(200000 * g_repeat) )); 77 CALL_SUBTEST_2((inverse_permutation_4x4<Matrix<double,4,4,RowMajor> >())); 78 CALL_SUBTEST_2(( inverse_general_4x4<Matrix<double,4,4,ColMajor> >(200000 * g_repeat) )); 79 CALL_SUBTEST_2(( inverse_general_4x4<Matrix<double,4,4,RowMajor> >(200000 * g_repeat) ));
|
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/ |
rwupdt.h | 7 Matrix< Scalar, Dynamic, Dynamic > &r, 8 const Matrix< Scalar, Dynamic, 1> &w, 9 Matrix< Scalar, Dynamic, 1> &b,
|
fdjac1.h | 8 Matrix< Scalar, Dynamic, 1 > &x, 9 Matrix< Scalar, Dynamic, 1 > &fvec, 10 Matrix< Scalar, Dynamic, Dynamic > &fjac, 31 Matrix< Scalar, Dynamic, 1 > wa1(n); 32 Matrix< Scalar, Dynamic, 1 > wa2(n);
|
/frameworks/base/core/java/android/gesture/ |
OrientedBoundingBox.java | 19 import android.graphics.Matrix; 60 Matrix matrix = new Matrix(); local 61 matrix.setRotate(orientation); 62 matrix.postTranslate(centerX, centerY); 63 matrix.mapPoints(point); 68 matrix.mapPoints(point); 73 matrix.mapPoints(point); 78 matrix.mapPoints(point) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
AssetsAtlasActivity.java | 23 import android.graphics.Matrix; 53 final Matrix matrix = new Matrix(); local 54 matrix.setScale(0.5f, 0.5f); 61 canvas.drawBitmap(mBitmap, matrix, null);
|
Bitmaps3dActivity.java | 24 import android.graphics.Matrix; 46 private Matrix mMatrix; 54 mMatrix = new Matrix();
|
/frameworks/support/transition/api14/android/support/transition/ |
ImageViewUtilsApi14.java | 21 import android.graphics.Matrix; 32 if (scaleType == ImageView.ScaleType.MATRIX) { 35 view.setScaleType(ImageView.ScaleType.MATRIX); 41 public void animateTransform(ImageView view, Matrix matrix) { 42 view.setImageMatrix(matrix); 54 if (scaleType == ImageView.ScaleType.MATRIX) { 55 view.setImageMatrix((Matrix) view.getTag(R.id.save_image_matrix));
|
/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 21 import android.graphics.Matrix; 29 Matrix matrix = new Matrix(); local 33 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); 36 matrix.mapPoints(points); 39 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); 42 matrix.mapPoints(points); 45 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); 48 matrix.mapPoints(points) [all...] |
/packages/apps/DevCamera/src/com/android/devcamera/ |
BitmapUtility.java | 20 import android.graphics.Matrix; 63 Matrix mat = new Matrix();
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/util/ |
BitmapResizer.java | 20 import android.graphics.Matrix; 43 Matrix matrix = new Matrix(); local 44 matrix.postRotate(rotation); 51 return Bitmap.createBitmap(image, 0, 0, width, height, matrix, true); 69 matrix.postScale(ratio, ratio); 70 return Bitmap.createBitmap(image, 0, 0, width, height, matrix, true);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
ImageVignette.java | 21 import android.graphics.Matrix; 50 Matrix mToScr; 51 Matrix mToImage; 62 public void setTransform(Matrix toScr, Matrix toImage, int imgWidth, int imgHeight) { 166 mElipse.setScrImageInfo(new Matrix(), 201 Matrix toImg = getScreenToImageMatrix(false); 202 Matrix toScr = new Matrix(); 230 Matrix toImg = getScreenToImageMatrix(false) [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
TextureViewHelper.java | 20 import android.graphics.Matrix; 92 * transform matrix will be automatically adjusted based on the preview 123 * Transforms the preview with the identity matrix, ensuring there is no 128 mPreview.setTransform(new Matrix()); 182 * This takes a matrix to apply to the texture view and uses the screen 185 * @param matrix the matrix to apply 188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { 194 mPreview.setTransform(matrix); [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 21 import android.graphics.Matrix; 39 // This matrix is recomputed when we go from the thumbnail image to 41 protected Matrix mBaseMatrix = new Matrix(); 46 // This matrix remains the same when we go from the thumbnail image 48 protected Matrix mSuppMatrix = new Matrix(); 50 // This is the final matrix which is computed as the concatentation 51 // of the base matrix and the supplementary matrix [all...] |
/cts/tests/pdf/src/android/graphics/pdf/cts/ |
PdfRendererTransformTest.java | 25 import android.graphics.Matrix; 52 private @Nullable Matrix mTransformation; 56 @Nullable Rect clipping, @Nullable Matrix transformation, int renderMode) { 82 Matrix transformation = new Matrix();
|
/external/eigen/Eigen/src/SVD/ |
JacobiSVD_LAPACKE.h | 42 JacobiSVD<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW, Dynamic, Dynamic>, ColPivHouseholderQRPreconditioner>& \ 43 JacobiSVD<Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW, Dynamic, Dynamic>, ColPivHouseholderQRPreconditioner>::compute(const Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW, Dynamic, Dynamic>& matrix, unsigned int computationOptions) \ 45 typedef Matrix<EIGTYPE, Dynamic, Dynamic, EIGCOLROW, Dynamic, Dynamic> MatrixType; \ 48 allocate(matrix.rows(), matrix.cols(), computationOptions); \ 53 lapack_int lda = internal::convert_index<lapack_int>(matrix.outerStride()), ldu, ldvt; \ 69 Matrix<LAPACKE_RTYPE, Dynamic, Dynamic> superb; superb.resize(m_diagSize, 1); \ 70 MatrixType m_temp; m_temp = matrix; \ [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
PreviewTransformCalculator.java | 23 import android.graphics.Matrix; 37 * Build a matrix which can be used when calling setTransform() on a 43 * @return The matrix to transform TextureView. 45 public Matrix toTransformMatrix(Size previewViewSize, Size previewStreamSize) { 57 Matrix transformMatrix = new Matrix(); 72 previewViewRect, centeredEffectivePreviewRect, Matrix.ScaleToFit.FILL);
|
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
VideoScale.java | 19 import android.graphics.Matrix; 77 Matrix transform = new Matrix(); 135 Matrix transform = new Matrix();
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
FlockingScene.cpp | 26 #include <graphics/Matrix.h> 71 Matrix* FlockingScene::setUpModelMatrix() { 72 return new Matrix(); 75 Matrix* FlockingScene::setUpViewMatrix() { 91 // Set the view matrix. 92 return Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); 95 Matrix* FlockingScene::setUpProjectionMatrix(float width, float height) { 96 // Create a new perspective projection matrix. The height will stay the same 109 return Matrix::newFrustum(left, right, bottom, top, near, far); 146 Matrix* transformMatrix = Matrix::newScale(MAIN_SCALE * mDisplayRatio, MAIN_SCALE, 0.0f) [all...] |
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/ |
LMqrsolv.h | 24 Matrix<Scalar,Rows,Cols> &s, 26 const Matrix<Scalar,Dynamic,1> &diag, 27 const Matrix<Scalar,Dynamic,1> &qtb, 28 Matrix<Scalar,Dynamic,1> &x, 29 Matrix<Scalar,Dynamic,1> &sdiag) 35 Matrix<Scalar,Dynamic,1> wa(n); 49 /* eliminate the diagonal matrix d using a givens rotation. */ 105 const Matrix<Scalar,Dynamic,1> &diag, 106 const Matrix<Scalar,Dynamic,1> &qtb, 107 Matrix<Scalar,Dynamic,1> &x [all...] |