libigl v2.5.0
Loading...
Searching...
No Matches
cr_vector_mass.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) 2020 Oded Stein <oded.stein@columbia.edu>
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_CR_VECTOR_MASS
9#define IGL_CR_VECTOR_MASS
10
11#include "igl_inline.h"
12
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16
17namespace igl
18{
28 template <typename DerivedV, typename DerivedF, typename DerivedE,
29 typename ScalarM>
30 IGL_INLINE void
32 const Eigen::MatrixBase<DerivedV>& V,
33 const Eigen::MatrixBase<DerivedF>& F,
34 const Eigen::MatrixBase<DerivedE>& E,
35 Eigen::SparseMatrix<ScalarM>& M);
39 template <typename DerivedV, typename DerivedF, typename DerivedE,
40 typename ScalarM>
41 IGL_INLINE void
43 const Eigen::MatrixBase<DerivedV>& V,
44 const Eigen::MatrixBase<DerivedF>& F,
45 Eigen::PlainObjectBase<DerivedE>& E,
46 Eigen::SparseMatrix<ScalarM>& M);
53 template <typename DerivedF, typename DeriveddA,
54 typename DerivedE, typename ScalarM>
55 IGL_INLINE void
57 const Eigen::MatrixBase<DerivedF>& F,
58 const Eigen::MatrixBase<DeriveddA>& dA,
59 const Eigen::MatrixBase<DerivedE>& E,
60 Eigen::SparseMatrix<ScalarM>& M);
61
62}
63
64
65#ifndef IGL_STATIC_LIBRARY
66# include "cr_vector_mass.cpp"
67#endif
68
69#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void cr_vector_mass_intrinsic(const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DeriveddA > &dA, const Eigen::MatrixBase< DerivedE > &E, Eigen::SparseMatrix< ScalarM > &M)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void cr_vector_mass(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedE > &E, Eigen::SparseMatrix< ScalarM > &M)
Computes the CR vector mass matrix, using an arrangement of all parallel degrees of freedom first,...