Home
last modified time | relevance | path

Searched refs:transpose (Results 1 – 25 of 253) sorted by relevance

1234567891011

/external/guava/guava-tests/test/com/google/common/collect/
DTransposedTableTest.java32 Table<String, Integer, Character> table = Tables.transpose(original); in create()
40 assertSame(original, Tables.transpose(Tables.transpose(original))); in testTransposeTransposed()
45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose() local
47 assertEquals((Character) 'a', transpose.get("foo", 1)); in testPutOriginalModifiesTranspose()
52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal() local
53 transpose.put("foo", 1, 'a'); in testPutTransposeModifiesOriginal()
59 Table<String, Integer, Character> transpose = Tables.transpose(original); in testTransposedViews() local
61 assertSame(original.columnKeySet(), transpose.rowKeySet()); in testTransposedViews()
62 assertSame(original.rowKeySet(), transpose.columnKeySet()); in testTransposedViews()
63 assertSame(original.columnMap(), transpose.rowMap()); in testTransposedViews()
[all …]
/external/eigen/test/eigen2/
Deigen2_sparse_product.cpp36 VERIFY_IS_APPROX(m4=m2.transpose()*m3, refMat4=refMat2.transpose()*refMat3); in sparse_product()
37 …VERIFY_IS_APPROX(m4=m2.transpose()*m3.transpose(), refMat4=refMat2.transpose()*refMat3.transpose()… in sparse_product()
38 VERIFY_IS_APPROX(m4=m2*m3.transpose(), refMat4=refMat2*refMat3.transpose()); in sparse_product()
42 VERIFY_IS_APPROX(dm4=m2*refMat3.transpose(), refMat4=refMat2*refMat3.transpose()); in sparse_product()
43 VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3, refMat4=refMat2.transpose()*refMat3); in sparse_product()
44 …VERIFY_IS_APPROX(dm4=m2.transpose()*refMat3.transpose(), refMat4=refMat2.transpose()*refMat3.trans… in sparse_product()
48 VERIFY_IS_APPROX(dm4=refMat2*m3.transpose(), refMat4=refMat2*refMat3.transpose()); in sparse_product()
49 VERIFY_IS_APPROX(dm4=refMat2.transpose()*m3, refMat4=refMat2.transpose()*refMat3); in sparse_product()
50 …VERIFY_IS_APPROX(dm4=refMat2.transpose()*m3.transpose(), refMat4=refMat2.transpose()*refMat3.trans… in sparse_product()
66 VERIFY_IS_APPROX(m3=m2.transpose()*d1, refM3=refM2.transpose()*d1); in sparse_product()
[all …]
Dproduct.h66 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); in product()
68 m3 *= m1.transpose() * m2; in product()
69 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
70 VERIFY_IS_APPROX(m3, m1.lazy() * (m1.transpose()*m2)); in product()
85 VERIFY_IS_APPROX(v1.transpose(), v1.transpose() * identity); in product()
96 VERIFY(areNotApprox(m1.transpose()*m2,m2.transpose()*m1)); in product()
101 res += (m1 * m2.transpose()).lazy(); in product()
102 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
105 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
108 vcres += (m1.transpose() * v1).lazy(); in product()
[all …]
Deigen2_triangular.cpp45 VERIFY(m2up.transpose().isLowerTriangular()); in triangular()
60 m1.template part<Eigen::UpperTriangular>() = (m2.transpose() * m2).lazy(); in triangular()
61 m3 = m2.transpose() * m2; in triangular()
62 VERIFY_IS_APPROX(m3.template part<Eigen::LowerTriangular>().transpose(), m1); in triangular()
66 m1.template part<Eigen::LowerTriangular>() = (m2.transpose() * m2).lazy(); in triangular()
79 VERIFY(m3.transpose().template marked<Eigen::UpperTriangular>() in triangular()
80 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
83 m3.transpose().template marked<Eigen::UpperTriangular>().solveTriangularInPlace(trm4); in triangular()
88 VERIFY(m3.transpose().template marked<Eigen::LowerTriangular>() in triangular()
89 .solveTriangular(m3.transpose()).cwise().abs().isIdentity(test_precision<RealScalar>())); in triangular()
[all …]
Deigen2_bug_132.cpp17 VectorXd y = A.transpose() * (b-c); // bug 132: infinite recursion in coeffRef in test_eigen2_bug_132()
18 VectorXd z = (b-c).transpose() * A; // bug 132: infinite recursion in coeffRef in test_eigen2_bug_132()
24 VectorXd z = (b-c).transpose() * A.transpose(); in test_eigen2_bug_132()
/external/eigen/test/
Dsparse_product.cpp18 …VERIFY_IS_APPROX(m4=m2.col(c)*refMat2.col(c1).transpose(), refMat4=refMat2.col(c)*refMat2.col(c1). in run()
19 …VERIFY_IS_APPROX(m4=refMat2.col(c1)*m2.col(c).transpose(), refMat4=refMat2.col(c1)*refMat2.col(c). in run()
27 …FY_IS_APPROX(m4=m2.row(r).transpose()*refMat2.col(c1).transpose(), refMat4=refMat2.row(r).transpos… in run()
84 VERIFY_IS_APPROX(m4=m2t.transpose()*m3, refMat4=refMat2t.transpose()*refMat3); in sparse_product()
85 …VERIFY_IS_APPROX(m4=m2t.transpose()*m3t.transpose(), refMat4=refMat2t.transpose()*refMat3t.transpo… in sparse_product()
86 VERIFY_IS_APPROX(m4=m2*m3t.transpose(), refMat4=refMat2*refMat3t.transpose()); in sparse_product()
93 VERIFY_IS_APPROX(m4=(m2t.transpose()*m3).pruned(0), refMat4=refMat2t.transpose()*refMat3); in sparse_product()
94 …VERIFY_IS_APPROX(m4=(m2t.transpose()*m3t.transpose()).pruned(0), refMat4=refMat2t.transpose()*refM… in sparse_product()
95 VERIFY_IS_APPROX(m4=(m2*m3t.transpose()).pruned(0), refMat4=refMat2*refMat3t.transpose()); in sparse_product()
103 VERIFY_IS_APPROX(dm4=m2*refMat3t.transpose(), refMat4=refMat2*refMat3t.transpose()); in sparse_product()
[all …]
Dproduct.h62 VERIFY_IS_APPROX((m1*m1.transpose())*m2, m1*(m1.transpose()*m2)); in product()
64 m3 *= m1.transpose() * m2; in product()
65 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
66 VERIFY_IS_APPROX(m3, m1 * (m1.transpose()*m2)); in product()
78 VERIFY_IS_APPROX(v1.transpose(), v1.transpose() * identity); in product()
89 VERIFY(areNotApprox(m1.transpose()*m2,m2.transpose()*m1)); in product()
94 res.noalias() += m1 * m2.transpose(); in product()
95 VERIFY_IS_APPROX(res, square + m1 * m2.transpose()); in product()
98 VERIFY(areNotApprox(res,square + m2 * m1.transpose())); in product()
101 vcres.noalias() += m1.transpose() * v1; in product()
[all …]
Dvectorwiseop.cpp41 VERIFY_RAISES_ASSERT(m2.colwise() += colvec.transpose()); in vectorwiseop_array()
42 VERIFY_RAISES_ASSERT(m1.colwise() + colvec.transpose()); in vectorwiseop_array()
49 VERIFY_RAISES_ASSERT(m2.rowwise() += rowvec.transpose()); in vectorwiseop_array()
50 VERIFY_RAISES_ASSERT(m1.rowwise() + rowvec.transpose()); in vectorwiseop_array()
59 VERIFY_RAISES_ASSERT(m2.colwise() -= colvec.transpose()); in vectorwiseop_array()
60 VERIFY_RAISES_ASSERT(m1.colwise() - colvec.transpose()); in vectorwiseop_array()
67 VERIFY_RAISES_ASSERT(m2.rowwise() -= rowvec.transpose()); in vectorwiseop_array()
68 VERIFY_RAISES_ASSERT(m1.rowwise() - rowvec.transpose()); in vectorwiseop_array()
77 VERIFY_RAISES_ASSERT(m2.colwise() *= colvec.transpose()); in vectorwiseop_array()
78 VERIFY_RAISES_ASSERT(m1.colwise() * colvec.transpose()); in vectorwiseop_array()
[all …]
Dadjoint.cpp41 VERIFY_IS_APPROX(m1.transpose().conjugate().adjoint(), m1); in adjoint()
42 VERIFY_IS_APPROX(m1.adjoint().conjugate().transpose(), m1); in adjoint()
89 VERIFY_IS_APPROX(m3,m1.transpose()); in adjoint()
123 VERIFY_RAISES_ASSERT(a = a.transpose()); in test_adjoint()
124 VERIFY_RAISES_ASSERT(a = a.transpose() + b); in test_adjoint()
125 VERIFY_RAISES_ASSERT(a = b + a.transpose()); in test_adjoint()
126 VERIFY_RAISES_ASSERT(a = a.conjugate().transpose()); in test_adjoint()
132 a.transpose() = a.transpose(); in test_adjoint()
133 a.transpose() += a.transpose(); in test_adjoint()
134 a.transpose() += a.transpose() + b; in test_adjoint()
[all …]
Dnesting_ops.cpp29 VERIFY_IS_APPROX( (m.transpose() * m).diagonal().sum(), (m.transpose() * m).diagonal().sum() ); in run_nesting_ops()
30 …VERIFY_IS_APPROX( (m.transpose() * m).diagonal().array().abs().sum(), (m.transpose() * m).diagonal… in run_nesting_ops()
32 …VERIFY_IS_APPROX( (m.transpose() * m).array().abs().sum(), (m.transpose() * m).array().abs().sum()… in run_nesting_ops()
Dproduct_trsolve.cpp23 (TRI).transpose().template solveInPlace<OnTheRight>(XB.transpose()); \
24 VERIFY_IS_APPROX((XB).transpose() * (TRI).transpose().toDenseMatrix(), ref.transpose()); \
26 (XB).transpose() = (TRI).transpose().template solve<OnTheRight>(XB.transpose()); \
27 VERIFY_IS_APPROX((XB).transpose() * (TRI).transpose().toDenseMatrix(), ref.transpose()); \
Dgeo_homogeneous.cpp42 hm0 << m0, ones.transpose(); in homogeneous()
58 VERIFY_IS_APPROX((v0.transpose().rowwise().homogeneous().eval()) * t2, in homogeneous()
59 v0.transpose().rowwise().homogeneous() * t2); in homogeneous()
60 m0.transpose().rowwise().homogeneous().eval(); in homogeneous()
61 VERIFY_IS_APPROX((m0.transpose().rowwise().homogeneous().eval()) * t2, in homogeneous()
62 m0.transpose().rowwise().homogeneous() * t2); in homogeneous()
65 VERIFY_IS_APPROX((v0.transpose().rowwise().homogeneous().eval()) * t3, in homogeneous()
66 v0.transpose().rowwise().homogeneous() * t3); in homogeneous()
67 VERIFY_IS_APPROX((m0.transpose().rowwise().homogeneous().eval()) * t3, in homogeneous()
68 m0.transpose().rowwise().homogeneous() * t3); in homogeneous()
Dproduct_trmv.cpp50 …VERIFY((m3.transpose() * v1).isApprox(m1.transpose().template triangularView<Eigen::Lower>() * v1,… in trmv()
52 …VERIFY((m3.transpose() * v1).isApprox(m1.transpose().template triangularView<Eigen::Upper>() * v1,… in trmv()
54 …VERIFY((m3.transpose() * v1).isApprox(m1.transpose().template triangularView<Eigen::UnitLower>() *… in trmv()
56 …VERIFY((m3.transpose() * v1).isApprox(m1.transpose().template triangularView<Eigen::UnitUpper>() *… in trmv()
67 …VERIFY((v1.transpose() * m3).isApprox(v1.transpose() * m1.template triangularView<Eigen::Lower>(),… in trmv()
Dblock.cpp41 VERIFY_IS_EQUAL(m1.col(c1).transpose(), m1.transpose().row(c1)); in block()
111 …_IS_EQUAL( (m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , (m1.row(r1).segment(c1,c2-c1+1))… in block()
112 …VERIFY_IS_EQUAL( (m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , (m1.row(r1).segment(c1,c2-… in block()
118 …AL( ((m1+m2).block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0)) , ((m1+m2).row(r1).segment(c1,c2-c1+… in block()
119 …VERIFY_IS_EQUAL( ((m1+m2).transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0)) , ((m1+m2).row(r1).segm… in block()
129 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).row(0).transpose(); in block()
139 dm = m1.block(r1,c1,r2-r1+1,c2-c1+1).transpose().col(0); in block()
144 dm = m1.row(r1).segment(c1,c2-c1+1).transpose(); in block()
145 dv = m1.transpose().block(c1,r1,c2-c1+1,r2-r1+1).col(0); in block()
198 compare_using_data_and_stride(m1.transpose().block(c1, r1, c2-c1+1, r2-r1+1)); in data_and_stride()
[all …]
Dproduct_small.cpp21 matAstatic.cwiseProduct(matBstatic.transpose()).sum() ); in product1x1()
28 matAdynamic.cwiseProduct(matBdynamic.transpose()).sum() ); in product1x1()
47 VERIFY_IS_APPROX( (v * v.transpose()) * v, (v * v.transpose()).eval() * v); in test_product_small()
Dtriangular.cpp39 VERIFY(m2up.transpose().isLowerTriangular()); in triangular_square()
54 m1.template triangularView<Upper>() = m2.transpose() + m2; in triangular_square()
55 m3 = m2.transpose() + m2; in triangular_square()
56 VERIFY_IS_APPROX(m3.template triangularView<Lower>().transpose().toDenseMatrix(), m1); in triangular_square()
60 m1.template triangularView<Lower>() = m2.transpose() + m2; in triangular_square()
75 …VERIFY(v2.isApprox(m3.transpose() * (m1.transpose().template triangularView<Upper>().solve(v2)), l… in triangular_square()
85 …VERIFY(m2.isApprox(m3.transpose() * (m1.transpose().template triangularView<Upper>().solve(m2)), l… in triangular_square()
93 m1.transpose().template triangularView<Eigen::Upper>().solveInPlace(trm4); in triangular_square()
99 m3.transpose().template triangularView<Eigen::Lower>().solveInPlace(trm4); in triangular_square()
146 VERIFY(m2up.transpose().isLowerTriangular()); in triangular_rect()
Dproduct_extra.cpp64 VERIFY_IS_APPROX((s1 * vc2.transpose()) * (-m1.adjoint() * s2), in product_extra()
65 (s1 * vc2.transpose()).eval() * (-m1.adjoint()*s2).eval()); in product_extra()
66 VERIFY_IS_APPROX((s1 * vc2.adjoint()) * (-m1.transpose() * s2), in product_extra()
67 (s1 * vc2.adjoint()).eval() * (-m1.transpose()*s2).eval()); in product_extra()
71 VERIFY_IS_APPROX((-m1.adjoint() * s2) * (s1 * v1.transpose()), in product_extra()
72 (-m1.adjoint()*s2).eval() * (s1 * v1.transpose()).eval()); in product_extra()
73 VERIFY_IS_APPROX((-m1.transpose() * s2) * (s1 * v1.adjoint()), in product_extra()
74 (-m1.transpose()*s2).eval() * (s1 * v1.adjoint()).eval()); in product_extra()
111 VERIFY_IS_APPROX(dNdxy.transpose()*dNdxy*det*wt, det*wt*dNdxy.transpose()*dNdxy); in mat_mat_scalar_scalar_product()
/external/eigen/unsupported/doc/examples/
DPolynomialSolver1.cpp13 cout << "Roots: " << roots.transpose() << endl; in main()
18 cout << "Complex roots: " << psolve.roots().transpose() << endl; in main()
23 cout << "Real roots: " << mapRR.transpose() << endl; in main()
31 cout << "Hard case polynomial defined by floats: " << hardCase_polynomial.transpose() << endl; in main()
33 cout << "Complex roots: " << psolvef.roots().transpose() << endl; in main()
36 …cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl <… in main()
41 cout << "Complex roots: " << psolve6d.roots().transpose() << endl; in main()
47 …cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl <… in main()
/external/eigen/doc/snippets/
DHouseholderSequence_HouseholderSequence.cpp6 cout << "The first Householder vector is: v_0 = " << v0.transpose() << endl;
8 cout << "The second Householder vector is: v_1 = " << v1.transpose() << endl;
10 cout << "The third Householder vector is: v_2 = " << v2.transpose() << endl;
13 cout << "The Householder coefficients are: h = " << h.transpose() << endl;
DMatrixBase_transpose.cpp3 cout << "Here is the transpose of m:" << endl << m.transpose() << endl;
5 << m.transpose()(1,0) << endl;
7 m.transpose()(1,0) = 0;
DSelfAdjointEigenSolver_SelfAdjointEigenSolver.cpp3 Matrix4f A = X + X.transpose();
5 cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
7 cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl;
DSelfAdjointEigenSolver_compute_MatrixType.cpp3 MatrixXf A = X + X.transpose();
5 cout << "The eigenvalues of A are: " << es.eigenvalues().transpose() << endl;
7 cout << "The eigenvalues of A+I are: " << es.eigenvalues().transpose() << endl;
/external/eigen/Eigen/src/Core/products/
DParallelizer.h86 void parallelize_gemm(const Functor& func, Index rows, Index cols, bool transpose) in parallelize_gemm() argument
95 EIGEN_UNUSED_VARIABLE(transpose); in parallelize_gemm()
110 Index size = transpose ? cols : rows; in parallelize_gemm()
125 if(transpose) in parallelize_gemm()
145 if(transpose) in parallelize_gemm()
/external/eigen/doc/examples/
Dtut_arithmetic_matrix_mul.cpp13 std::cout << "Here is u^T*mat:\n" << u.transpose()*mat << std::endl; in main()
14 std::cout << "Here is u^T*v:\n" << u.transpose()*v << std::endl; in main()
15 std::cout << "Here is u*v^T:\n" << u*v.transpose() << std::endl; in main()
/external/eigen/lapack/
Dlu.cpp75 lu.triangularView<Upper>().transpose().solveInPlace(B);
76 lu.triangularView<UnitLower>().transpose().solveInPlace(B);
77 B = PivotsType(ipiv,*n).transpose() * B;
83 B = PivotsType(ipiv,*n).transpose() * B;

1234567891011