Home
last modified time | relevance | path

Searched refs:matrices (Results 1 – 25 of 188) sorted by relevance

12345678

/external/skqp/gm/
Ddrawimageset.cpp98 SkMatrix matrices[4]; in onDraw() local
100 matrices[0].setRotate(30); in onDraw()
101 matrices[0].postTranslate(d / 3, 0); in onDraw()
109 SkAssertResult(matrices[1].setPolyToPoly(src, dst, 4)); in onDraw()
110 matrices[1].postTranslate(d, 50.f); in onDraw()
112 matrices[2].setRotate(-60.f); in onDraw()
113 matrices[2].postSkew(0.5f, -1.15f); in onDraw()
114 matrices[2].postScale(0.6f, 1.05f); in onDraw()
115 matrices[2].postTranslate(d, 2.6f * d); in onDraw()
121 SkAssertResult(matrices[3].setPolyToPoly(src, dst, 4)); in onDraw()
[all …]
Dperspimages.cpp39 SkTDArray<SkMatrix> matrices; in onDraw() local
40 matrices.push()->setAll(1.f, 0.f, 0.f, in onDraw()
43 matrices.push()->setAll(1.f, 0.f, 0.f, in onDraw()
46 matrices[1].preSkew(0.2f, -0.1f); in onDraw()
47 matrices[1].preRotate(-65.f); in onDraw()
48 matrices[1].preScale(1.2f, .8f); in onDraw()
49 matrices[1].postTranslate(0.f, 60.f); in onDraw()
55 for (const auto& m : matrices) { in onDraw()
70 for (const auto& m : matrices) { in onDraw()
/external/skia/gm/
Ddrawimageset.cpp98 SkMatrix matrices[4]; in onDraw() local
100 matrices[0].setRotate(30); in onDraw()
101 matrices[0].postTranslate(d / 3, 0); in onDraw()
109 SkAssertResult(matrices[1].setPolyToPoly(src, dst, 4)); in onDraw()
110 matrices[1].postTranslate(d, 50.f); in onDraw()
112 matrices[2].setRotate(-60.f); in onDraw()
113 matrices[2].postSkew(0.5f, -1.15f); in onDraw()
114 matrices[2].postScale(0.6f, 1.05f); in onDraw()
115 matrices[2].postTranslate(d, 2.6f * d); in onDraw()
121 SkAssertResult(matrices[3].setPolyToPoly(src, dst, 4)); in onDraw()
[all …]
Dperspimages.cpp39 SkTDArray<SkMatrix> matrices; in onDraw() local
40 matrices.push()->setAll(1.f, 0.f, 0.f, in onDraw()
43 matrices.push()->setAll(1.f, 0.f, 0.f, in onDraw()
46 matrices[1].preSkew(0.2f, -0.1f); in onDraw()
47 matrices[1].preRotate(-65.f); in onDraw()
48 matrices[1].preScale(1.2f, .8f); in onDraw()
49 matrices[1].postTranslate(0.f, 60.f); in onDraw()
55 for (const auto& m : matrices) { in onDraw()
70 for (const auto& m : matrices) { in onDraw()
/external/tensorflow/tensorflow/contrib/constrained_optimization/python/
Dswap_regret_optimizer_test.py167 matrices = []
170 while len(matrices) < len(expected_matrices):
171 matrices.append(session.run(optimizer.stochastic_matrix))
174 for expected, actual in zip(expected_matrices, matrices):
200 matrices = []
203 while len(matrices) < len(expected_matrices):
204 matrices.append(session.run(optimizer.stochastic_matrix))
207 for expected, actual in zip(expected_matrices, matrices):
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dlinear_operator_composition_test.py56 matrices = [
62 lin_op_matrices = matrices
67 matrix, shape=None) for matrix in matrices]
73 matmul_order_list = list(reversed(matrices))
160 matrices = [
166 lin_op_matrices = matrices
171 matrix, shape=None) for matrix in matrices]
176 matmul_order_list = list(reversed(matrices))
Dlinear_operator_block_diag_test.py89 matrices = [
95 lin_op_matrices = matrices
100 matrix, shape=None) for matrix in matrices]
116 matrices = linear_operator_util.broadcast_matrix_batch_dims(matrices)
118 block_diag_dense = _block_diag_dense(expected_shape, matrices)
Dlinear_operator_kronecker_test.py113 matrices = [
119 lin_op_matrices = matrices
123 array_ops.placeholder_with_default(m, shape=None) for m in matrices]
133 matrices = linear_operator_util.broadcast_matrix_batch_dims(matrices)
135 kronecker_dense = _kronecker_dense(matrices)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MatrixTriangularSolve.pbtxt24 Boolean indicating whether the innermost matrices in `matrix` are
39 summary: "Solves systems of linear equations with upper or lower triangular matrices by"
44 square matrices. If `lower` is `True` then the strictly upper triangular part
51 `True` then the innermost matrices in `output` satisfy matrix equations
53 If `adjoint` is `False` then the strictly then the innermost matrices in
Dapi_def_Qr.pbtxt7 form matrices of size `[M, N]`. Let `P` be the minimum of `M` and `N`.
32 summary: "Computes the QR decompositions of one or more matrices."
39 # q is a tensor of orthonormal matrices.
40 # r is a tensor of upper triangular matrices.
/external/swiftshader/third_party/PowerVR_SDK/Examples/Advanced/ChameleonMan/
DChameleonMan.txt10 …vertex over time given a set (palette) of matrices and a known set of blend weights assigned to th…
12 …del at time point 5.25 the application would linearly blend between the matrices stored for frame …
14 Per vertex, up to 3 matrices, from the palette, along with 3 weights are used by the vertex shader …
/external/skia/tests/
DGrCCPRTest.cpp364 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix* matrices, int numMatrices) { in drawPathsAndFlush() argument
367 ccpr.drawPath(fPaths[i], matrices[i % numMatrices]); in drawPathsAndFlush()
379 ccpr.drawPath(fPaths[idx], matrices[idx % numMatrices]); in drawPathsAndFlush()
499 SkMatrix matrices[3] = { in onRun() local
506 this->drawPathsAndFlush(ccpr, matrices, 3); in onRun()
522 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
528 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
533 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
539 matrices[1].postTranslate(SkScalarFloorToInt(kCanvasSize * -.25f), in onRun()
542 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
[all …]
/external/skqp/tests/
DGrCCPRTest.cpp363 void drawPathsAndFlush(CCPRPathDrawer& ccpr, const SkMatrix* matrices, int numMatrices) { in drawPathsAndFlush() argument
366 ccpr.drawPath(fPaths[i], matrices[i % numMatrices]); in drawPathsAndFlush()
378 ccpr.drawPath(fPaths[idx], matrices[idx % numMatrices]); in drawPathsAndFlush()
498 SkMatrix matrices[3] = { in onRun() local
505 this->drawPathsAndFlush(ccpr, matrices, 3); in onRun()
521 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
527 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
532 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
538 matrices[1].postTranslate(SkScalarFloorToInt(kCanvasSize * -.25f), in onRun()
541 this->drawPathsAndFlush(ccpr, matrices, 2); in onRun()
[all …]
/external/skqp/src/gpu/vk/
DGrVkPipelineStateDataManager.h49 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
50 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
51 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
76 const float matrices[]) const;
/external/skia/src/gpu/vk/
DGrVkPipelineStateDataManager.h49 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
50 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
51 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
76 const float matrices[]) const;
/external/skqp/src/gpu/mtl/
DGrMtlPipelineStateDataManager.h47 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
48 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
49 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
72 const float matrices[]) const;
/external/skia/src/gpu/mtl/
DGrMtlPipelineStateDataManager.h47 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
48 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
49 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
72 const float matrices[]) const;
/external/skia/src/gpu/gl/
DGrGLProgramDataManager.h74 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
75 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
76 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
107 const float matrices[]) const;
/external/skqp/src/gpu/gl/
DGrGLProgramDataManager.h74 void setMatrix2fv(UniformHandle, int arrayCount, const float matrices[]) const override;
75 void setMatrix3fv(UniformHandle, int arrayCount, const float matrices[]) const override;
76 void setMatrix4fv(UniformHandle, int arrayCount, const float matrices[]) const override;
107 const float matrices[]) const;
/external/tensorflow/tensorflow/compiler/tests/
Dcholesky_op_test.py81 matrices = np.random.rand(10, 5, 5).astype(dtype)
83 matrices[i] = np.dot(matrices[i].T, matrices[i])
84 self._verifyCholesky(matrices, atol=1e-4)
/external/eigen/doc/
DTutorialArrayClass.dox59 …overloaded to provide write and read access to the coefficients of an array, just as with matrices.
76 Adding and subtracting two arrays is the same as for matrices.
94 … course you can multiply an array by a scalar, this works in the same way as matrices. Where arrays
95 are fundamentally different from matrices, is when you multiply two together. Matrices interpret
133 apply Matrix operations on arrays, or Array operations on matrices. Thus, if you need to do linear …
134 operations such as matrix multiplication, then you should use matrices; if you need to do coefficie…
137 access to all operations regardless of the choice of declaring objects as arrays or as matrices.
147 Mixing matrices and arrays in an expression is forbidden with Eigen. For instance, you cannot add a…
148 array directly; the operands of a \c + operator should either both be matrices or both be arrays. H…
156 <tt>result = m.array() * n.array()</tt> takes two matrices \c m and \c n, converts them both to an …
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dcholesky_op_test.py138 matrices = np.random.rand(10, 5, 5)
140 matrices[i] = np.dot(matrices[i].T, matrices[i])
141 self._verifyCholesky(matrices)
144 matrices = np.random.rand(10, 5, 5) + 1j * np.random.rand(10, 5, 5)
146 matrices[i] = np.dot(matrices[i].T.conj(), matrices[i])
147 self._verifyCholesky(matrices)
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/
DDrawManager.java174 float[][] matrices = { scaleMatrix, rotateMatrix, modelMatrices.get(0), viewMatrix, in drawText() local
181 CanvasMatrixUtil.multiplyMatrices4x4(matrices))); in drawText()
209 float[][] matrices = {scale, initRot, modelTranslate, viewMatrix, projectionMatrix, in drawFingerPainting() local
212 CanvasMatrixUtil.createMatrixFrom4x4(CanvasMatrixUtil.multiplyMatrices4x4(matrices)); in drawFingerPainting()
260 float[][] matrices = {viewMatrix, projectionMatrix, in drawPointCloud() local
262 float[] vpv = CanvasMatrixUtil.multiplyMatrices4x4(matrices); in drawPointCloud()
310 float[][] matrices = {initRot, model, viewMatrix, projectionMatrix, in drawPlanes() local
314 CanvasMatrixUtil.multiplyMatrices4x4(matrices)); in drawPlanes()
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/
DDrawManager.java174 float[][] matrices = { scaleMatrix, rotateMatrix, modelMatrices.get(0), viewMatrix, in drawText() local
181 CanvasMatrixUtil.multiplyMatrices4x4(matrices))); in drawText()
209 float[][] matrices = {scale, initRot, modelTranslate, viewMatrix, projectionMatrix, in drawFingerPainting() local
212 CanvasMatrixUtil.createMatrixFrom4x4(CanvasMatrixUtil.multiplyMatrices4x4(matrices)); in drawFingerPainting()
260 float[][] matrices = {viewMatrix, projectionMatrix, in drawPointCloud() local
262 float[] vpv = CanvasMatrixUtil.multiplyMatrices4x4(matrices); in drawPointCloud()
310 float[][] matrices = {initRot, model, viewMatrix, projectionMatrix, in drawPlanes() local
314 CanvasMatrixUtil.multiplyMatrices4x4(matrices)); in drawPlanes()
/external/skia/samplecode/
DSampleShadowUtils.cpp180 SkTDArray<SkMatrix> matrices; in onDrawContent() local
181 matrices.push()->reset(); in onDrawContent()
182 SkMatrix* m = matrices.push(); in onDrawContent()
191 for (auto& m : matrices) { in onDrawContent()
225 for (auto& m : matrices) { in onDrawContent()

12345678