/external/eigen/Eigen/src/Geometry/ |
H A D | RotationBase.h | 195 static inline const MatrixBase<OtherDerived>& toRotationMatrix(const MatrixBase<OtherDerived>& mat) argument 199 return mat;
|
/external/eigen/Eigen/src/SparseCore/ |
H A D | SparseColEtree.h | 55 * \param mat The matrix in column-major format. 58 * \param perm The permutation to apply to the column of \b mat 61 int coletree(const MatrixType& mat, IndexVector& parent, IndexVector& firstRowElt, typename MatrixType::Index *perm=0) argument 64 Index nc = mat.cols(); // Number of columns 65 Index m = mat.rows(); 71 parent.resize(mat.cols()); 82 for (typename MatrixType::InnerIterator it(mat, pcol); it; ++it) 104 for (typename MatrixType::InnerIterator it(mat, pcol); it||!found_diag; ++it)
|
H A D | SparseView.h | 38 SparseView(const MatrixType& mat, const Scalar& m_reference = Scalar(0), argument 40 m_matrix(mat), m_reference(m_reference), m_epsilon(m_epsilon) {}
|
/external/eigen/bench/ |
H A D | eig33.cpp | 96 void eigen33(const Matrix& mat, Matrix& evecs, Vector& evals) argument 102 Scalar scale = mat.cwiseAbs()/*.template triangularView<Lower>()*/.maxCoeff(); 104 Matrix scaledMat = mat / scale;
|
/external/eigen/unsupported/Eigen/src/IterativeSolvers/ |
H A D | MINRES.h | 21 * \param mat The matrix A 31 void minres(const MatrixType& mat, const Rhs& rhs, Dest& x, argument 42 const int N(mat.cols()); // the size of the matrix 49 VectorType v_new(rhs-mat*x); //initialize v_new 89 v_new.noalias() = mat*w - beta*v_old; // compute v_new
|
H A D | Scaling.h | 66 * Compute the left and right diagonal matrices to scale the input matrix @p mat 72 void compute (const MatrixType& mat) argument 74 int m = mat.rows(); 75 int n = mat.cols(); 81 m_matrix = mat; 141 void computeRef (MatrixType& mat) argument 143 compute (mat); 144 mat = m_matrix;
|
/external/mesa3d/src/mesa/math/ |
H A D | m_debug_xform.c | 137 const GLmatrix *mat, 143 const GLfloat *m = mat->m; 172 GLmatrix mat[1]; local 186 mat->m = (GLfloat *) _mesa_align_malloc( 16 * sizeof(GLfloat), 16 ); 187 mat->type = mtypes[mtype]; 189 m = mat->m; 243 ref_transform( ref, mat, source ); 247 func( dest, mat->m, source ); 251 func( dest, mat->m, source ); 276 _mesa_align_free( mat 136 ref_transform( GLvector4f *dst, const GLmatrix *mat, const GLvector4f *src ) argument [all...] |
H A D | m_norm_tmp.h | 35 * mat - the 4x4 transformation matrix 43 TAG(transform_normalize_normals)( const GLmatrix *mat, argument 53 const GLfloat *m = mat->inv; 110 TAG(transform_normalize_normals_no_rot)( const GLmatrix *mat, argument 120 const GLfloat *m = mat->inv; 175 TAG(transform_rescale_normals_no_rot)( const GLmatrix *mat, argument 185 const GLfloat *m = mat->inv; 204 TAG(transform_rescale_normals)( const GLmatrix *mat, argument 217 const GLfloat *m = mat->inv; 236 TAG(transform_normals_no_rot)( const GLmatrix *mat, argument 266 transform_normals( const GLmatrix *mat, GLfloat scale, const GLvector4f *in, const GLfloat *lengths, GLvector4f *dest ) argument 296 normalize_normals( const GLmatrix *mat, GLfloat scale, const GLvector4f *in, const GLfloat *lengths, GLvector4f *dest ) argument 342 rescale_normals( const GLmatrix *mat, GLfloat scale, const GLvector4f *in, const GLfloat *lengths, GLvector4f *dest ) argument [all...] |
/external/opencv/cvaux/src/ |
H A D | cvlines.cpp | 209 CvMat mat; local 214 cvInitMatHeader( &mat, src_size.height, src_size.width, CV_8UC3, src, src_step ); 227 assert( cvInitLineIterator( &mat, start, end, &iterator, 8 ) == dst_nums[k] ); 230 cvSampleLine( &mat, start, end, dst + curr_dst, 8 ); 256 CvMat mat; local 262 cvInitMatHeader( &mat, dst_size.height, dst_size.width, CV_8UC3, dst, dst_step ); 274 if( cvInitLineIterator( &mat, start, end, &iterator, 8 ) != src_num )
|
/external/skia/bench/ |
H A D | Matrix44Bench.cpp | 71 , mat(SkMatrix44::kIdentity_Constructor) 78 mat.setRowMajord(rowMajor); 83 mat.setIdentity(); 87 SkMatrix44 mat; member in class:SetIdentityMatrix44Bench
|
/external/skia/gm/ |
H A D | drawbitmaprect.cpp | 59 SkMatrix mat = SkMatrix::I(); local 66 0, &mat))->unref(); 69 mat.postScale(SK_Scalar1 / 4, SK_Scalar1 / 4);
|
H A D | filterbitmap.cpp | 20 static SkSize computeSize(const SkBitmap& bm, const SkMatrix& mat) { argument 23 mat.mapRect(&bounds); 27 static void draw_row(SkCanvas* canvas, const SkBitmap& bm, const SkMatrix& mat, SkScalar dx) { argument 32 canvas->drawBitmapMatrix(bm, mat, &paint); 36 canvas->drawBitmapMatrix(bm, mat, &paint); 40 canvas->drawBitmapMatrix(bm, mat, &paint); 44 canvas->drawBitmapMatrix(bm, mat, &paint);
|
H A D | roundrects.cpp | 165 SkMatrix mat = fMatrices[j]; variable 167 mat.postTranslate(kXStart + SK_Scalar1 * kXStep * (testCount % maxX) + 171 canvas->concat(mat);
|
/external/skia/src/effects/ |
H A D | Sk2DPathEffect.cpp | 16 Sk2DPathEffect::Sk2DPathEffect(const SkMatrix& mat) : fMatrix(mat) { argument 17 fMatrixIsInvertible = mat.invert(&fInverse); 54 const SkMatrix& mat = this->getMatrix(); local 59 mat.mapPoints(&dst, &src, 1);
|
/external/srec/srec/clib/ |
H A D | jacobi.c | 41 static double SumOffDiag(double **mat, int dim); 49 // <mat> of size <dim>x<dim>. Fills in <egval> with the eigenvalues 50 // and <egvec[i]> with the i-th normalized eignevector of <mat>. 77 /* initialize v to identity matrix, d and b to the diagonal of mat */ 204 static double SumOffDiag(double **mat, int dim) argument 214 sum += fabs(mat[i][j]);
|
/external/chromium_org/gpu/tools/compositor_model_bench/ |
H A D | render_tree.h | 90 void set_transform(float* mat) { argument 92 reinterpret_cast<void*>(mat),
|
/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...] |
/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...] |
/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/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | shader.c | 395 const struct matrix *mat) 397 shader->modelview = *mat; 403 void shader_set_paint_matrix(struct shader *shader, const struct matrix *mat) argument 408 memcpy(&shader->paint_matrix, mat, sizeof(*mat)); 394 shader_set_surface_matrix(struct shader *shader, const struct matrix *mat) argument
|
H A D | vg_context.c | 517 struct matrix *mat) 522 memcpy(mat, paint_to_user, sizeof(*paint_to_user)); 523 if (!matrix_invert(mat)) 531 matrix_mult(mat, &tmp); 514 vg_get_paint_matrix(struct vg_context *ctx, const struct matrix *paint_to_user, const struct matrix *user_to_surface, struct matrix *mat) argument
|
H A D | vgu.c | 366 struct matrix mat; local 375 &mat)) 378 if (!matrix_is_invertible(&mat)) 381 memcpy(matrix, mat.m, sizeof(VGfloat) * 9); 392 struct matrix mat; local 401 &mat)) 404 if (!matrix_is_invertible(&mat)) 407 memcpy(matrix, mat.m, sizeof(VGfloat) * 9); 422 struct matrix mat; local 435 &mat)) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | light.c | 635 GLfloat (*mat)[4] = ctx->Light.Material.Attrib; 647 mat[MAT_ATTRIB_FRONT_AMBIENT]); 654 mat[MAT_ATTRIB_BACK_AMBIENT]); 660 COPY_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_EMISSION] ); 661 ACC_SCALE_3V( ctx->Light._BaseColor[0], mat[MAT_ATTRIB_FRONT_AMBIENT], 666 COPY_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_EMISSION] ); 667 ACC_SCALE_3V( ctx->Light._BaseColor[1], mat[MAT_ATTRIB_BACK_AMBIENT], 675 mat[MAT_ATTRIB_FRONT_DIFFUSE] ); 682 mat[MAT_ATTRIB_BACK_DIFFUSE] ); 690 mat[MAT_ATTRIB_FRONT_SPECULA 712 struct gl_material *mat = &ctx->Light.Material; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/math/ |
H A D | m_debug_norm.c | 123 static void ref_norm_transform_rescale( const GLmatrix *mat, argument 131 const GLfloat *m = mat->inv; 146 static void ref_norm_transform_normalize( const GLmatrix *mat, argument 154 const GLfloat *m = mat->inv; 199 GLmatrix mat[1]; local 211 mat->m = (GLfloat *) _mesa_align_malloc( 16 * sizeof(GLfloat), 16 ); 212 mat->inv = m = mat->m; 278 ref_norm_transform_rescale( mat, scale, source, NULL, ref ); 280 ref_norm_transform_normalize( mat, scal [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
H A D | prog_statevars.c | 59 const struct gl_material *mat = &ctx->Light.Material; local 69 COPY_4V(value, mat->Attrib[MAT_ATTRIB_FRONT_AMBIENT + face]); 72 COPY_4V(value, mat->Attrib[MAT_ATTRIB_FRONT_DIFFUSE + face]); 75 COPY_4V(value, mat->Attrib[MAT_ATTRIB_FRONT_SPECULAR + face]); 78 COPY_4V(value, mat->Attrib[MAT_ATTRIB_FRONT_EMISSION + face]); 81 value[0] = mat->Attrib[MAT_ATTRIB_FRONT_SHININESS + face][0]; 291 const gl_state_index mat = state[0]; local 302 if (mat == STATE_MODELVIEW_MATRIX) { 305 else if (mat == STATE_PROJECTION_MATRIX) { 308 else if (mat 1001 const gl_state_index mat = state[0]; local 1084 load_matrix(GLfloat registers[][4], GLuint pos, const GLfloat mat[16]) argument 1100 load_transpose_matrix(GLfloat registers[][4], GLuint pos, const GLfloat mat[16]) argument 1119 GLmatrix *mat; local [all...] |