Home
last modified time | relevance | path

Searched refs:mat2 (Results 1 – 25 of 85) sorted by relevance

1234

/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/spec/gl-matrix/
Dmat2-spec.js22 var mat2 = require("../../src/gl-matrix/mat2.js");
41 beforeEach(function() { result = mat2.create(); });
46 beforeEach(function() { result = mat2.clone(matA); });
51 beforeEach(function() { result = mat2.copy(out, matA); });
57 beforeEach(function() { result = mat2.identity(out); });
64 beforeEach(function() { result = mat2.transpose(out, matA); });
72 beforeEach(function() { result = mat2.transpose(matA, matA); });
81 beforeEach(function() { result = mat2.invert(out, matA); });
89 beforeEach(function() { result = mat2.invert(matA, matA); });
98 beforeEach(function() { result = mat2.adjoint(out, matA); });
[all …]
/external/vixl/examples/
Dneon-matrix-multiply.cc117 float mat1[kLength], mat2[kLength], output[kLength]; in main() local
132 mat2[0] = 1.0f; mat2[4] = 11.24f; mat2[ 8] = 21.00f; mat2[12] = 21.31f; in main()
133 mat2[1] = 2.0f; mat2[5] = 2.24f; mat2[ 9] = 8.56f; mat2[13] = 52.03f; in main()
134 mat2[2] = 3.0f; mat2[6] = 51.00f; mat2[10] = 21.00f; mat2[14] = 33.11f; in main()
135 mat2[3] = 4.0f; mat2[7] = 0.00f; mat2[11] = 84.00f; mat2[15] = 1.97f; in main()
140 simulator.set_xreg(2, reinterpret_cast<uintptr_t>(mat2)); in main()
149 mat2[i], mat2[4+i], mat2[8+i], mat2[12+i], in main()
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/
Dmat2.js27 var mat2 = {}; variable
34 mat2.create = function() {
49 mat2.clone = function(a) {
65 mat2.copy = function(out, a) {
79 mat2.identity = function(out) {
94 mat2.transpose = function(out, a) {
117 mat2.invert = function(out, a) {
143 mat2.adjoint = function(out, a) {
160 mat2.determinant = function (a) {
172 mat2.multiply = function (out, a, b) {
[all …]
/external/eigen/doc/snippets/
DTutorial_AdvancedInitialization_ThreeWays.cpp9 MatrixXd mat2(size, size);
10 mat2.topLeftCorner(size/2, size/2).setZero();
11 mat2.topRightCorner(size/2, size/2).setIdentity();
12 mat2.bottomLeftCorner(size/2, size/2).setIdentity();
13 mat2.bottomRightCorner(size/2, size/2).setZero();
14 std::cout << mat2 << std::endl << std::endl;
/external/opencv/cxcore/src/
Dcxnorm.cpp980 CvMat stub2, *mat2 = (CvMat*)imgA; in cvNorm() local
987 mat1 = mat2; in cvNorm()
988 mat2 = 0; in cvNorm()
991 is_relative = mat2 && (normType & CV_RELATIVE); in cvNorm()
1009 if( CV_IS_MAT(mat1) && (!mat2 || CV_IS_MAT(mat2)) && !mask ) in cvNorm()
1011 if( mat2 ) in cvNorm()
1013 if( !CV_ARE_TYPES_EQ( mat1, mat2 )) in cvNorm()
1016 if( !CV_ARE_SIZES_EQ( mat1, mat2 )) in cvNorm()
1019 mat2_flag = mat2->type; in cvNorm()
1038 if( !mat2 || is_relative ) in cvNorm()
[all …]
/external/eigen/test/
Dproduct_large.cpp56 MatrixXf mat2(32,32); mat2.setRandom(); in test_product_large() local
57 MatrixXf r1 = mat1.row(2)*mat2.transpose(); in test_product_large()
58 VERIFY_IS_APPROX(r1, (mat1.row(2)*mat2.transpose()).eval()); in test_product_large()
60 MatrixXf r2 = mat1.row(2)*mat2; in test_product_large()
61 VERIFY_IS_APPROX(r2, (mat1.row(2)*mat2).eval()); in test_product_large()
/external/deqp/data/gles2/shaders/
Dconversions.test3188mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat…
3200 out0 = mat2(in0);
3254mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat…
3266 out0 = mat2(in0);
3320 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(0.0, 0.0, 0.0, 0.0) ];
3332 out0 = mat2(in0);
3390 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.0208333333333) ];
3402 out0 = mat2(in0);
3456 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.03125) ];
3468 out0 = mat2(in0);
[all …]
/external/vixl/test/examples/
Dtest-examples.cc259 float mat1[kLength], mat2[kLength], expected[kLength], output[kLength]; in TEST() local
268 mat2[0] = 1.0f; mat2[4] = 11.24f; mat2[ 8] = 21.00f; mat2[12] = 21.31f; in TEST()
269 mat2[1] = 2.0f; mat2[5] = 2.24f; mat2[ 9] = 8.56f; mat2[13] = 52.03f; in TEST()
270 mat2[2] = 3.0f; mat2[6] = 51.00f; mat2[10] = 21.00f; mat2[14] = 33.11f; in TEST()
271 mat2[3] = 4.0f; mat2[7] = 0.00f; mat2[11] = 84.00f; mat2[15] = 1.97f; in TEST()
273 MatrixMultiplyC(expected, mat1, mat2); in TEST()
278 simulator.set_xreg(2, reinterpret_cast<uintptr_t>(mat2)); in TEST()
/external/eigen/test/eigen2/
Deigen2_product_large.cpp40 MatrixXf mat2(32,10); mat2.setRandom(); in test_eigen2_product_large() local
41 MatrixXf result = mat1.row(2)*mat2.transpose(); in test_eigen2_product_large()
42 VERIFY_IS_APPROX(result, (mat1.row(2)*mat2.transpose()).eval()); in test_eigen2_product_large()
/external/deqp/data/gles3/shaders/
Dconversions.test6271mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat…
6284 out0 = mat2(in0);
6487mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(1.0, 0.0, 0.0, 1.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat…
6500 out0 = mat2(in0);
6703mat2 out0 = [ mat2(0.0, 0.0, 0.0, 0.0) | mat2(2.0, 0.0, 0.0, 2.0) | mat2(3.0, 0.0, 0.0, 3.0) | mat…
6716 out0 = mat2(in0);
6919 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(0.0, 0.0, 0.0, 0.0) ];
6932 out0 = mat2(in0);
7139 output mat2 out0 = [ mat2(1.0, 0.0, 0.0, 1.0) | mat2(6.5, 32.0, 12.5, 0.0208333333333) ];
7152 out0 = mat2(in0);
[all …]
/external/deqp/data/gles31/shaders/
Dlinkage_tessellation_varying_types.test219 case mat2
221 desc "varying of type mat2"
225mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
226mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
231 out mediump mat2 vtx_var;
241 in mediump mat2 vtx_var[];
242 out mediump mat2 tc_out[];
252 in mediump mat2 tc_out[];
253 out mediump mat2 te_out;
264 in mat2 te_out;
Dlinkage_geometry_varying_types.test191 case mat2
193 desc "varying of type mat2"
197mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
198mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
203 out mediump mat2 vtx_var;
213 in mediump mat2 vtx_var[];
214 out mediump mat2 geo_var;
229 in mat2 geo_var;
Dlinkage_tessellation_geometry_varying_types.test283 case mat2
285 desc "varying of type mat2"
290mat2 in0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
291mat2 out0 = [ mat2(1.0, 1.0, 1.0, 1.0) | mat2(-1.25, 1.25, -9.5, -12.2) | mat2(-25.65, -7.25, 14.2…
296 out mediump mat2 vtx_var;
306 in mediump mat2 vtx_var[];
307 out mediump mat2 tc_out[];
317 in mediump mat2 tc_out[];
318 out mediump mat2 te_out;
328 in mediump mat2 te_out[];
[all …]
Dlinkage_tessellation_uniform_types.test211 case mat2
213 desc "uniform of type mat2"
217 uniform mat2 val0 = [ mat2(-1.25, 1.25, -9.5, -12.2) ];
218 uniform mat2 val1 = [ mat2(1.0, 1.5, 2.5, -1.0) ];
219 output mat2 out0 = [ mat2(0.75, 4.25, -4.5, -14.2) ];
232 out mediump mat2 tc_out[];
242 in mediump mat2 tc_out[];
243 out mediump mat2 te_out;
254 in mat2 te_out;
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestCcd.java62 private Material mat2; field in TestCcd
93 mat2 = new Material(getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp()
94 mat2.getAdditionalRenderState().setWireframe(true); in simpleInitApp()
95 mat2.setColor("Color", ColorRGBA.Red); in simpleInitApp()
142 bulletg.setMaterial(mat2); in onAction()
DTestCollisionShapeFactory.java58 private Material mat2; field in TestCollisionShapeFactory
78 attachRandomGeometry(node2, mat2); in simpleInitApp()
128 mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in createMaterial()
129 mat2.setColor("Color", ColorRGBA.Red); in createMaterial()
DTestBoneRagdoll.java111 Material mat2 = new Material(getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp() local
112 mat2.getAdditionalRenderState().setWireframe(true); in simpleInitApp()
113 mat2.setColor("Color", ColorRGBA.Green); in simpleInitApp()
114 mat2.getAdditionalRenderState().setDepthTest(false); in simpleInitApp()
115 skeletonDebug.setMaterial(mat2); in simpleInitApp()
DTestBrickWall.java69 Material mat2; field in TestBrickWall
122 bulletg.setMaterial(mat2);
173 mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in initMaterial()
177 mat2.setTexture("ColorMap", tex2); in initMaterial()
DTestBrickTower.java79 Material mat2; field in TestBrickTower
133 bulletg.setMaterial(mat2);
200 mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in initMaterial()
204 mat2.setTexture("ColorMap", tex2); in initMaterial()
/external/jmonkeyengine/engine/src/test/jme3test/helloworld/
DHelloNode.java67 Material mat2 = new Material(assetManager, in simpleInitApp() local
69 mat2.setColor("Color", ColorRGBA.Red); in simpleInitApp()
70 red.setMaterial(mat2); in simpleInitApp()
/external/jmonkeyengine/engine/src/test/jme3test/conversion/
DTestMipMapGen.java80 Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp() local
81 mat2.setTexture("ColorMap", texCustomMip); in simpleInitApp()
86 quad2.setMaterial(mat2); in simpleInitApp()
/external/jmonkeyengine/engine/src/test/jme3test/model/shape/
DTestBillboard.java62 Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp() local
63 mat2.setColor("Color", ColorRGBA.Yellow); in simpleInitApp()
64 g3.setMaterial(mat2); in simpleInitApp()
/external/eigen/doc/
DQuickReference.dox322 mat3 = mat1 + mat2; mat3 += mat1;
323 mat3 = mat1 - mat2; mat3 -= mat1;\endcode
334 mat3 = mat1 * mat2; mat3 *= mat1; \endcode
338 mat1 = mat2.transpose(); mat1.transposeInPlace();
339 mat1 = mat2.adjoint(); mat1.adjointInPlace();
371 mat1.cwiseMin(mat2)
372 mat1.cwiseMax(mat2)
376 mat1.cwiseProduct(mat2)
377 mat1.cwiseQuotient(mat2)\endcode
379 mat1.array().min(mat2.array())
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/effect/
DTestSoftParticles.java58 Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp() local
59 mat2.setColor("Color", ColorRGBA.DarkGray); in simpleInitApp()
60 geom2.setMaterial(mat2); in simpleInitApp()
/external/jmonkeyengine/engine/src/test/jme3test/batching/
DTestBatchNodeCluster.java63 Material mat2; field in TestBatchNodeCluster
85 mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); in simpleInitApp()
86 mat2.setColor("Color", ColorRGBA.White); in simpleInitApp()
87 mat2.setColor("GlowColor", ColorRGBA.Red.mult(10)); in simpleInitApp()
151 box.setMaterial(mat2); in randomGenerator()

1234