Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/eigen/eigen.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#include <Eigen/Dense>
#include <pico_tree/eigen_adaptor.hpp>
#include <pico_tree/kd_tree.hpp>
#include <point.hpp>
#include <scoped_timer.hpp>

#include "eigen_adaptor.hpp"

using Index = int;
using Scalar = double;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include <Eigen/Dense>

namespace pico_tree {

namespace internal {
Expand All @@ -26,9 +24,8 @@ class EigenAdaptorBase<Index_, EigenMatrix, false> {
}

//! Returns dimension \p dim of point \p point.
template <typename Derived>
inline Scalar operator()(
Eigen::MatrixBase<Derived> const& point, Index const dim) const {
template <typename Point>
inline Scalar operator()(Point const& point, Index const dim) const {
return point(dim);
}

Expand Down Expand Up @@ -59,9 +56,8 @@ class EigenAdaptorBase<Index_, EigenMatrix, true> {
}

//! Returns dimension \p dim of point \p point.
template <typename Derived>
inline Scalar operator()(
Eigen::MatrixBase<Derived> const& point, Index const dim) const {
template <typename Point>
inline Scalar operator()(Point const& point, Index const dim) const {
return point(dim);
}

Expand Down