libigl v2.5.0
Loading...
Searching...
No Matches
cat.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_CAT_H
9#define IGL_CAT_H
10#include "igl_inline.h"
11
12#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
13#include <Eigen/Sparse>
14#include <Eigen/Dense>
15#include <vector>
16
17namespace igl
18{
32 template <typename Scalar>
34 const int dim,
35 const Eigen::SparseMatrix<Scalar> & A,
36 const Eigen::SparseMatrix<Scalar> & B,
37 Eigen::SparseMatrix<Scalar> & C);
38
48 template <typename Derived, class MatC>
50 const int dim,
51 const Eigen::MatrixBase<Derived> & A,
52 const Eigen::MatrixBase<Derived> & B,
53 MatC & C);
63 template <class Mat>
64 IGL_INLINE Mat cat(const int dim, const Mat & A, const Mat & B);
70 template <class Mat>
71 IGL_INLINE void cat(const std::vector<std::vector< Mat > > & A, Mat & C);
77 template <typename T, typename DerivedC>
78 IGL_INLINE void cat(const int dim, const std::vector<T> & A, Eigen::PlainObjectBase<DerivedC> & C);
79}
80
81#ifndef IGL_STATIC_LIBRARY
82# include "cat.cpp"
83#endif
84
85#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void cat(const int dim, const Eigen::SparseMatrix< Scalar > &A, const Eigen::SparseMatrix< Scalar > &B, Eigen::SparseMatrix< Scalar > &C)
Perform concatenation of a two sparse matrices along a single dimension If dim == 1,...