DenseBasePlugin.hpp
Go to the documentation of this file.
00001 Scalar numberOfFinites() const
00002 {
00003   if (SizeAtCompileTime==0 || (SizeAtCompileTime==Dynamic && size()==0)) return Scalar(0);
00004   return Scalar((derived().array() == derived().array()).count());
00005 }
00006 
00007 Scalar sumOfFinites() const
00008 {
00009   if (SizeAtCompileTime==0 || (SizeAtCompileTime==Dynamic && size()==0)) return Scalar(0);
00010   return Scalar(this->redux(Eigen::internal::scalar_sum_of_finites_op<Scalar>()));
00011 }
00012 
00013 Scalar meanOfFinites() const
00014 {
00015   return Scalar(this->redux(Eigen::internal::scalar_sum_of_finites_op<Scalar>())) / this->numberOfFinites();
00016 }
00017 
00018 Scalar minCoeffOfFinites() const
00019 {
00020   return Scalar(this->redux(Eigen::internal::scalar_min_of_finites_op<Scalar>()));
00021 }
00022 
00023 Scalar maxCoeffOfFinites() const
00024 {
00025   return Scalar(this->redux(Eigen::internal::scalar_max_of_finites_op<Scalar>()));
00026 }


grid_map_core
Author(s): Péter Fankhauser
autogenerated on Mon Oct 9 2017 03:09:16