Home
last modified time | relevance | path

Searched refs:mat3 (Results 1 – 25 of 205) sorted by relevance

123456789

/external/deqp/data/gles31/shaders/es32/
Darrays_of_arrays.test419 mat3[3][2] a = mat3[3][2] ( mat3[2] ( mat3( in0.x, in0.y, in0.z,
422 mat3( in0.z, in0.x, -in0.y,
426 mat3[2] ( mat3( -in0.z, -in0.z, in0.z,
429 mat3( in0.x, in0.y, in0.z,
433 mat3[2] ( mat3( in0.z, in0.x, -in0.y,
436 mat3( -in0.z, -in0.z, in0.z,
440 mat3 a0 = a[0][0];
441 mat3 a1 = a[0][1];
442 mat3 a2 = a[2][1];
473 mat3 a = mat3( in0.x, in0.y, in0.z,
[all …]
Dlinkage_tessellation_varying_types.test445 case mat3
447 desc "varying of type mat3"
450 …put mat3 in0 = [ mat3(-1.25, 1.25, -9.5, -12.2, -25.65, -7.25, 14.21, -77.7, 9.9) | mat3(0.0, 1.0…
451 …put mat3 out0 = [ mat3(-1.25, 1.25, -9.5, -12.2, -25.65, -7.25, 14.21, -77.7, 9.9) | mat3(0.0, 1.0…
456 out mediump mat3 vtx_var;
466 in mediump mat3 vtx_var[];
467 out mediump mat3 tc_out[];
477 in mediump mat3 tc_out[];
478 out mediump mat3 te_out;
489 in mat3 te_out;
/external/deqp/data/gles31/shaders/es31/
Darrays_of_arrays.test400 mat3[3][2] a = mat3[3][2] ( mat3[2] ( mat3( in0.x, in0.y, in0.z,
403 mat3( in0.z, in0.x, -in0.y,
407 mat3[2] ( mat3( -in0.z, -in0.z, in0.z,
410 mat3( in0.x, in0.y, in0.z,
414 mat3[2] ( mat3( in0.z, in0.x, -in0.y,
417 mat3( -in0.z, -in0.z, in0.z,
421 mat3 a0 = a[0][0];
422 mat3 a1 = a[0][1];
423 mat3 a2 = a[2][1];
454 mat3 a = mat3( in0.x, in0.y, in0.z,
[all …]
Dlinkage_tessellation_varying_types.test435 case mat3
437 desc "varying of type mat3"
441 …put mat3 in0 = [ mat3(-1.25, 1.25, -9.5, -12.2, -25.65, -7.25, 14.21, -77.7, 9.9) | mat3(0.0, 1.0…
442 …put mat3 out0 = [ mat3(-1.25, 1.25, -9.5, -12.2, -25.65, -7.25, 14.21, -77.7, 9.9) | mat3(0.0, 1.0…
447 out mediump mat3 vtx_var;
457 in mediump mat3 vtx_var[];
458 out mediump mat3 tc_out[];
468 in mediump mat3 tc_out[];
469 out mediump mat3 te_out;
480 in mat3 te_out;
/external/eigen/unsupported/test/
Dcxx11_tensor_map.cpp88 TensorMap<Tensor<const int, 2> > mat3(mat1.data(), 2, 3); in test_2d() local
91 VERIFY_IS_EQUAL(mat3.rank(), 2); in test_2d()
92 VERIFY_IS_EQUAL(mat3.size(), 6); in test_2d()
93 VERIFY_IS_EQUAL(mat3.dimension(0), 2); in test_2d()
94 VERIFY_IS_EQUAL(mat3.dimension(1), 3); in test_2d()
101 VERIFY_IS_EQUAL(mat3(0,0), 0); in test_2d()
102 VERIFY_IS_EQUAL(mat3(0,1), 1); in test_2d()
103 VERIFY_IS_EQUAL(mat3(0,2), 2); in test_2d()
104 VERIFY_IS_EQUAL(mat3(1,0), 3); in test_2d()
105 VERIFY_IS_EQUAL(mat3(1,1), 4); in test_2d()
[all …]
Dcxx11_tensor_contraction.cpp24 Tensor<float, 2, DataLayout> mat3(3, 2); in test_evals() local
28 mat3.setRandom(); in test_evals()
68 typedef TensorEvaluator<decltype(mat1.contract(mat3, dims6)), DefaultDevice> Evaluator3; in test_evals()
69 Evaluator3 eval3(mat1.contract(mat3, dims6), DefaultDevice()); in test_evals()
75 VERIFY_IS_APPROX(mat6(0,0), mat1(0,0)*mat3(0,0) + mat1(0,1)*mat3(1,0) + mat1(0,2)*mat3(2,0)); in test_evals()
76 VERIFY_IS_APPROX(mat6(0,1), mat1(0,0)*mat3(0,1) + mat1(0,1)*mat3(1,1) + mat1(0,2)*mat3(2,1)); in test_evals()
77 VERIFY_IS_APPROX(mat6(1,0), mat1(1,0)*mat3(0,0) + mat1(1,1)*mat3(1,0) + mat1(1,2)*mat3(2,0)); in test_evals()
78 VERIFY_IS_APPROX(mat6(1,1), mat1(1,0)*mat3(0,1) + mat1(1,1)*mat3(1,1) + mat1(1,2)*mat3(2,1)); in test_evals()
109 Tensor<float, 3, DataLayout> mat3(2, 2, 2); in test_multidims() local
110 mat3.setZero(); in test_multidims()
[all …]
Dcxx11_tensor_forced_eval.cpp28 Tensor<float, 2> mat3(3,3); in test_simple() local
29 mat3 = mat1; in test_simple()
35 mat3 = mat3.contract(mat2, dims).eval(); in test_simple()
37 VERIFY_IS_APPROX(mat3(0, 0), (m1*m2).eval()(0,0)); in test_simple()
38 VERIFY_IS_APPROX(mat3(0, 1), (m1*m2).eval()(0,1)); in test_simple()
39 VERIFY_IS_APPROX(mat3(0, 2), (m1*m2).eval()(0,2)); in test_simple()
40 VERIFY_IS_APPROX(mat3(1, 0), (m1*m2).eval()(1,0)); in test_simple()
41 VERIFY_IS_APPROX(mat3(1, 1), (m1*m2).eval()(1,1)); in test_simple()
42 VERIFY_IS_APPROX(mat3(1, 2), (m1*m2).eval()(1,2)); in test_simple()
43 VERIFY_IS_APPROX(mat3(2, 0), (m1*m2).eval()(2,0)); in test_simple()
[all …]
Dcxx11_tensor_expr.cpp90 Tensor<float, 2> mat3(2,3); in test_2d() local
92 mat3 = mat1.abs(); in test_2d()
95 VERIFY_IS_APPROX(mat3(0,0), 0.0f); in test_2d()
96 VERIFY_IS_APPROX(mat3(0,1), 1.0f); in test_2d()
97 VERIFY_IS_APPROX(mat3(0,2), 2.0f); in test_2d()
98 VERIFY_IS_APPROX(mat3(1,0), 3.0f); in test_2d()
99 VERIFY_IS_APPROX(mat3(1,1), 4.0f); in test_2d()
100 VERIFY_IS_APPROX(mat3(1,2), 5.0f); in test_2d()
126 Tensor<float, 3> mat3(2,3,7); in test_3d() local
127 mat3 = mat1 + mat1; in test_3d()
[all …]
Dcxx11_tensor_fixed_size.cpp156 TensorFixedSize<float, Sizes<2, 3> > mat3; in test_2d() local
158 mat3 = mat1.abs(); in test_2d()
161 VERIFY_IS_EQUAL((mat3.size()), 2*3); in test_2d()
165 VERIFY_IS_APPROX(mat3(0,0), 0.0f); in test_2d()
166 VERIFY_IS_APPROX(mat3(0,1), 1.0f); in test_2d()
167 VERIFY_IS_APPROX(mat3(0,2), 2.0f); in test_2d()
168 VERIFY_IS_APPROX(mat3(1,0), 3.0f); in test_2d()
169 VERIFY_IS_APPROX(mat3(1,1), 4.0f); in test_2d()
170 VERIFY_IS_APPROX(mat3(1,2), 5.0f); in test_2d()
202 TensorFixedSize<float, Sizes<2, 3, 7> > mat3; in test_3d() local
[all …]
Dcxx11_tensor_assign.cpp95 TensorMap<Tensor<int, 2> > mat3(row_major, 2, 3); in test_2d() local
98 mat3 = mat1; in test_2d()
101 VERIFY_IS_EQUAL(mat3(0,0), 0); in test_2d()
102 VERIFY_IS_EQUAL(mat3(0,1), 1); in test_2d()
103 VERIFY_IS_EQUAL(mat3(0,2), 2); in test_2d()
104 VERIFY_IS_EQUAL(mat3(1,0), 3); in test_2d()
105 VERIFY_IS_EQUAL(mat3(1,1), 4); in test_2d()
106 VERIFY_IS_EQUAL(mat3(1,2), 5); in test_2d()
117 mat1 = mat3; in test_2d()
155 TensorMap<Tensor<int, 3> > mat3(col_major, 2, 3, 7); in test_3d() local
[all …]
Dcxx11_tensor_lvalue.cpp22 Tensor<float, 3> mat3(2,3,7); in test_compound_assignment() local
26 mat3 = mat1; in test_compound_assignment()
27 mat3 += mat2; in test_compound_assignment()
32 VERIFY_IS_APPROX(mat3(i,j,k), mat1(i,j,k) + mat2(i,j,k)); in test_compound_assignment()
/external/eigen/test/
Dgeo_orthomethods.cpp37 Matrix3 mat3; in orthomethods_3() local
38 mat3 << v0.normalized(), in orthomethods_3()
41 VERIFY(mat3.isUnitary()); in orthomethods_3()
43 mat3.setRandom(); in orthomethods_3()
44 VERIFY_IS_APPROX(v0.cross(mat3*v1), -(mat3*v1).cross(v0)); in orthomethods_3()
45 VERIFY_IS_APPROX(v0.cross(mat3.lazyProduct(v1)), -(mat3.lazyProduct(v1)).cross(v0)); in orthomethods_3()
48 mat3.setRandom(); in orthomethods_3()
52 mcross = mat3.colwise().cross(vec3); in orthomethods_3()
53 VERIFY_IS_APPROX(mcross.col(i), mat3.col(i).cross(vec3)); in orthomethods_3()
55 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(vec3)).diagonal().cwiseAbs().su… in orthomethods_3()
[all …]
/external/deqp/external/openglcts/data/gl33/
Darrays.test340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
343 mat3( in0.z, in0.x, -in0.y,
346 mat3( -in0.z, -in0.z, in0.z,
350 mat3 a0 = a[0];
351 mat3 a1 = a[1];
352 mat3 a2 = a[2];
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
384 mat3( in0.z, in0.x, -in0.y,
387 mat3( -in0.z, -in0.z, in0.z,
391 mat3 a0 = a[0];
[all …]
/external/deqp/external/openglcts/data/gles3/
Darrays.test340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
343 mat3( in0.z, in0.x, -in0.y,
346 mat3( -in0.z, -in0.z, in0.z,
350 mat3 a0 = a[0];
351 mat3 a1 = a[1];
352 mat3 a2 = a[2];
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
384 mat3( in0.z, in0.x, -in0.y,
387 mat3( -in0.z, -in0.z, in0.z,
391 mat3 a0 = a[0];
[all …]
/external/deqp/external/vulkancts/data/vulkan/glsl/es310/
Darrays.test343 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
346 mat3( in0.z, in0.x, -in0.y,
349 mat3( -in0.z, -in0.z, in0.z,
353 mat3 a0 = a[0];
354 mat3 a1 = a[1];
355 mat3 a2 = a[2];
384 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
387 mat3( in0.z, in0.x, -in0.y,
390 mat3( -in0.z, -in0.z, in0.z,
394 mat3 a0 = a[0];
[all …]
Dconversions.test5115mat3 out0 = [ mat3(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) | mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.…
5128 out0 = mat3(in0);
5331mat3 out0 = [ mat3(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) | mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.…
5344 out0 = mat3(in0);
5547mat3 out0 = [ mat3(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) | mat3(2.0, 0.0, 0.0, 0.0, 2.0, 0.…
5560 out0 = mat3(in0);
5763 …output mat3 out0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(0.0, 0.0, 0.0, 0.0, …
5776 out0 = mat3(in0);
5983 …output mat3 out0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(6.5, 32.0, 0.125, 12…
5996 out0 = mat3(in0);
[all …]
/external/deqp/data/gles3/shaders/
Darrays.test340 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
343 mat3( in0.z, in0.x, -in0.y,
346 mat3( -in0.z, -in0.z, in0.z,
350 mat3 a0 = a[0];
351 mat3 a1 = a[1];
352 mat3 a2 = a[2];
381 mat3[3] a = mat3[3] ( mat3( in0.x, in0.y, in0.z,
384 mat3( in0.z, in0.x, -in0.y,
387 mat3( -in0.z, -in0.z, in0.z,
391 mat3 a0 = a[0];
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.matpack-pragma.frag.out18 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
19mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
28 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
29mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of fl…
38 … column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
39mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
48 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
49mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix …
58 …ut( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
[all …]
/external/deqp-deps/glslang/Test/
D120.frag142 mat3 r3 = matrixCompMult(m33, m33);
164 mat3 m3 = mat3(m4);
165 mat3 m3b1 = mat3(m4, v2); // ERROR, extra arg
166 mat3 m3b2 = mat3(m4, m4); // ERROR, extra arg
169 mat3 m3s = mat3(v2.x);
171 mat3 m3a1[2] = mat3[2](m3s, m3s);
172 mat3 m3a2[2] = mat3[2](m3s, m3s, m3s); // ERROR, too many args
Dspv.matFun.vert5 uniform mat3 m3;
10 vec3 xf(mat3 m, vec3 v)
15 mat3 Mat3(mat4 m)
17 return mat3(m[0].xyz, m[1].xyz, m[2].xyz);
Dhlsl.matpack-pragma.frag7 /*floating*/ float4x4 mat3;
16 /*floating*/ float4x4 mat3;
31 g_MyBuffer1.mat1[0] + g_MyBuffer1.mat2[0] + g_MyBuffer1.mat3[0] +
32 g_MyBuffer2.mat1[0] + g_MyBuffer2.mat2[0] + g_MyBuffer2.mat3[0];
Dspv.matrix2.frag3 in mat3 colorTransform;
10 in mat3 um3;
43 mat3 inv3 = inverse(um3);
Dmatrix2.frag3 uniform mat3 colorTransform;
10 uniform mat3 um3;
43 mat3 inv3 = inverse(um3);
/external/deqp/data/gles2/shaders/
Dconversions.test3166mat3 out0 = [ mat3(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) | mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.…
3178 out0 = mat3(in0);
3232mat3 out0 = [ mat3(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) | mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.…
3244 out0 = mat3(in0);
3298 …output mat3 out0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(0.0, 0.0, 0.0, 0.0, …
3310 out0 = mat3(in0);
3368 …output mat3 out0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(6.5, 32.0, 0.125, 12…
3380 out0 = mat3(in0);
3411 …input mat3 in0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(6.5, 32.0, 0.125, 12.5…
3433 …input mat3 in0 = [ mat3(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) | mat3(6.5, 32.0, 0.125, 12.5…
[all …]
/external/eigen/doc/snippets/
DTutorial_AdvancedInitialization_ThreeWays.cpp16 MatrixXd mat3(size, size);
17 mat3 << MatrixXd::Zero(size/2, size/2), MatrixXd::Identity(size/2, size/2),
19 std::cout << mat3 << std::endl;

123456789