Home
last modified time | relevance | path

Searched full:matrix (Results 1 – 25 of 4318) sorted by relevance

12345678910>>...173

/third_party/boost/boost/numeric/ublas/
Dmatrix_vector.hpp23 /** \brief Iterator used in the represention of a matrix as a vector of rows or columns
25 * Iterator used in the represention of a matrix as a vector of rows/columns. It refers
26 * to the i-th element of the matrix, a column or a row depending of Reference type.
28 * The type of Reference should provide a constructor Reference(matrix, i)
30 * This iterator is invalidated when the underlying matrix is resized.
32 * \tparameter Matrix type of matrix that is represented as a vector of row/column
33 * \tparameter Reference Matrix row or matrix column type.
35 template<class Matrix, class Reference>
37 matrix_vector_iterator<Matrix,Reference>,
47 matrix_vector_iterator(Matrix& matrix, std::size_t position) in matrix_vector_iterator() argument
[all …]
Dblas.hpp169 * This includes functions which perform \b matrix-vector operations.
175 /** \brief multiply vector \c v with triangular matrix \c m
178 * \param m a triangular matrix
182 * \tparam M type of the matrix (not needed by default)
190 /** \brief solve \f$m.x = v\f$ in place, where \c m is a triangular matrix
193 * \param m a matrix
198 * \tparam M type of the matrix (not needed by default)
207 /** \brief compute \f$ v_1 = t_1.v_1 + t_2.(m.v_2)\f$, a general matrix-vector product
212 * \param m a matrix
219 * \tparam M type of matrix (not needed by default)
[all …]
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
DMatrix.java13 * 4x4 matrix backed by SkM44
15 public class Matrix { class
19 * Returns identity Matrix
21 public Matrix() { in Matrix() method in Matrix
29 * Returns Matrix populated with values passed in (row-major order).
31 public Matrix(float m0, float m4, float m8, float m12, in Matrix() method in Matrix
41 Matrix(long nativeInstance) { in Matrix() method in Matrix
45 public static Matrix makeLookAt(float eyeX, float eyeY, float eyeZ, in makeLookAt()
48 return new Matrix(nCreateLookAt(eyeX, eyeY, eyeZ, in makeLookAt()
53 public static Matrix makePerspective(float near, float far, float angle) { in makePerspective()
[all …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dmatrix_integer.hpp34 /// High-precision signed integer 2x2 matrix.
38 /// High-precision signed integer 3x3 matrix.
42 /// High-precision signed integer 4x4 matrix.
46 /// High-precision signed integer 2x2 matrix.
50 /// High-precision signed integer 2x3 matrix.
54 /// High-precision signed integer 2x4 matrix.
58 /// High-precision signed integer 3x2 matrix.
62 /// High-precision signed integer 3x3 matrix.
66 /// High-precision signed integer 3x4 matrix.
70 /// High-precision signed integer 4x2 matrix.
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DMatrix.hpp24 struct Matrix struct
26 Matrix();
27 Matrix(const int i);
28 Matrix(const float m[16]);
29 Matrix(const float m[4][4]);
30 Matrix(float m11, float m12, float m13,
33 Matrix(float m11, float m12, float m13, float m14,
37 Matrix(const Vector &v1, const Vector &v2, const Vector &v3); // Column vectors
42 static Matrix diag(float m11, float m22, float m33, float m44);
46 Matrix operator+() const;
[all …]
/third_party/ffmpeg/libavresample/
Daudio_mix_matrix.c94 double matrix[64][64] = {{0}}; in avresample_build_matrix() local
123 matrix[i][i] = 1.0; in avresample_build_matrix()
130 matrix[FRONT_LEFT ][FRONT_CENTER] += center_mix_level; in avresample_build_matrix()
131 matrix[FRONT_RIGHT][FRONT_CENTER] += center_mix_level; in avresample_build_matrix()
133 matrix[FRONT_LEFT ][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix()
134 matrix[FRONT_RIGHT][FRONT_CENTER] += M_SQRT1_2; in avresample_build_matrix()
142 matrix[FRONT_CENTER][FRONT_LEFT ] += M_SQRT1_2; in avresample_build_matrix()
143 matrix[FRONT_CENTER][FRONT_RIGHT] += M_SQRT1_2; in avresample_build_matrix()
146 matrix[FRONT_CENTER][FRONT_CENTER] = center_mix_level * M_SQRT2; in avresample_build_matrix()
153 matrix[BACK_LEFT ][BACK_CENTER] += M_SQRT1_2; in avresample_build_matrix()
[all …]
/third_party/boost/libs/numeric/ublas/test/
Dtest_matrix_vector.cpp11 #include <boost/numeric/ublas/matrix.hpp>
32 template <class Matrix>
36 typedef matrix_row_vector<Matrix> RowVector; in test_matrix_row_facade()
41 typename Matrix::size_type num_rows = 3; in test_matrix_row_facade()
42 typename Matrix::size_type num_cols = 5; in test_matrix_row_facade()
44 Matrix matrix(num_rows, num_cols); in test_matrix_row_facade() local
45 RowVector rows(matrix); in test_matrix_row_facade()
46 pass &= (matrix.size1() == num_rows); in test_matrix_row_facade()
48 pass &= (matrix.size2() == num_cols); in test_matrix_row_facade()
50 typename Matrix::size_type new_num_rows = 6; in test_matrix_row_facade()
[all …]
/third_party/boost/boost/geometry/algorithms/detail/relate/
Dresult.hpp53 // --------------- MATRIX ----------------
55 // matrix
58 class matrix class
70 inline matrix() in matrix() function in boost::geometry::detail::relate::matrix
130 template <typename Matrix>
134 typedef Matrix result_type;
146 result_type const& matrix() const in matrix() function in boost::geometry::detail::relate::matrix_handler
151 result_type & matrix() in matrix() function in boost::geometry::detail::relate::matrix_handler
168 static const bool in_bounds = F1 < Matrix::static_height in set()
169 && F2 < Matrix::static_width; in set()
[all …]
/third_party/flutter/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/
DCanvasMatrixUtil.java19 import android.graphics.Matrix;
22 * Provides static methods for matrix manipulation needed to draw in ARCore with Canvas.
23 * Input matrices are assumed to be 4x4 android.opengl.Matrix types (16-float arrays in column-major
25 * Output matrices are 3x3 android.graphics.Matrix types.
33 * Returns an android.graphics.Matrix that can be used on a Canvas to draw a 2D object in
37 * @param model 4x4 model matrix of the object to be drawn (global/world)
38 * @param view 4x4 camera view matrix (brings objects to camera origin and
40 * @param projection 4x4 projection matrix
43 * @return 3x3 matrix that puts a 2D objects in perspective on a Canvas
46 public static Matrix createPerspectiveMatrix(float[] model, float[] view, float[] projection, in createPerspectiveMatrix()
[all …]
/third_party/ffmpeg/libswresample/
Drematrix.c64 int swr_set_matrix(struct SwrContext *s, const double *matrix, int stride) in swr_set_matrix() argument
70 memset(s->matrix, 0, sizeof(s->matrix)); in swr_set_matrix()
78 s->matrix_flt[out][in] = s->matrix[out][in] = matrix[in]; in swr_set_matrix()
79 matrix += stride; in swr_set_matrix()
126 double matrix[NUM_NAMED_CHANNELS][NUM_NAMED_CHANNELS]={{0}}; in swr_build_matrix() local
156 for(i=0; i<FF_ARRAY_ELEMS(matrix); i++){ in swr_build_matrix()
158 matrix[i][i]= 1.0; in swr_build_matrix()
170 matrix[ FRONT_LEFT][FRONT_CENTER]+= center_mix_level; in swr_build_matrix()
171 matrix[FRONT_RIGHT][FRONT_CENTER]+= center_mix_level; in swr_build_matrix()
173 matrix[ FRONT_LEFT][FRONT_CENTER]+= M_SQRT1_2; in swr_build_matrix()
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/SGI/
DSGI_color_matrix.txt23 This extension adds a 4x4 matrix stack to the pixel transfer path. The
24 matrix operates on RGBA pixel groups, using the equation
35 and M is the 4x4 matrix on the top of the color matrix stack. After
36 the matrix multiplication, each resulting color component is scaled
37 and biased by a programmed amount. Color matrix multiplication follows
41 The color matrix can be used to reassign and duplicate color components.
75 The manipulation of the color matrix stack is added to the GL
77 matrix mode to COLOR causes the already described matrix operations
79 matrix on the color matrix stack. (PushMatrix and PopMatrix apply to
80 the entire color matrix stack.) All matrix operations have the same
[all …]
/third_party/openGLES/extensions/SGI/
DSGI_color_matrix.txt23 This extension adds a 4x4 matrix stack to the pixel transfer path. The
24 matrix operates on RGBA pixel groups, using the equation
35 and M is the 4x4 matrix on the top of the color matrix stack. After
36 the matrix multiplication, each resulting color component is scaled
37 and biased by a programmed amount. Color matrix multiplication follows
41 The color matrix can be used to reassign and duplicate color components.
75 The manipulation of the color matrix stack is added to the GL
77 matrix mode to COLOR causes the already described matrix operations
79 matrix on the color matrix stack. (PushMatrix and PopMatrix apply to
80 the entire color matrix stack.) All matrix operations have the same
[all …]
/third_party/boost/boost/geometry/algorithms/detail/relation/
Dinterface.hpp29 struct result_handler_type<Geometry1, Geometry2, geometry::de9im::matrix, false>
31 typedef matrix_handler<geometry::de9im::matrix> type;
44 template <typename Matrix, typename Strategy>
45 static inline Matrix apply(Geometry1 const& geometry1, in apply()
57 Matrix in apply()
69 template <typename Matrix, typename Strategy>
70 struct visitor : boost::static_visitor<Matrix>
79 Matrix operator()(Geometry1 const& geometry1) const in operator ()()
82 ::template apply<Matrix>(geometry1, m_geometry2, m_strategy); in operator ()()
86 template <typename Matrix, typename Strategy>
[all …]
/third_party/openGLES/extensions/OES/
DOES_matrix_palette.txt50 This extension allow OpenGL ES to support a palette of matrices. The matrix
52 The matrix palette is not part of the model view matrix stack and is enabled
58 Matrix indices and weights can be changed for each vertex.
67 are transformed by the inverse transpose of the modelview matrix.
80 Should we allow the ability to load the current model view matrix
81 into the matrix palette
86 Should the Matrix palette be loaded with a new LoadMatrixPalette
91 Rotate, Translate, Scale..) matrix functionality.
99 Should the Matrix Palette have a stack?
104 Should the matrix palette be gettable?
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/
DOES_matrix_palette.txt40 This extension allow OpenGL ES to support a palette of matrices. The matrix
42 The matrix palette is not part of the model view matrix stack and is enabled
48 Matrix indices and weights can be changed for each vertex.
57 are transformed by the inverse transpose of the modelview matrix.
70 Should we allow the ability to load the current model view matrix
71 into the matrix palette
76 Should the Matrix palette be loaded with a new LoadMatrixPalette
81 Rotate, Translate, Scale..) matrix functionality.
89 Should the Matrix Palette have a stack?
94 Should the matrix palette be gettable?
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/PBQP/
DMath.h1 //===- Math.h - PBQP Vector and Matrix classes ------------------*- C++ -*-===//
120 /// PBQP Matrix class
121 class Matrix {
123 friend hash_code hash_value(const Matrix &);
126 /// Construct a PBQP Matrix with the given dimensions.
127 Matrix(unsigned Rows, unsigned Cols) : in Matrix() function
131 /// Construct a PBQP Matrix with the given dimensions and initial
133 Matrix(unsigned Rows, unsigned Cols, PBQPNum InitVal) in Matrix() function
139 /// Copy construct a PBQP matrix.
140 Matrix(const Matrix &M) in Matrix() function
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Daudio-channel-mixer.c65 /* channel conversion matrix, m[in_channels][out_channels].
66 * If identity matrix, passthrough applies. */
67 gfloat **matrix; member
69 /* channel conversion matrix with int values, m[in_channels][out_channels].
70 * this is matrix * (2^10) as integers */
89 g_free (mix->matrix[i]); in gst_audio_channel_mixer_free()
90 g_free (mix->matrix); in gst_audio_channel_mixer_free()
91 mix->matrix = NULL; in gst_audio_channel_mixer_free()
108 gst_audio_channel_mixer_fill_identical (gfloat ** matrix, in gst_audio_channel_mixer_fill_identical() argument
121 * an identity matrix */ in gst_audio_channel_mixer_fill_identical()
[all …]
/third_party/skia/third_party/externals/tint/src/transform/
Ddecompose_strided_matrix.cc34 /// MatrixInfo describes a matrix member with a custom stride
36 /// The stride in bytes between columns of the matrix
38 /// The type of the matrix
39 const sem::Matrix* matrix = nullptr; member
42 /// matrix.
44 return b->ty.array(b->ty.vec<ProgramBuilder::f32>(matrix->rows()), in array()
45 matrix->columns(), stride); in array()
50 return stride == info.stride && matrix == info.matrix; in operator ==()
55 return utils::Hash(t.stride, t.matrix); in operator ()()
63 /// GatherCustomStrideMatrixMembers scans `program` for all matrix members of
[all …]
/third_party/harfbuzz/.github/workflows/
Dmsys2-ci.yml14 matrix:
20 name: ${{ matrix.MSYSTEM }}
29 msystem: ${{ matrix.MSYSTEM }}
32 mingw-w64-${{ matrix.MSYS2_ARCH }}-cairo
33 mingw-w64-${{ matrix.MSYS2_ARCH }}-freetype
34 mingw-w64-${{ matrix.MSYS2_ARCH }}-gcc
35 mingw-w64-${{ matrix.MSYS2_ARCH }}-gcc-libs
36 mingw-w64-${{ matrix.MSYS2_ARCH }}-gettext
37 mingw-w64-${{ matrix.MSYS2_ARCH }}-glib2
38 mingw-w64-${{ matrix.MSYS2_ARCH }}-gobject-introspection
[all …]
/third_party/pyyaml/.github/workflows/
Dci.yaml71 name: libyaml ${{matrix.arch}} ${{matrix.platform}}
74 matrix:
83 DOCKER_IMAGE: quay.io/pypa/${{matrix.platform}}_${{matrix.arch}}
90 key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
109 name: pyyaml ${{matrix.arch}} ${{matrix.platform}} ${{matrix.python_tag}}
112 matrix:
134 AW_PLAT: ${{matrix.platform}}_${{matrix.arch}}
135 DOCKER_IMAGE: quay.io/pypa/${{matrix.platform}}_${{matrix.arch}}
136 PYTHON_TAG: ${{matrix.python_tag}}
146 key: libyaml_${{matrix.platform}}_${{matrix.arch}}_${{env.LIBYAML_REF}}
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dtransformation_replace_linear_algebra_instruction_test.cpp212 ; Transposing a 2x2 matrix in TEST()
215 ; Transposing a 2x3 matrix in TEST()
218 ; Transposing a 2x4 matrix in TEST()
221 ; Transposing a 3x2 matrix in TEST()
224 ; Transposing a 3x3 matrix in TEST()
227 ; Transposing a 3x4 matrix in TEST()
230 ; Transposing a 4x2 matrix in TEST()
233 ; Transposing a 4x3 matrix in TEST()
236 ; Transposing a 4x4 matrix in TEST()
354 ; Transposing a 2x2 matrix in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dtransformation_replace_linear_algebra_instruction_test.cpp212 ; Transposing a 2x2 matrix in TEST()
215 ; Transposing a 2x3 matrix in TEST()
218 ; Transposing a 2x4 matrix in TEST()
221 ; Transposing a 3x2 matrix in TEST()
224 ; Transposing a 3x3 matrix in TEST()
227 ; Transposing a 3x4 matrix in TEST()
230 ; Transposing a 4x2 matrix in TEST()
233 ; Transposing a 4x3 matrix in TEST()
236 ; Transposing a 4x4 matrix in TEST()
354 ; Transposing a 2x2 matrix in TEST()
[all …]
/third_party/ffmpeg/libavutil/tests/
Ddisplay.c23 static void print_matrix(int32_t matrix[9]) in print_matrix()
29 printf("%d ", matrix[i*3 + j]); in print_matrix()
31 printf("%d\n", matrix[i*3 + j]); in print_matrix()
37 int32_t matrix[9]; in main() local
39 // Set the matrix to 90 degrees in main()
40 av_display_rotation_set(matrix, 90); in main()
41 print_matrix(matrix); in main()
42 printf("degrees: %f\n", av_display_rotation_get(matrix)); in main()
44 // Set the matrix to -45 degrees in main()
45 av_display_rotation_set(matrix, -45); in main()
[all …]
/third_party/flutter/skia/docs/examples/
DMatrix_TypeMask.cpp7 auto debugster = [](const char* prefix, const SkMatrix& matrix) -> void { in draw() argument
9 typeMask += SkMatrix::kIdentity_Mask == matrix.getType() ? "kIdentity_Mask " : ""; in draw()
10 typeMask += SkMatrix::kTranslate_Mask & matrix.getType() ? "kTranslate_Mask " : ""; in draw()
11 typeMask += SkMatrix::kScale_Mask & matrix.getType() ? "kScale_Mask " : ""; in draw()
12 typeMask += SkMatrix::kAffine_Mask & matrix.getType() ? "kAffine_Mask " : ""; in draw()
13 typeMask += SkMatrix::kPerspective_Mask & matrix.getType() ? "kPerspective_Mask" : ""; in draw()
16 SkMatrix matrix; in draw() local
17 matrix.reset(); in draw()
18 debugster("reset", matrix); in draw()
19 matrix.postTranslate(1, 0); in draw()
[all …]
/third_party/skia/docs/examples/
DMatrix_TypeMask.cpp7 auto debugster = [](const char* prefix, const SkMatrix& matrix) -> void { in draw() argument
9 typeMask += SkMatrix::kIdentity_Mask == matrix.getType() ? "kIdentity_Mask " : ""; in draw()
10 typeMask += SkMatrix::kTranslate_Mask & matrix.getType() ? "kTranslate_Mask " : ""; in draw()
11 typeMask += SkMatrix::kScale_Mask & matrix.getType() ? "kScale_Mask " : ""; in draw()
12 typeMask += SkMatrix::kAffine_Mask & matrix.getType() ? "kAffine_Mask " : ""; in draw()
13 typeMask += SkMatrix::kPerspective_Mask & matrix.getType() ? "kPerspective_Mask" : ""; in draw()
16 SkMatrix matrix; in draw() local
17 matrix.reset(); in draw()
18 debugster("reset", matrix); in draw()
19 matrix.postTranslate(1, 0); in draw()
[all …]

12345678910>>...173