libigl v2.5.0
Loading...
Searching...
No Matches
unique.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_UNIQUE_H
9#define IGL_UNIQUE_H
10#include "igl_inline.h"
11
12#include <vector>
13#include <Eigen/Core>
14namespace igl
15{
23 template <typename T>
25 const std::vector<T> & A,
26 std::vector<T> & C,
27 std::vector<size_t> & IA,
28 std::vector<size_t> & IC);
30 template <typename T>
32 const std::vector<T> & A,
33 std::vector<T> & C);
35 template <
36 typename DerivedA,
37 typename DerivedC,
38 typename DerivedIA,
39 typename DerivedIC>
41 const Eigen::MatrixBase<DerivedA> & A,
42 Eigen::PlainObjectBase<DerivedC> & C,
43 Eigen::PlainObjectBase<DerivedIA> & IA,
44 Eigen::PlainObjectBase<DerivedIC> & IC);
46 template <
47 typename DerivedA,
48 typename DerivedC>
50 const Eigen::MatrixBase<DerivedA> & A,
51 Eigen::PlainObjectBase<DerivedC> & C);
52}
53
54#ifndef IGL_STATIC_LIBRARY
55# include "unique.cpp"
56#endif
57
58#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void unique(const std::vector< T > &A, std::vector< T > &C, std::vector< size_t > &IA, std::vector< size_t > &IC)
Act like matlab's [C,IA,IC] = unique(X)