MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / visit

Method visit

include/rabitqlib/third/Eigen/src/Core/Visitor.h:116–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114template<typename Derived>
115template<typename Visitor>
116EIGEN_DEVICE_FUNC
117void DenseBase<Derived>::visit(Visitor& visitor) const
118{
119 if(size()==0)
120 return;
121
122 typedef typename internal::visitor_evaluator<Derived> ThisEvaluator;
123 ThisEvaluator thisEval(derived());
124
125 enum {
126 unroll = SizeAtCompileTime != Dynamic
127 && SizeAtCompileTime * int(ThisEvaluator::CoeffReadCost) + (SizeAtCompileTime-1) * int(internal::functor_traits<Visitor>::Cost) <= EIGEN_UNROLLING_LIMIT
128 };
129 return internal::visitor_impl<Visitor, ThisEvaluator, unroll ? int(SizeAtCompileTime) : Dynamic>::run(thisEval, visitor);
130}
131
132namespace internal {
133

Callers 2

minCoeffMethod · 0.95
maxCoeffMethod · 0.95

Calls 2

runFunction · 0.85
sizeFunction · 0.50

Tested by

no test coverage detected