Home
last modified time | relevance | path

Searched refs:matrix2 (Results 1 – 25 of 36) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dmatrix_square_root_op_test.py52 def _makeBatch(self, matrix1, matrix2): argument
55 np.expand_dims(matrix2, 0)])
59 def _testMatrices(self, matrix1, matrix2): argument
62 self._verifySquareRootReal(matrix2)
63 self._verifySquareRootReal(self._makeBatch(matrix1, matrix2))
65 matrix2 = matrix2.astype(np.complex64)
67 matrix2 += 1j * matrix2
69 self._verifySquareRootComplex(matrix2)
70 self._verifySquareRootComplex(self._makeBatch(matrix1, matrix2))
74 matrix2 = np.array([[3., -1.], [-1., 3.]])
[all …]
Dmatrix_inverse_op_test.py61 def _makeBatch(self, matrix1, matrix2): argument
64 np.expand_dims(matrix2, 0)])
71 matrix2 = np.array([[1., 3.], [3., 5.]])
73 self._verifyInverseReal(matrix2)
75 self._verifyInverseReal(self._makeBatch(matrix1, matrix2))
78 matrix2 = matrix2.astype(np.complex64)
79 matrix2 += 1j * matrix2
81 self._verifyInverseComplex(matrix2)
83 self._verifyInverseComplex(self._makeBatch(matrix1, matrix2))
88 matrix2 = np.array([[3., -1.], [-1., 3.]])
[all …]
Dmatrix_exponential_op_test.py76 def _makeBatch(self, matrix1, matrix2): argument
79 np.expand_dims(matrix2, 0)])
86 matrix2 = np.array([[1., 3.], [3., 5.]])
88 self._verifyExponentialReal(matrix2)
90 self._verifyExponentialReal(self._makeBatch(matrix1, matrix2))
95 matrix2 = np.array([[1., 3.], [3., 5.]])
98 matrix2 = matrix2.astype(np.complex64)
99 matrix2 += 1j * matrix2
101 self._verifyExponentialComplex(matrix2)
103 self._verifyExponentialComplex(self._makeBatch(matrix1, matrix2))
[all …]
Dmatrix_logarithm_op_test.py54 def _makeBatch(self, matrix1, matrix2): argument
57 np.expand_dims(matrix2, 0)])
65 matrix2 = np.array([[1., 3.], [3., 5.]])
68 matrix2 = matrix2.astype(np.complex64)
69 matrix2 += 1j * matrix2
71 self._verifyLogarithmComplex(matrix2)
73 self._verifyLogarithmComplex(self._makeBatch(matrix1, matrix2))
79 matrix2 = np.array([[3., -1.], [-1., 3.]])
82 matrix2 = matrix2.astype(np.complex64)
83 matrix2 += 1j * matrix2
[all …]
Dcholesky_op_test.py188 matrix2 = stateless_random_ops.stateless_random_normal(matrix_shape, seed)
190 matrix2 = math_ops.matmul(matrix2, matrix2, adjoint_a=True)
192 c2 = linalg_ops.cholesky(matrix2)
Dself_adjoint_eig_op_test.py61 matrix2 = random_ops.random_normal([5, 5], seed=42)
64 e2, v2 = linalg_ops.self_adjoint_eig(matrix2)
68 e2 = linalg_ops.self_adjoint_eigvals(matrix2)
Deig_op_test.py61 matrix2 = random_ops.random_normal([5, 5], seed=42)
64 e2, v2 = linalg_ops.eig(matrix2)
68 e2 = linalg_ops.eigvals(matrix2)
Dqr_op_test.py71 matrix2 = stateless_random_ops.stateless_random_normal(
73 self.assertAllEqual(matrix1, matrix2)
75 q2, r2 = linalg_ops.qr(matrix2, full_matrices=full_matrices_)
Dlu_op_test.py228 matrix2 = stateless_random_ops.stateless_random_normal(
230 self.assertAllEqual(matrix1, matrix2)
232 lu2, p2 = linalg_ops.lu(matrix2)
Dsvd_op_test.py71 matrix2 = stateless_random_ops.stateless_random_normal(shape, seed)
72 self.assertAllEqual(matrix1, matrix2)
77 matrix2, compute_uv=compute_uv_, full_matrices=full_matrices_)
83 matrix2, compute_uv=compute_uv_, full_matrices=full_matrices_)
Ddeterminant_op_test.py159 matrix2 = random_ops.random_normal([5, 5], seed=42)
161 det2 = linalg_ops.matrix_determinant(matrix2)
Dmatrix_triangular_solve_op_test.py148 matrix2 = np.array([[[1., 0.], [3., 4.]], [[2., 0.], [1., 6.3]]])
152 self._verifySolveAllWaysReal(matrix2, rhs)
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowMatrixTest.java88 final Matrix matrix2 = new Matrix(); in set_shouldOverrideValues() local
89 matrix2.setScale(3, 4); in set_shouldOverrideValues()
90 matrix2.set(matrix1); in set_shouldOverrideValues()
92 final ShadowMatrix shadow = shadowOf(matrix2); in set_shouldOverrideValues()
101 final Matrix matrix2 = new Matrix(); in set_whenNull_shouldReset() local
102 matrix2.set(matrix1); in set_whenNull_shouldReset()
103 matrix2.set(null); in set_whenNull_shouldReset()
105 final ShadowMatrix shadow = shadowOf(matrix2); in set_whenNull_shouldReset()
184 final Matrix matrix2 = new Matrix(); in testSet() local
185 matrix2.set(matrix1); in testSet()
[all …]
DShadowOpenGLMatrixTest.java342 float[] matrix2 = new float[]{ in testMultiplyMM() local
356 Matrix.multiplyMM(output, 0, matrix1, 0, matrix2, 0); in testMultiplyMM()
/external/tensorflow/tensorflow/python/kernel_tests/linalg/
Dlinear_operator_adjoint_test.py123 matrix2 = np.random.randn(4, 4)
125 full_matrix2 = linalg.LinearOperatorFullMatrix(matrix2)
128 np.matmul(matrix1, matrix2.T),
133 np.matmul(matrix1.T, matrix2),
138 np.matmul(matrix1.T, matrix2.T),
145 matrix2 = np.random.randn(4, 4) + 1j * np.random.randn(4, 4)
147 full_matrix2 = linalg.LinearOperatorFullMatrix(matrix2)
150 np.matmul(matrix1, matrix2.conj().T),
155 np.matmul(matrix1.conj().T, matrix2),
160 np.matmul(matrix1.conj().T, matrix2.conj().T),
[all …]
Dlinear_operator_test.py302 matrix2 = array_ops.placeholder_with_default(
305 matrix2,
332 matrix2 = array_ops.placeholder_with_default(
338 operator2 = LinearOperatorMatmulSolve(matrix2, is_square=False)
/external/tensorflow/tensorflow/compiler/tests/
Dmatrix_inverse_op_test.py55 def _makeBatch(self, matrix1, matrix2): argument
58 np.expand_dims(matrix2, 0)])
65 matrix2 = np.array([[1., 3.], [3., 5.]])
67 self._verifyInverseReal(matrix2)
69 self._verifyInverseReal(self._makeBatch(matrix1, matrix2))
74 matrix2 = np.array([[3., -1.], [-1., 3.]])
76 self._verifyInverseReal(matrix2)
78 self._verifyInverseReal(self._makeBatch(matrix1, matrix2))
/external/eigen/demos/mix_eigen_and_c/
Dexample.c15 struct C_MatrixXd *matrix1, *matrix2, *result; in demo_MatrixXd() local
25 matrix2 = MatrixXd_new(3, 3); in demo_MatrixXd()
26 MatrixXd_multiply(matrix1, matrix1, matrix2); in demo_MatrixXd()
28 MatrixXd_print(matrix2); in demo_MatrixXd()
31 MatrixXd_delete(matrix2); in demo_MatrixXd()
/external/skia/docs/examples/
DMatrix_preConcat.cpp7 SkMatrix matrix, matrix2; in draw() local
11 matrix2.setPolyToPoly(perspect, bitmapBounds, 4); in draw()
12 matrix.preConcat(matrix2); in draw()
DMatrix_setConcat.cpp7 SkMatrix matrix, matrix2; in draw() local
11 matrix2.setPolyToPoly(perspect, bitmapBounds, 4); in draw()
12 matrix.setConcat(matrix, matrix2); in draw()
DMatrix_Concat.cpp7 SkMatrix matrix, matrix2; in draw() local
11 matrix2.setPolyToPoly(perspect, bitmapBounds, 4); in draw()
12 SkMatrix concat = SkMatrix::Concat(matrix, matrix2); in draw()
/external/libchrome/ui/gfx/geometry/
Dmatrix3_unittest.cc168 Matrix3F matrix2 = Matrix3F::Zeros(); in TEST() local
169 matrix2.set(-1, -2, -3, -4, -5, -6, -7, -8, -9); in TEST()
170 EXPECT_EQ(matrix1 + matrix2, Matrix3F::Zeros()); in TEST()
172 EXPECT_EQ(Matrix3F::Zeros() - matrix1, matrix2); in TEST()
176 EXPECT_EQ(matrix1 - matrix2, result); in TEST()
178 EXPECT_EQ(matrix2 - matrix1, result); in TEST()
/external/eigen/doc/
DTopicLazyEvaluation.dox27 \code matrix1 = matrix2 + matrix3; \endcode
31 \code matrix1 = (matrix2 + matrix3).eval(); \endcode
35 \code matrix1 = -matrix2 + matrix3 + 5 * matrix4; \endcode
47 \code matrix1.noalias() = matrix2 * matrix2; \endcode
49 Here, since we know that matrix2 is not the same matrix as matrix1, we know that lazy evaluation is…
53 \code matrix1 = matrix2 + matrix3 * matrix4; \endcode
59 \code matrix1 = matrix2 * (matrix3 + matrix4); \endcode
/external/pdfium/core/fxge/skia/
Dfx_skia_device_embeddertest.cpp57 CFX_Matrix matrix2; in CommonTest() local
58 matrix2.Translate(1, 0); in CommonTest()
88 driver->DrawPath(&path2, &matrix2, &graphState, 0xFF112233, 0, in CommonTest()
91 driver->DrawDeviceText(SK_ARRAY_COUNT(charPos), charPos, &font, matrix2, in CommonTest()
/external/llvm-project/flang/test/Semantics/
Dfinal02.f9056 type(t2) :: matrix2(2,2) local

12