/external/eigen/doc/snippets/ |
H A D | TopicAliasing_block.cpp | 1 MatrixXi mat(3,3); 2 mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; 3 cout << "Here is the matrix mat:\n" << mat << endl; 6 mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2); 7 cout << "After the assignment, mat = \n" << mat << endl;
|
H A D | TopicAliasing_block_correct.cpp | 1 MatrixXi mat(3,3); 2 mat << 1, 2, 3, 4, 5, 6, 7, 8, 9; 3 cout << "Here is the matrix mat:\n" << mat << endl; 6 mat.bottomRightCorner(2,2) = mat.topLeftCorner(2,2).eval(); 7 cout << "After the assignment, mat = \n" << mat << endl;
|
H A D | TopicAliasing_cwise.cpp | 1 MatrixXf mat(2,2); 2 mat << 1, 2, 4, 7; 3 cout << "Here is the matrix mat:\n" << mat << endl << endl; 5 mat = 2 * mat; 6 cout << "After 'mat = 2 * mat', mat = \n" << mat << end [all...] |
H A D | Tutorial_AdvancedInitialization_CommaTemporary.cpp | 1 MatrixXf mat = MatrixXf::Random(2, 3); variable 2 std::cout << mat << std::endl << std::endl; 3 mat = (MatrixXf(2,2) << 0, 1, 1, 0).finished() * mat; 4 std::cout << mat << std::endl;
|
/external/eigen/doc/examples/ |
H A D | tut_arithmetic_redux_basic.cpp | 7 Eigen::Matrix2d mat; local 8 mat << 1, 2, 10 cout << "Here is mat.sum(): " << mat.sum() << endl; 11 cout << "Here is mat.prod(): " << mat.prod() << endl; 12 cout << "Here is mat.mean(): " << mat.mean() << endl; 13 cout << "Here is mat.minCoeff(): " << mat [all...] |
H A D | tut_arithmetic_matrix_mul.cpp | 7 Matrix2d mat; local 8 mat << 1, 2, 11 std::cout << "Here is mat*mat:\n" << mat*mat << std::endl; 12 std::cout << "Here is mat*u:\n" << mat*u << std::endl; 13 std::cout << "Here is u^T*mat:\n" << u.transpose()*mat << st [all...] |
H A D | Tutorial_ReductionsVisitorsBroadcasting_colwise.cpp | 7 Eigen::MatrixXf mat(2,4); 8 mat << 1, 2, 6, 9, 12 << mat.colwise().maxCoeff() << std::endl;
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_rowwise.cpp | 7 Eigen::MatrixXf mat(2,4); 8 mat << 1, 2, 6, 9, 12 << mat.rowwise().maxCoeff() << std::endl;
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple.cpp | 7 Eigen::MatrixXf mat(2,4); 10 mat << 1, 2, 6, 9, 17 mat.colwise() += v; 20 std::cout << mat << std::endl;
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_broadcast_simple_rowwise.cpp | 7 Eigen::MatrixXf mat(2,4); 10 mat << 1, 2, 6, 9, 16 mat.rowwise() += v.transpose(); 19 std::cout << mat << std::endl;
|
H A D | Tutorial_ReductionsVisitorsBroadcasting_maxnorm.cpp | 8 MatrixXf mat(2,4); 9 mat << 1, 2, 6, 9, 13 float maxNorm = mat.colwise().sum().maxCoeff(&maxIndex); 18 std::cout << mat.col( maxIndex ) << std::endl;
|
/external/deqp/framework/common/ |
H A D | tcuMatrixUtil.hpp | 59 Matrix<float, 2, 2> mat; local 63 mat(0, 0) = c; 64 mat(0, 1) = -s; 65 mat(1, 0) = s; 66 mat(1, 1) = c; 68 return mat; 73 Matrix<float, 2, 2> mat; local 74 mat(0, 0) = 1.0f; 75 mat(0, 1) = shear.x(); 76 mat( [all...] |
/external/chromium_org/third_party/angle/samples/angle/sample_util/ |
H A D | Matrix.cpp | 98 Matrix4 Matrix4::invert(const Matrix4 &mat) argument 100 Matrix4 inverted( mat.data[ 5] * mat.data[10] * mat.data[15] - mat.data[5] * mat.data[11] * mat.data[14] - mat.data[ 9] * mat.data[ 6] * mat 131 transpose(const Matrix4 &mat) argument 139 transform(const Matrix4 &mat, const Vector3 &pt) argument 145 transform(const Matrix4 &mat, const Vector4 &pt) argument [all...] |
/external/chromium_org/native_client_sdk/src/examples/api/graphics_3d/ |
H A D | matrix.cc | 15 void glhFrustumf2(Matrix_t mat, argument 27 mat[0] = temp / temp2; 28 mat[1] = 0.0f; 29 mat[2] = 0.0f; 30 mat[3] = 0.0f; 31 mat[4] = 0.0f; 32 mat[5] = temp / temp3; 33 mat[6] = 0.0f; 34 mat[7] = 0.0f; 35 mat[ 45 glhPerspectivef2(Matrix_t mat, GLfloat fovyInDegrees, GLfloat aspectRatio, GLfloat znear, GLfloat zfar) argument 56 identity_matrix(Matrix_t mat) argument 64 multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat) argument 92 rotate_x_matrix(GLfloat x_rad, Matrix_t mat) argument 100 rotate_y_matrix(GLfloat y_rad, Matrix_t mat) argument 108 rotate_z_matrix(GLfloat z_rad, Matrix_t mat) argument 116 rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat) argument 134 translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat) argument [all...] |
H A D | matrix.h | 24 void glhFrustumf2(Matrix_t mat, 32 void glhPerspectivef2(Matrix_t mat, 38 void identity_matrix(Matrix_t mat); 39 void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat); 40 void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat); 41 void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/cube/ |
H A D | matrix.cc | 15 void glhFrustumf2(Matrix_t mat, argument 27 mat[0] = temp / temp2; 28 mat[1] = 0.0f; 29 mat[2] = 0.0f; 30 mat[3] = 0.0f; 31 mat[4] = 0.0f; 32 mat[5] = temp / temp3; 33 mat[6] = 0.0f; 34 mat[7] = 0.0f; 35 mat[ 45 glhPerspectivef2(Matrix_t mat, GLfloat fovyInDegrees, GLfloat aspectRatio, GLfloat znear, GLfloat zfar) argument 56 identity_matrix(Matrix_t mat) argument 64 multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat) argument 92 rotate_x_matrix(GLfloat x_rad, Matrix_t mat) argument 100 rotate_y_matrix(GLfloat y_rad, Matrix_t mat) argument 108 rotate_z_matrix(GLfloat z_rad, Matrix_t mat) argument 116 rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat) argument 134 translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat) argument [all...] |
H A D | matrix.h | 24 void glhFrustumf2(Matrix_t mat, 32 void glhPerspectivef2(Matrix_t mat, 38 void identity_matrix(Matrix_t mat); 39 void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat); 40 void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat); 41 void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
|
/external/chromium_org/third_party/qcms/src/ |
H A D | matrix.c | 28 struct vector matrix_eval(struct matrix mat, struct vector v) argument 31 result.v[0] = mat.m[0][0]*v.v[0] + mat.m[0][1]*v.v[1] + mat.m[0][2]*v.v[2]; 32 result.v[1] = mat.m[1][0]*v.v[0] + mat.m[1][1]*v.v[1] + mat.m[1][2]*v.v[2]; 33 result.v[2] = mat.m[2][0]*v.v[0] + mat.m[2][1]*v.v[1] + mat 39 matrix_det(struct matrix mat) argument 55 matrix_invert(struct matrix mat) argument [all...] |
H A D | matrix.h | 31 struct vector matrix_eval(struct matrix mat, struct vector v); 32 float matrix_det(struct matrix mat); 35 struct matrix matrix_invert(struct matrix mat);
|
/external/skia/tests/ |
H A D | MatrixTest.cpp | 195 SkMatrix mat; local 196 mat.reset(); 199 mat.postConcat(mats[x]); 202 SkScalar minScale = mat.getMinScale(); 203 SkScalar maxScale = mat.getMaxScale(); 205 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); 208 bool success = mat.getMinMaxScales(scales); 209 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); 212 if (mat.hasPerspective()) { 231 mat 249 SkMatrix mat; local 394 check_matrix_recomposition(const SkMatrix& mat, const SkPoint& rotation1, const SkPoint& scale, const SkPoint& rotation2) argument 418 SkMatrix mat; local 592 SkMatrix mat; local 706 SkMatrix mat, inverse, iden1, iden2; local [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | MatrixTest.cpp | 195 SkMatrix mat; local 196 mat.reset(); 199 mat.postConcat(mats[x]); 202 SkScalar minScale = mat.getMinScale(); 203 SkScalar maxScale = mat.getMaxScale(); 205 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); 208 bool success = mat.getMinMaxScales(scales); 209 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); 212 if (mat.hasPerspective()) { 231 mat 249 SkMatrix mat; local 388 check_matrix_recomposition(const SkMatrix& mat, const SkPoint& rotation1, const SkPoint& scale, const SkPoint& rotation2) argument 412 SkMatrix mat; local 586 SkMatrix mat; local 700 SkMatrix mat, inverse, iden1, iden2; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | matrix.h | 83 static INLINE void matrix_init(struct matrix *mat, argument 86 memcpy(mat->m, val, sizeof(VGfloat) * 9); 89 static INLINE void matrix_inits(struct matrix *mat, argument 94 mat->m[0] = m11; mat->m[1] = m12; mat->m[2] = m13; 95 mat->m[3] = m21; mat->m[4] = m22; mat->m[5] = m23; 96 mat 152 matrix_map_point(struct matrix *mat, VGfloat x, VGfloat y, VGfloat *out_x, VGfloat *out_y) argument 212 struct matrix mat; local 246 matrix_determinant(struct matrix *mat) argument 254 matrix_adjoint(struct matrix *mat) argument 271 matrix_divs(struct matrix *mat, VGfloat s) argument 285 matrix_invert(struct matrix *mat) argument 297 matrix_is_invertible(struct matrix *mat) argument 303 matrix_square_to_quad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx3, VGfloat dy3, VGfloat dx2, VGfloat dy2, struct matrix *mat) argument 352 matrix_quad_to_square(VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, struct matrix *mat) argument 367 matrix_quad_to_quad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, struct matrix *mat) argument [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | matrix.h | 83 static INLINE void matrix_init(struct matrix *mat, argument 86 memcpy(mat->m, val, sizeof(VGfloat) * 9); 89 static INLINE void matrix_inits(struct matrix *mat, argument 94 mat->m[0] = m11; mat->m[1] = m12; mat->m[2] = m13; 95 mat->m[3] = m21; mat->m[4] = m22; mat->m[5] = m23; 96 mat 152 matrix_map_point(struct matrix *mat, VGfloat x, VGfloat y, VGfloat *out_x, VGfloat *out_y) argument 212 struct matrix mat; local 246 matrix_determinant(struct matrix *mat) argument 254 matrix_adjoint(struct matrix *mat) argument 271 matrix_divs(struct matrix *mat, VGfloat s) argument 285 matrix_invert(struct matrix *mat) argument 297 matrix_is_invertible(struct matrix *mat) argument 303 matrix_square_to_quad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx3, VGfloat dy3, VGfloat dx2, VGfloat dy2, struct matrix *mat) argument 352 matrix_quad_to_square(VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, struct matrix *mat) argument 367 matrix_quad_to_quad(VGfloat dx0, VGfloat dy0, VGfloat dx1, VGfloat dy1, VGfloat dx2, VGfloat dy2, VGfloat dx3, VGfloat dy3, VGfloat sx0, VGfloat sy0, VGfloat sx1, VGfloat sy1, VGfloat sx2, VGfloat sy2, VGfloat sx3, VGfloat sy3, struct matrix *mat) argument [all...] |
/external/eigen/Eigen/src/OrderingMethods/ |
H A D | Ordering.h | 26 void ordering_helper_at_plus_a(const MatrixType& mat, MatrixType& symmat) argument 29 C = mat.transpose(); // NOTE: Could be costly 35 symmat = C + mat; 60 void operator()(const MatrixType& mat, PermutationType& perm) argument 64 internal::ordering_helper_at_plus_a(mat,symm); 73 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm) argument 75 SparseMatrix<typename SrcType::Scalar, ColMajor, Index> C; C = mat; 101 void operator()(const MatrixType& /*mat*/, PermutationType& perm) 121 /** Compute the permutation vector \a perm form the sparse matrix \a mat 122 * \warning The input sparse matrix \a mat mus 125 operator ()(const MatrixType& mat, PermutationType& perm) argument [all...] |
/external/eigen/Eigen/src/QR/ |
H A D | HouseholderQR_MKL.h | 47 void householder_qr_inplace_blocked(MatrixQR& mat, HCoeffs& hCoeffs, \ 51 lapack_int m = mat.rows(); \ 52 lapack_int n = mat.cols(); \ 53 lapack_int lda = mat.outerStride(); \ 55 LAPACKE_##MKLPREFIX##geqrf( matrix_order, m, n, (MKLTYPE*)mat.data(), lda, (MKLTYPE*)hCoeffs.data()); \
|