Home
last modified time | relevance | path

Searched refs:colwise (Results 1 – 25 of 50) sorted by relevance

12

/external/eigen/test/
Dvectorwiseop.cpp38 m2.colwise() += colvec; in vectorwiseop_array()
39 VERIFY_IS_APPROX(m2, m1.colwise() + colvec); in vectorwiseop_array()
42 VERIFY_RAISES_ASSERT(m2.colwise() += colvec.transpose()); in vectorwiseop_array()
43 VERIFY_RAISES_ASSERT(m1.colwise() + colvec.transpose()); in vectorwiseop_array()
56 m2.colwise() -= colvec; in vectorwiseop_array()
57 VERIFY_IS_APPROX(m2, m1.colwise() - colvec); in vectorwiseop_array()
60 VERIFY_RAISES_ASSERT(m2.colwise() -= colvec.transpose()); in vectorwiseop_array()
61 VERIFY_RAISES_ASSERT(m1.colwise() - colvec.transpose()); in vectorwiseop_array()
74 m2.colwise() *= colvec; in vectorwiseop_array()
75 VERIFY_IS_APPROX(m2, m1.colwise() * colvec); in vectorwiseop_array()
[all …]
Dgeo_homogeneous.cpp47 VERIFY_IS_APPROX(m0.colwise().homogeneous(), hm0); in homogeneous()
48 VERIFY_IS_APPROX(m0, hm0.colwise().hnormalized()); in homogeneous()
52 VERIFY_IS_APPROX(m0, hm0.colwise().hnormalized()); in homogeneous()
56 VERIFY_IS_APPROX(t1 * (m0.colwise().homogeneous().eval()), t1 * m0.colwise().homogeneous()); in homogeneous()
60 VERIFY_IS_APPROX(t2 * (m0.colwise().homogeneous().eval()), t2 * m0.colwise().homogeneous()); in homogeneous()
86 pts1 = pts.colwise().homogeneous(); in homogeneous()
87 VERIFY_IS_APPROX(aff * pts.colwise().homogeneous(), (aff * pts1).colwise().hnormalized()); in homogeneous()
88 VERIFY_IS_APPROX(caff * pts.colwise().homogeneous(), (caff * pts1).colwise().hnormalized()); in homogeneous()
89 VERIFY_IS_APPROX(proj * pts.colwise().homogeneous(), (proj * pts1)); in homogeneous()
91 VERIFY_IS_APPROX((aff * pts1).colwise().hnormalized(), aff * pts); in homogeneous()
[all …]
Dgeo_orthomethods.cpp52 mcross = mat3.colwise().cross(vec3); in orthomethods_3()
55 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(vec3)).diagonal().cwiseAbs().su… in orthomethods_3()
56 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(Vector3::Random())).diagonal().… in orthomethods_3()
58 …VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * mat3.colwise().cross(vec3)).cwiseAbs().sum(), Scalar… in orthomethods_3()
59 …VERIFY_IS_MUCH_SMALLER_THAN((vec3.adjoint() * Matrix3::Random().colwise().cross(vec3)).cwiseAbs().… in orthomethods_3()
109 mcross3N = mat3N.colwise().cross(vec3); in orthomethods()
Darray_for_matrix.cpp44 VERIFY_IS_MUCH_SMALLER_THAN(m1.colwise().sum().sum() - m1.sum(), m1.squaredNorm()); in array_for_matrix()
46 …VERIFY_IS_MUCH_SMALLER_THAN(m1.colwise().sum() + m2.colwise().sum() - (m1+m2).colwise().sum(), (m1… in array_for_matrix()
48 …VERIFY_IS_APPROX(m1.colwise().sum(), m1.colwise().redux(internal::scalar_sum_op<Scalar,Scalar>())); in array_for_matrix()
52 VERIFY_IS_APPROX(m3.colwise() += cv1, m1.colwise() + cv1); in array_for_matrix()
54 VERIFY_IS_APPROX(m3.colwise() -= cv1, m1.colwise() - cv1); in array_for_matrix()
61 VERIFY_IS_APPROX(m1.block(0,0,0,cols).colwise().sum(), RowVectorType::Zero(cols)); in array_for_matrix()
146 …VERIFY_IS_APPROX(((m1.array().abs()+1)>RealScalar(0.1)).matrix().colwise().count(), VectorOfIndice… in comparisons()
Dstable_norm.cpp102 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); in stable_norm()
103 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); in stable_norm()
104 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); in stable_norm()
Darray_reverse.cpp76 MatrixType m1_cr = m1.colwise().reverse(); in reverse()
117 m2.colwise().reverseInPlace(); in reverse()
118 VERIFY_IS_APPROX(m2,m1.colwise().reverse().eval()); in reverse()
120 m1.colwise().reverse()(r, c) = x; in reverse()
Dcuda_basic.cu75 MapType(out+i*stride+1*step, x1.rows()*3, x1.cols()) = in[i] * x1.colwise().replicate(3); in operator ()()
94 out[i*N+6] = x1.colwise().sum().maxCoeff(); in operator ()()
96 out[i*N+8] = x1.matrix().colwise().squaredNorm().sum(); in operator ()()
Darray_replicate.cpp56 vx1=m2+(m2.colwise().replicate(1)); in replicate()
69 VERIFY_IS_APPROX(vx1, v1.colwise().replicate(f2)); in replicate()
Darray.cpp69 VERIFY_IS_APPROX(m1.abs().colwise().sum().sum(), m1.abs().sum()); in array()
72 VERIFY_IS_MUCH_SMALLER_THAN(abs(m1.colwise().sum().sum() - m1.sum()), m1.abs().sum()); in array()
76 …VERIFY_IS_APPROX(m1.colwise().sum(), m1.colwise().redux(internal::scalar_sum_op<Scalar,Scalar>())); in array()
80 VERIFY_IS_APPROX(m3.colwise() += cv1, m1.colwise() + cv1); in array()
82 VERIFY_IS_APPROX(m3.colwise() -= cv1, m1.colwise() - cv1); in array()
203 …VERIFY_IS_APPROX(((m1.abs()+1)>RealScalar(0.1)).colwise().count(), ArrayOfIndices::Constant(cols,r… in comparisons()
/external/eigen/doc/snippets/
DVectorwiseOp_homogeneous.cpp5 cout << "M.colwise().homogeneous():" << endl << M.colwise().homogeneous() << endl << endl;
6 cout << "P * M.colwise().homogeneous():" << endl << P * M.colwise().homogeneous() << endl << endl;
7 ….colwise().homogeneous().hnormalized(): " << endl << (P * M.colwise().homogeneous()).colwise().hno…
DMatrixBase_colwise.cpp3 cout << "Here is the sum of each column:" << endl << m.colwise().sum() << endl;
5 << endl << m.cwiseAbs().colwise().maxCoeff() << endl;
DDirectionWise_hnormalized.cpp5 cout << "M.colwise().hnormalized():" << endl << M.colwise().hnormalized() << endl << endl;
7 cout << "(P*M).colwise().hnormalized():" << endl << (P*M).colwise().hnormalized() << endl << endl;
DPartialRedux_maxCoeff.cpp3 cout << "Here is the maximum of each column:" << endl << m.colwise().maxCoeff() << endl;
DPartialRedux_minCoeff.cpp3 cout << "Here is the minimum of each column:" << endl << m.colwise().minCoeff() << endl;
DPartialRedux_norm.cpp3 cout << "Here is the norm of each column:" << endl << m.colwise().norm() << endl;
DDirectionWise_replicate.cpp4 cout << m.colwise().replicate<3>() << endl;
DVectorwise_reverse.cpp4 cout << "Here is the colwise reverse of m:" << endl << m.colwise().reverse() << endl;
/external/eigen/doc/
DTutorialReductionsVisitorsBroadcasting.dox110 with \link DenseBase::colwise() colwise() \endlink or \link DenseBase::rowwise() rowwise() \endlink.
152 though the \link DenseBase::colwise() colwise() \endlink visitor, obtaining a new matrix whose
164 \mbox{m.colwise().sum()} = \begin{bmatrix} 4 & 3 & 13 & 11 \end{bmatrix}
189 We can interpret the instruction <tt>mat.colwise() += v</tt> in two equivalent ways. It adds the ve…
239 (m.colwise() - v).colwise().squaredNorm().minCoeff(&index);
244 …- <tt>m.colwise() - v</tt> is a broadcasting operation, subtracting <tt>v</tt> from each column in…
246 \mbox{m.colwise() - v} =
253 …- <tt>(m.colwise() - v).colwise().squaredNorm()</tt> is a partial reduction, computing the squared…
255 \mbox{(m.colwise() - v).colwise().squaredNorm()} =
DFunctionsTakingEigenTypes.dox99 const RowVectorXf x_mean = x.colwise().sum() / num_observations;
100 const RowVectorXf y_mean = y.colwise().sum() / num_observations;
119 const RowVectorXf x_mean = x.colwise().sum() / num_observations;
120 const RowVectorXf y_mean = y.colwise().sum() / num_observations;
142 const RowVectorXf x_mean = x.colwise().sum() / num_observations;
143 const RowVectorXf y_mean = y.colwise().sum() / num_observations;
164 const RowVectorType x_mean = x.colwise().sum() / num_observations;
165 const RowVectorType y_mean = y.colwise().sum() / num_observations;
196 const RowVectorType x_mean = x.colwise().sum() / num_observations;
197 const RowVectorType y_mean = y.colwise().sum() / num_observations;
DAsciiQuickReference.txt96 R.transpose().colwise().reverse() // rot90(R) // Read-write
98 R.colwise().reverse() // flipud(R)
155 R.colwise().sum() // sum(R)
158 R.colwise().prod() // prod(R)
162 R.colwise().all() // all(R)
165 R.colwise().any() // any(R)
/external/eigen/doc/examples/
DTutorial_ReductionsVisitorsBroadcasting_reductions_operatornorm.cpp13 cout << "1-norm(m) = " << m.cwiseAbs().colwise().sum().maxCoeff() in main()
14 << " == " << m.colwise().lpNorm<1>().maxCoeff() << endl; in main()
DTutorial_ReductionsVisitorsBroadcasting_broadcast_1nn.cpp20 (m.colwise() - v).colwise().squaredNorm().minCoeff(&index); in main()
DTutorial_ReductionsVisitorsBroadcasting_colwise.cpp12 << mat.colwise().maxCoeff() << std::endl; in main()
DTutorial_ReductionsVisitorsBroadcasting_broadcast_simple.cpp17 mat.colwise() += v; in main()
/external/eigen/Eigen/src/Geometry/
DUmeyama.h122 const RowMajorMatrixType src_demean = src.colwise() - src_mean;
123 const RowMajorMatrixType dst_demean = dst.colwise() - dst_mean;

12