libigl v2.5.0
Loading...
Searching...
No Matches
accumarray.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) 2018 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 ACCUMARRY_H
9#define ACCUMARRY_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12namespace igl
13{
19 template <
20 typename DerivedS,
21 typename DerivedV,
22 typename DerivedA
23 >
25 const Eigen::MatrixBase<DerivedS> & S,
26 const Eigen::MatrixBase<DerivedV> & V,
27 Eigen::PlainObjectBase<DerivedA> & A);
33 template <
34 typename DerivedS,
35 typename DerivedA
36 >
38 const Eigen::MatrixBase<DerivedS> & S,
39 const typename DerivedA::Scalar V,
40 Eigen::PlainObjectBase<DerivedA> & A);
41}
42
43#ifndef IGL_STATIC_LIBRARY
44# include "accumarray.cpp"
45#endif
46
47#endif
Definition AABB.h:17
void accumarray(const Eigen::MatrixBase< DerivedS > &S, const Eigen::MatrixBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedA > &A)
Accumulate values in V using subscripts in S.