/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
Scaling.h | 20 * NOTE It is assumed that the matrix does not have empty row or column, 28 * // Compute the left and right scaling vectors. The matrix is equilibrated at output 38 * \tparam _MatrixType the type of the matrix. It should be a real square sparsematrix 40 * References : D. Ruiz and B. Ucar, A Symmetry Preserving Algorithm for Matrix Scaling, INRIA Research report RR-7552 57 Scaling(const MatrixType& matrix) 60 compute(matrix); 66 * Compute the left and right diagonal matrices to scale the input matrix @p mat 76 assert((m>0 && m == n) && "Please give a non - empty matrix"); 113 // Scale the rows and the columns of the matrix 137 * the input matrix is scaled with the computed vectors at outpu [all...] |
/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,
|
/external/skia/src/effects/ |
SkOffsetImageFilter.cpp | 14 const SkMatrix& matrix, 18 if (getInput(0) && !getInput(0)->filterImage(proxy, source, matrix, &src, loc)) { 23 matrix.mapVectors(&vec, &fOffset, 1);
|
/frameworks/base/graphics/java/android/graphics/ |
Camera.java | 21 * generate a matrix that can be applied, for instance, on a 25 private Matrix mMatrix; 136 * Computes the matrix corresponding to the current transformation 137 * and copies it to the supplied matrix object. 139 * @param matrix The matrix to copy the current transforms into 141 public void getMatrix(Matrix matrix) { 142 nativeGetMatrix(matrix.native_instance); 146 * Computes the matrix corresponding to the current transformatio [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
MatrixActivity.java | 46 Log.d("Matrix", "m1=" + canvas.getMatrix()); 50 Log.d("Matrix", "m2=" + canvas.getMatrix()); 52 Log.d("Matrix", "m3=" + canvas.getMatrix());
|
/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 21 import android.graphics.Matrix; 73 Matrix matrix = new Matrix(); local 77 Util.prepareMatrix(matrix, false, 0, 800, 480); 80 matrix.mapPoints(points); 83 Util.prepareMatrix(matrix, false, 90, 800, 480); 86 matrix.mapPoints(points); 89 Util.prepareMatrix(matrix, false, 180, 800, 480); 92 matrix.mapPoints(points) [all...] |
/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 21 import android.graphics.Matrix; 73 Matrix matrix = new Matrix(); local 77 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); 80 matrix.mapPoints(points); 83 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); 86 matrix.mapPoints(points); 89 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); 92 matrix.mapPoints(points) [all...] |
/packages/apps/Gallery2/jni/filters/ |
hue.c | 19 void JNIFUNCF(ImageFilterHue, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray matrix) 26 jfloat* mat = (*env)->GetFloatArrayElements(env, matrix,0); 43 (*env)->ReleaseFloatArrayElements(env, matrix, mat, 0);
|
/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/LegacyCamera/tests/src/com/android/camera/unittest/ |
CameraTest.java | 23 import android.graphics.Matrix; 77 Matrix matrix = new Matrix(); local 81 Util.prepareMatrix(matrix, false, 0, 800, 480); 84 matrix.mapPoints(points); 87 Util.prepareMatrix(matrix, false, 90, 800, 480); 90 matrix.mapPoints(points); 93 Util.prepareMatrix(matrix, false, 180, 800, 480); 96 matrix.mapPoints(points) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CanvasTest.java | 26 import android.graphics.Matrix; 159 final Matrix m1 = new Matrix(); 164 final Matrix m2 = new Matrix(); 169 final Matrix m3 = mCanvas.getMatrix(); 178 final Matrix m4 = mCanvas.getMatrix(); 187 // test save current matrix only 188 Matrix m1 = new Matrix(); [all...] |
/external/eigen/Eigen/src/QR/ |
FullPivHouseholderQR.h | 32 * \brief Householder rank-revealing QR decomposition of a matrix with full pivoting 34 * \param MatrixType the type of the matrix of which we are computing the QR decomposition 36 * This class performs a rank-revealing QR decomposition of a matrix \b A into matrices \b P, \b Q and \b R 41 * by using Householder transformations. Here, \b P is a permutation matrix, \b Q a unitary matrix and \b R an 42 * upper triangular matrix. 66 typedef Matrix<Index, 1, ColsAtCompileTime, RowMajor, 1, MaxColsAtCompileTime> IntRowVectorType; 103 FullPivHouseholderQR(const MatrixType& matrix) 104 : m_qr(matrix.rows(), matrix.cols()) [all...] |
/external/chromium-trace/trace-viewer/third_party/gl-matrix/spec/gl-matrix/ |
mat2-spec.js | 42 it("should return a 4 element array initialized to a 2x2 identity matrix", function() { expect(result).toBeEqualish(identity); }); 63 describe("with a separate output matrix", function() { 71 describe("when matA is the output matrix", function() { 80 describe("with a separate output matrix", function() { 88 describe("when matA is the output matrix", function() { 97 describe("with a separate output matrix", function() { 105 describe("when matA is the output matrix", function() { 122 describe("with a separate output matrix", function() { 131 describe("when matA is the output matrix", function() { 139 describe("when matB is the output matrix", function() [all...] |
/external/skia/bench/ |
ColorFilterBench.cpp | 32 SkScalar matrix[20] = { 1, 0, 0, 0, amount255, local 36 SkAutoTUnref<SkColorFilter> filter(new SkColorMatrixFilter(matrix)); 41 SkScalar matrix[20]; local 42 memset(matrix, 0, 20 * sizeof(SkScalar)); 43 matrix[0] = matrix[5] = matrix[10] = SkFloatToScalar(0.2126f); 44 matrix[1] = matrix[6] = matrix[11] = SkFloatToScalar(0.7152f) [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
ScriptIntrinsicColorMatrix.java | 22 * Intrinsic for applying a color matrix to allocations. 29 * then multiplied by the 4x4 color matrix as performed by 51 * Create an intrinsic for applying a color matrix to an 70 * Create an intrinsic for applying a color matrix to an 90 * Set the color matrix which will be applied to each cell of 93 * @param m The 4x4 matrix to set. 101 * Set the color matrix which will be applied to each cell of the image. 104 * @param m The 3x3 matrix to set. 112 * Set the value to be added after the color matrix has been 132 * Set the value to be added after the color matrix has bee [all...] |
/external/eigen/Eigen/src/LU/arch/ |
Inverse_SSE.h | 12 // The SSE code for the 4x4 float and double matrix inverse in this file 14 // http://software.intel.com/en-us/articles/optimized-matrix-library-for-use-with-the-intel-pentiumr-4-processors-sse2-instructions/ 43 static void run(const MatrixType& matrix, ResultType& result) 47 // Load the full matrix into registers 48 __m128 _L1 = matrix.template packet<MatrixAlignment>( 0); 49 __m128 _L2 = matrix.template packet<MatrixAlignment>( 4); 50 __m128 _L3 = matrix.template packet<MatrixAlignment>( 8); 51 __m128 _L4 = matrix.template packet<MatrixAlignment>(12); 54 // original matrix is divide into four 2x2 sub-matrices. Since each 55 // register holds four matrix element, the smaller matrices ar [all...] |
/external/ceres-solver/internal/ceres/ |
blas_test.cc | 43 Matrix A(kRowA, kColA); 48 Matrix B(kRowB, kColB); 53 Matrix C(row_stride_c, col_stride_c); 56 Matrix C_plus = C; 57 Matrix C_minus = C; 58 Matrix C_assign = C; 60 Matrix C_plus_ref = C; 61 Matrix C_minus_ref = C; 62 Matrix C_assign_ref = C; 126 Matrix A(kRowA, kColA) [all...] |
compressed_row_sparse_matrix_test.cc | 150 Matrix tsm_dense; 151 Matrix crsm_dense; 189 scoped_ptr<CompressedRowSparseMatrix> matrix( 193 EXPECT_EQ(matrix->num_rows(), 5); 194 EXPECT_EQ(matrix->num_cols(), 5); 195 EXPECT_EQ(matrix->num_nonzeros(), 9); 196 EXPECT_EQ(blocks, matrix->row_blocks()); 197 EXPECT_EQ(blocks, matrix->col_blocks()); 204 matrix->RightMultiply(x.data(), y.data()); 210 matrix->LeftMultiply(x.data(), y.data()) [all...] |
small_blas_test.cc | 43 Matrix A(kRowA, kColA); 48 Matrix B(kRowB, kColB); 53 Matrix C(row_stride_c, col_stride_c); 56 Matrix C_plus = C; 57 Matrix C_minus = C; 58 Matrix C_assign = C; 60 Matrix C_plus_ref = C; 61 Matrix C_minus_ref = C; 62 Matrix C_assign_ref = C; 126 Matrix A(kRowA, kColA) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGTextElement.cpp | 49 AffineTransform matrix; local 59 matrix = t.toAffineTransform(); 61 transformCurrentValue().concatenate(matrix); 66 return *transform * matrix; 67 return matrix;
|
/external/chromium_org/third_party/skia/src/animator/ |
SkDraw3D.cpp | 55 SkMatrix matrix; local 56 fCamera.patchToMatrix(patch->fPatch, &matrix); 57 matrix.preTranslate(hackWidth / 2, -hackHeight / 2); 58 matrix.postTranslate(hackWidth / 2, hackHeight / 2); 59 maker.fCanvas->concat(matrix);
|
/external/eigen/Eigen/src/misc/ |
Kernel.h | 24 typedef Matrix< 26 MatrixType::ColsAtCompileTime, // the number of rows in the "kernel matrix" 27 // is the number of cols of the original matrix 28 // so that the product "matrix * kernel = zero" makes sense 33 // whose dimension is the number of columns of the original matrix
|
/external/eigen/doc/ |
I11_Aliasing.dox | 5 In Eigen, aliasing refers to assignment statement in which the same matrix (or array or vector) appears on the 70 [with OtherDerived = Eigen::Transpose<Eigen::Matrix<int, 2, 2, 0, 2, 2> >, Derived = Eigen::Matrix<int, 2, 2, 0, 2, 2>]: 83 to evaluate the right-hand side fully into a temporary matrix/array and then assign it to the left-hand 102 \link DenseBase::transposeInPlace() transposeInPlace() \endlink which replaces a matrix by its transpose. 131 As explained above, it may be dangerous if the same matrix or array occurs on both the left-hand side and the 133 explicitly. However, applying component-wise operations (such as matrix addition, scalar multiplication and 137 the same matrix appears on both sides of the assignments. 149 the (i,j) entry of the matrix or array on the left-hand side and not on any other entries. In that case it is 153 \section TopicAliasingMatrixMult Aliasing and matrix multiplicatio [all...] |
/external/eigen/lapack/ |
eigenvalues.cpp | 13 // computes an LU factorization of a general M-by-N matrix A using partial pivoting with row interchanges 59 if(UPLO(*uplo)==UP) mat = matrix(a,*n,*n,*lda).adjoint(); 60 else mat = matrix(a,*n,*n,*lda); 69 matrix(a,*n,*n,*lda).setIdentity(); 76 matrix(a,*n,*n,*lda) = eig.eigenvectors();
|
/external/eigen/test/eigen2/ |
eigen2_determinant.cpp | 53 CALL_SUBTEST_1( determinant(Matrix<float, 1, 1>()) ); 54 CALL_SUBTEST_2( determinant(Matrix<double, 2, 2>()) ); 55 CALL_SUBTEST_3( determinant(Matrix<double, 3, 3>()) ); 56 CALL_SUBTEST_4( determinant(Matrix<double, 4, 4>()) ); 57 CALL_SUBTEST_5( determinant(Matrix<std::complex<double>, 10, 10>()) );
|