/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowMatrixTest.java | 63 final Matrix matrix = new Matrix(); in set_shouldAddOpsToMatrix() local 64 matrix.setScale(1, 1); in set_shouldAddOpsToMatrix() 65 matrix.preScale(2, 2, 2, 2); in set_shouldAddOpsToMatrix() 66 matrix.postScale(3, 3, 3, 3); in set_shouldAddOpsToMatrix() 68 final ShadowMatrix shadow = shadowOf(matrix); in set_shouldAddOpsToMatrix() 76 final Matrix matrix = new Matrix(); in setScale_shouldAddOpsToMatrix() local 77 matrix.setScale(1, 2, 3, 4); in setScale_shouldAddOpsToMatrix() 79 final ShadowMatrix shadow = shadowOf(matrix); in setScale_shouldAddOpsToMatrix() 111 final Matrix matrix = new Matrix(); in testIsIdentity() local 112 assertThat(matrix.isIdentity()) in testIsIdentity() [all …]
|
/external/webrtc/audio/utility/ |
D | channel_mixing_matrix_unittest.cc | 56 std::vector<std::vector<float>> matrix; in TEST() local 57 bool remapping = matrix_builder.CreateTransformationMatrix(&matrix); in TEST() 67 EXPECT_EQ(static_cast<size_t>(input_channels), matrix[i].size()); in TEST() 70 float scale = matrix[i][j]; in TEST() 92 std::vector<std::vector<float>> matrix; in TEST() local 93 bool remapping = matrix_builder.CreateTransformationMatrix(&matrix); in TEST() 100 EXPECT_EQ(1u, matrix.size()); in TEST() 101 EXPECT_EQ(2u, matrix[0].size()); in TEST() 102 EXPECT_EQ(0.5f, matrix[0][0]); in TEST() 103 EXPECT_EQ(0.5f, matrix[0][1]); in TEST() [all …]
|
/external/pdfium/fxbarcode/qrcode/ |
D | BC_QRCoderMatrixUtil.cpp | 98 CBC_CommonByteMatrix* matrix) { in EmbedDataBits() argument 101 int32_t x = matrix->GetWidth() - 1; in EmbedDataBits() 102 int32_t y = matrix->GetHeight() - 1; in EmbedDataBits() 107 while (y >= 0 && y < matrix->GetHeight()) { in EmbedDataBits() 114 if (!IsEmpty(matrix->Get(xx, y))) { in EmbedDataBits() 127 matrix->Set(xx, y, bit); in EmbedDataBits() 175 CBC_CommonByteMatrix* matrix) { in EmbedTypeInfo() argument 184 matrix->Set(x1, y1, bit); in EmbedTypeInfo() 186 int32_t x2 = matrix->GetWidth() - i - 1; in EmbedTypeInfo() 188 matrix->Set(x2, y2, bit); in EmbedTypeInfo() [all …]
|
/external/llvm-project/mlir/test/Dialect/SPIRV/ |
D | matrix-ops.mlir | 5 …spv.func @matrix_times_scalar(%arg0 : !spv.matrix<3 x vector<3xf32>>, %arg1 : f32) -> !spv.matrix<… 6 …%.*}} = spv.MatrixTimesScalar {{%.*}}, {{%.*}} : !spv.matrix<3 x vector<3xf32>>, f32 -> !spv.matri… 7 …%result = spv.MatrixTimesScalar %arg0, %arg1 : !spv.matrix<3 x vector<3xf32>>, f32 -> !spv.matrix<… 8 spv.ReturnValue %result : !spv.matrix<3 x vector<3xf32>> 12 …spv.func @matrix_transpose_1(%arg0 : !spv.matrix<3 x vector<2xf32>>) -> !spv.matrix<2 x vector<3xf… 13 …// CHECK: {{%.*}} = spv.Transpose {{%.*}} : !spv.matrix<3 x vector<2xf32>> -> !spv.matrix<2 x vect… 14 %result = spv.Transpose %arg0 : !spv.matrix<3 x vector<2xf32>> -> !spv.matrix<2 x vector<3xf32>> 15 spv.ReturnValue %result : !spv.matrix<2 x vector<3xf32>> 19 …spv.func @matrix_transpose_2(%arg0 : !spv.matrix<3 x vector<3xf32>>) -> !spv.matrix<3 x vector<3xf… 20 …// CHECK: {{%.*}} = spv.Transpose {{%.*}} : !spv.matrix<3 x vector<3xf32>> -> !spv.matrix<3 x vect… [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | hlsl.matType.int.frag.out | 9 0:25 move second child to first child ( temp 1X1 matrix of int) 10 0:25 'r00' ( temp 1X1 matrix of int) 11 0:25 transpose ( temp 1X1 matrix of int) 12 0:25 'i1x1' ( temp 1X1 matrix of int) 14 0:26 move second child to first child ( temp 1X2 matrix of int) 15 0:26 'r01' ( temp 1X2 matrix of int) 16 0:26 transpose ( temp 1X2 matrix of int) 17 0:26 'i2x1' ( temp 2X1 matrix of int) 19 0:27 move second child to first child ( temp 1X3 matrix of int) 20 0:27 'r02' ( temp 1X3 matrix of int) [all …]
|
D | hlsl.type.type.conversion.all.frag.out | 2 ERROR: 0:88: '=' : cannot convert from ' const 2X2 matrix of float' to ' temp 2-component vector o… 3 ERROR: 0:89: '=' : cannot convert from ' const 2X3 matrix of float' to ' temp 2-component vector o… 4 ERROR: 0:90: '=' : cannot convert from ' const 2X4 matrix of float' to ' temp 2-component vector o… 5 ERROR: 0:91: '=' : cannot convert from ' const 3X2 matrix of float' to ' temp 2-component vector o… 6 ERROR: 0:92: '=' : cannot convert from ' const 3X3 matrix of float' to ' temp 2-component vector o… 7 ERROR: 0:93: '=' : cannot convert from ' const 3X4 matrix of float' to ' temp 2-component vector o… 8 ERROR: 0:94: '=' : cannot convert from ' const 4X2 matrix of float' to ' temp 2-component vector o… 9 ERROR: 0:95: '=' : cannot convert from ' const 4X3 matrix of float' to ' temp 2-component vector o… 10 ERROR: 0:96: '=' : cannot convert from ' const 4X4 matrix of float' to ' temp 2-component vector o… 12 ERROR: 0:98: '=' : cannot convert from ' const 2X2 matrix of float' to ' temp 3-component vector o… [all …]
|
D | matrix2.frag.out | 12 0:21 move second child to first child ( temp 3X4 matrix of float) 13 0:21 'm34' ( temp 3X4 matrix of float) 14 0:21 outer product ( global 3X4 matrix of float) 17 0:23 add second child into first child ( temp 3X4 matrix of float) 18 0:23 'm34' ( temp 3X4 matrix of float) 41 0:26 vector-times-matrix ( temp 3-component vector of float) 43 0:26 'm34' ( temp 3X4 matrix of float) 46 0:28 matrix scale second child into first child ( temp 3X4 matrix of float) 47 0:28 'm34' ( temp 3X4 matrix of float) 53 0:30 move second child to first child ( temp 4X4 matrix of float) [all …]
|
D | hlsl.matType.bool.frag.out | 9 0:25 move second child to first child ( temp 1X1 matrix of bool) 10 0:25 'r00' ( temp 1X1 matrix of bool) 11 0:25 transpose ( temp 1X1 matrix of bool) 12 0:25 'b1x1' ( temp 1X1 matrix of bool) 14 0:26 move second child to first child ( temp 1X2 matrix of bool) 15 0:26 'r01' ( temp 1X2 matrix of bool) 16 0:26 transpose ( temp 1X2 matrix of bool) 17 0:26 'b2x1' ( temp 2X1 matrix of bool) 19 0:27 move second child to first child ( temp 1X3 matrix of bool) 20 0:27 'r02' ( temp 1X3 matrix of bool) [all …]
|
D | hlsl.matpack-pragma.frag.out | 17 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of flo… 18 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 19 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 27 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of … 28 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 29 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of fl… 38 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 39 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 47 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) [all …]
|
D | hlsl.mul-truncate.frag.out | 2 WARNING: 0:24: '' : mul() matrix size mismatch 3 WARNING: 0:25: '' : mul() matrix size mismatch 4 WARNING: 0:28: '' : mul() matrix size mismatch 5 WARNING: 0:29: '' : mul() matrix size mismatch 6 WARNING: 0:32: '' : mul() matrix size mismatch 7 WARNING: 0:33: '' : mul() matrix size mismatch 8 WARNING: 0:34: '' : mul() matrix size mismatch 9 WARNING: 0:35: '' : mul() matrix size mismatch 22 …matrix of float m44, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major … 27 …matrix of float m44, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major … [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.matType.int.frag.out | 9 0:25 move second child to first child ( temp 1X1 matrix of int) 10 0:25 'r00' ( temp 1X1 matrix of int) 11 0:25 transpose ( temp 1X1 matrix of int) 12 0:25 'i1x1' ( temp 1X1 matrix of int) 14 0:26 move second child to first child ( temp 1X2 matrix of int) 15 0:26 'r01' ( temp 1X2 matrix of int) 16 0:26 transpose ( temp 1X2 matrix of int) 17 0:26 'i2x1' ( temp 2X1 matrix of int) 19 0:27 move second child to first child ( temp 1X3 matrix of int) 20 0:27 'r02' ( temp 1X3 matrix of int) [all …]
|
D | hlsl.type.type.conversion.all.frag.out | 2 ERROR: 0:88: '=' : cannot convert from ' const 2X2 matrix of float' to ' temp 2-component vector o… 3 ERROR: 0:89: '=' : cannot convert from ' const 2X3 matrix of float' to ' temp 2-component vector o… 4 ERROR: 0:90: '=' : cannot convert from ' const 2X4 matrix of float' to ' temp 2-component vector o… 5 ERROR: 0:91: '=' : cannot convert from ' const 3X2 matrix of float' to ' temp 2-component vector o… 6 ERROR: 0:92: '=' : cannot convert from ' const 3X3 matrix of float' to ' temp 2-component vector o… 7 ERROR: 0:93: '=' : cannot convert from ' const 3X4 matrix of float' to ' temp 2-component vector o… 8 ERROR: 0:94: '=' : cannot convert from ' const 4X2 matrix of float' to ' temp 2-component vector o… 9 ERROR: 0:95: '=' : cannot convert from ' const 4X3 matrix of float' to ' temp 2-component vector o… 10 ERROR: 0:96: '=' : cannot convert from ' const 4X4 matrix of float' to ' temp 2-component vector o… 12 ERROR: 0:98: '=' : cannot convert from ' const 2X2 matrix of float' to ' temp 3-component vector o… [all …]
|
D | matrix2.frag.out | 12 0:21 move second child to first child ( temp 3X4 matrix of float) 13 0:21 'm34' ( temp 3X4 matrix of float) 14 0:21 outer product ( global 3X4 matrix of float) 17 0:23 add second child into first child ( temp 3X4 matrix of float) 18 0:23 'm34' ( temp 3X4 matrix of float) 41 0:26 vector-times-matrix ( temp 3-component vector of float) 43 0:26 'm34' ( temp 3X4 matrix of float) 46 0:28 matrix scale second child into first child ( temp 3X4 matrix of float) 47 0:28 'm34' ( temp 3X4 matrix of float) 53 0:30 move second child to first child ( temp 4X4 matrix of float) [all …]
|
D | hlsl.matType.bool.frag.out | 9 0:25 move second child to first child ( temp 1X1 matrix of bool) 10 0:25 'r00' ( temp 1X1 matrix of bool) 11 0:25 transpose ( temp 1X1 matrix of bool) 12 0:25 'b1x1' ( temp 1X1 matrix of bool) 14 0:26 move second child to first child ( temp 1X2 matrix of bool) 15 0:26 'r01' ( temp 1X2 matrix of bool) 16 0:26 transpose ( temp 1X2 matrix of bool) 17 0:26 'b2x1' ( temp 2X1 matrix of bool) 19 0:27 move second child to first child ( temp 1X3 matrix of bool) 20 0:27 'r02' ( temp 1X3 matrix of bool) [all …]
|
D | hlsl.matpack-pragma.frag.out | 17 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of flo… 18 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 19 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 27 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of … 28 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 29 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of fl… 38 …row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, lay… 39 …matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) t… 47 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) [all …]
|
D | hlsl.mul-truncate.frag.out | 2 WARNING: 0:24: '' : mul() matrix size mismatch 3 WARNING: 0:25: '' : mul() matrix size mismatch 4 WARNING: 0:28: '' : mul() matrix size mismatch 5 WARNING: 0:29: '' : mul() matrix size mismatch 6 WARNING: 0:32: '' : mul() matrix size mismatch 7 WARNING: 0:33: '' : mul() matrix size mismatch 8 WARNING: 0:34: '' : mul() matrix size mismatch 9 WARNING: 0:35: '' : mul() matrix size mismatch 22 …matrix of float m44, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major … 27 …matrix of float m44, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major … [all …]
|
/external/llvm-project/mlir/test/Dialect/SPIRV/Serialization/ |
D | matrix.mlir | 5 …spv.func @matrix_access_chain(%arg0 : !spv.ptr<!spv.matrix<3 x vector<3xf32>>, Function>, %arg1 : … 6 …// CHECK: {{%.*}} = spv.AccessChain {{%.*}}[{{%.*}}] : !spv.ptr<!spv.matrix<3 x vector<3xf32>>, Fu… 7 %0 = spv.AccessChain %arg0[%arg1] : !spv.ptr<!spv.matrix<3 x vector<3xf32>>,Function>, i32 12 …spv.func @matrix_times_scalar_1(%arg0 : !spv.matrix<3 x vector<3xf32>>, %arg1 : f32) -> !spv.matri… 13 …%.*}} = spv.MatrixTimesScalar {{%.*}}, {{%.*}} : !spv.matrix<3 x vector<3xf32>>, f32 -> !spv.matri… 14 …%result = spv.MatrixTimesScalar %arg0, %arg1 : !spv.matrix<3 x vector<3xf32>>, f32 -> !spv.matrix<… 15 spv.ReturnValue %result : !spv.matrix<3 x vector<3xf32>> 19 …spv.func @matrix_times_scalar_2(%arg0 : !spv.matrix<3 x vector<3xf16>>, %arg1 : f16) -> !spv.matri… 20 …%.*}} = spv.MatrixTimesScalar {{%.*}}, {{%.*}} : !spv.matrix<3 x vector<3xf16>>, f16 -> !spv.matri… 21 …%result = spv.MatrixTimesScalar %arg0, %arg1 : !spv.matrix<3 x vector<3xf16>>, f16 -> !spv.matrix<… [all …]
|
/external/libchrome/ui/gfx/geometry/ |
D | matrix3_unittest.cc | 33 Matrix3F matrix = Matrix3F::Ones(); in TEST() local 38 matrix.set(0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f); in TEST() 39 EXPECT_EQ(Vector3dF(2.0f, 5.0f, 8.0f), matrix.get_column(2)); in TEST() 40 EXPECT_EQ(Vector3dF(6.0f, 7.0f, 8.0f), matrix.get_row(2)); in TEST() 41 matrix.set_column(0, Vector3dF(0.1f, 0.2f, 0.3f)); in TEST() 42 matrix.set_column(0, Vector3dF(0.1f, 0.2f, 0.3f)); in TEST() 43 EXPECT_EQ(Vector3dF(0.1f, 0.2f, 0.3f), matrix.get_column(0)); in TEST() 44 EXPECT_EQ(Vector3dF(0.1f, 1.0f, 2.0f), matrix.get_row(0)); in TEST() 46 EXPECT_EQ(0.1f, matrix.get(0, 0)); in TEST() 47 EXPECT_EQ(5.0f, matrix.get(1, 2)); in TEST() [all …]
|
/external/libtextclassifier/native/lang_id/common/ |
D | embedding-network-params.h | 102 Matrix matrix; in GetEmbeddingMatrix() local 103 matrix.rows = embeddings_num_rows(i); in GetEmbeddingMatrix() 104 matrix.cols = embeddings_num_cols(i); in GetEmbeddingMatrix() 105 matrix.elements = embeddings_weights(i); in GetEmbeddingMatrix() 106 matrix.quant_type = embeddings_quant_type(i); in GetEmbeddingMatrix() 107 matrix.quant_scales = embeddings_quant_scales(i); in GetEmbeddingMatrix() 108 return matrix; in GetEmbeddingMatrix() 117 Matrix matrix; in GetHiddenLayerMatrix() local 118 matrix.rows = hidden_num_rows(i); in GetHiddenLayerMatrix() 119 matrix.cols = hidden_num_cols(i); in GetHiddenLayerMatrix() [all …]
|
/external/eigen/Eigen/src/LU/ |
D | InverseImpl.h | 26 static inline void run(const MatrixType& matrix, ResultType& result) in run() 28 result = matrix.partialPivLu().inverse(); in run() 43 static inline void run(const MatrixType& matrix, ResultType& result) 46 internal::evaluator<MatrixType> matrixEval(matrix); 56 const MatrixType& matrix, 64 determinant = matrix.coeff(0,0); 77 const MatrixType& matrix, const typename ResultType::Scalar& invdet, 80 result.coeffRef(0,0) = matrix.coeff(1,1) * invdet; 81 result.coeffRef(1,0) = -matrix.coeff(1,0) * invdet; 82 result.coeffRef(0,1) = -matrix.coeff(0,1) * invdet; [all …]
|
/external/eigen/bench/btl/data/ |
D | action_settings.txt | 1 aat ; "{/*1.5 A x A^T}" ; "matrix size" ; 4:5000 2 ata ; "{/*1.5 A^T x A}" ; "matrix size" ; 4:5000 3 atv ; "{/*1.5 matrix^T x vector}" ; "matrix size" ; 4:5000 6 matrix_matrix ; "{/*1.5 matrix matrix product}" ; "matrix size" ; 4:5000 7 matrix_vector ; "{/*1.5 matrix vector product}" ; "matrix size" ; 4:5000 8 trmm ; "{/*1.5 triangular matrix matrix product}" ; "matrix size" ; 4:5000 10 trisolve_matrix ; "{/*1.5 triangular solver - matrix (M = inv(L) M)}" ; "size" ; 4:5000 11 cholesky ; "{/*1.5 Cholesky decomposition}" ; "matrix size" ; 4:5000 12 complete_lu_decomp ; "{/*1.5 Complete LU decomposition}" ; "matrix size" ; 4:5000 13 partial_lu_decomp ; "{/*1.5 Partial LU decomposition}" ; "matrix size" ; 4:5000 [all …]
|
/external/autotest/client/deps/webgl_mpd/src/resources/ |
D | J3DIMath.js | 147 var matrix; 150 matrix = arguments[0].$matrix; 152 this.$matrix.m11 = matrix.m11; 153 this.$matrix.m12 = matrix.m12; 154 this.$matrix.m13 = matrix.m13; 155 this.$matrix.m14 = matrix.m14; 157 this.$matrix.m21 = matrix.m21; 158 this.$matrix.m22 = matrix.m22; 159 this.$matrix.m23 = matrix.m23; 160 this.$matrix.m24 = matrix.m24; [all …]
|
/external/skia/docs/examples/ |
D | Matrix_TypeMask.cpp | 7 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 …]
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | matrix-type.cpp | 179 using matrix = T __attribute__((matrix_type(R, C))); typedef 185 selector<0> use_matrix(matrix<T, R, C> &m) {} in use_matrix() 188 selector<1> use_matrix(matrix<T, R, 10> &m) {} in use_matrix() 191 selector<2> use_matrix(matrix<T, 10, 10> &m) {} in use_matrix() 194 selector<3> use_matrix(matrix<T, 10, C> &m) {} in use_matrix() 197 selector<4> use_matrix(matrix<float, R, C> &m) {} in use_matrix() 260 matrix<int, 10, 12> m0; in test_template_deduction() 262 matrix<int, 10, 10> m1; in test_template_deduction() 264 matrix<int, 12, 10> m2; in test_template_deduction() 266 matrix<int, 12, 12> m3; in test_template_deduction() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/linalg/ |
D | linear_operator_full_matrix_test.py | 45 matrix = linear_operator_test_util.random_positive_definite_matrix( 48 lin_op_matrix = matrix 51 lin_op_matrix = array_ops.placeholder_with_default(matrix, shape=None) 60 return operator, matrix 64 matrix = [[1., 0.], [1., 11.]] 66 matrix, 82 matrix = self.evaluate(math_ops.matmul(tril, tril, transpose_b=True)) 83 operator = linalg.LinearOperatorFullMatrix(matrix) 86 cond = np.linalg.cond(matrix) 93 matrix = [[1., 1.], [1., 1.]] [all …]
|