libigl v2.5.0
Loading...
Searching...
No Matches
histc.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_HISTC_H
9#define IGL_HISTC_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13
14namespace igl
15{
27 template <typename DerivedX, typename DerivedE, typename DerivedN, typename DerivedB>
29 const Eigen::MatrixBase<DerivedX > & X,
30 const Eigen::MatrixBase<DerivedE > & E,
31 Eigen::PlainObjectBase<DerivedN > & N,
32 Eigen::PlainObjectBase<DerivedB > & B);
35 template <typename DerivedX, typename DerivedE, typename DerivedB>
37 const Eigen::MatrixBase<DerivedX > & X,
38 const Eigen::MatrixBase<DerivedE > & E,
39 Eigen::PlainObjectBase<DerivedB > & B);
42 template <typename DerivedE>
44 const typename DerivedE::Scalar & x,
45 const Eigen::MatrixBase<DerivedE > & E,
46 typename DerivedE::Index & b);
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "histc.cpp"
51#endif
52
53#endif
54
55
56
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void histc(const Eigen::MatrixBase< DerivedX > &X, const Eigen::MatrixBase< DerivedE > &E, Eigen::PlainObjectBase< DerivedN > &N, Eigen::PlainObjectBase< DerivedB > &B)
Count occurrences of values in X between consecutive entries in E.