libigl v2.5.0
Loading...
Searching...
No Matches
scalar_to_cr_vector_gradient.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_SCALAR_TO_CR_VECTOT_GRADIENT_H
9#define IGL_SCALAR_TO_CR_VECTOT_GRADIENT_H
10
11#include "igl_inline.h"
12
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16
17namespace igl
18{
29 template <typename DerivedV, typename DerivedF, typename DerivedE,
30 typename DerivedOE, typename ScalarG>
31 IGL_INLINE void
33 const Eigen::MatrixBase<DerivedV>& V,
34 const Eigen::MatrixBase<DerivedF>& F,
35 const Eigen::MatrixBase<DerivedE>& E,
36 const Eigen::MatrixBase<DerivedOE>& oE,
37 Eigen::SparseMatrix<ScalarG>& G);
41 template <typename DerivedV, typename DerivedF, typename DerivedE,
42 typename DerivedOE, typename ScalarG>
43 IGL_INLINE void
45 const Eigen::MatrixBase<DerivedV>& V,
46 const Eigen::MatrixBase<DerivedF>& F,
47 Eigen::PlainObjectBase<DerivedE>& E,
48 Eigen::PlainObjectBase<DerivedOE>& oE,
49 Eigen::SparseMatrix<ScalarG>& G);
57 template <typename DerivedF, typename DerivedL_sq, typename DeriveddA,
58 typename DerivedE, typename DerivedOE, typename ScalarG>
60 const Eigen::MatrixBase<DerivedF>& F,
61 const Eigen::MatrixBase<DerivedL_sq>& l_sq,
62 const Eigen::MatrixBase<DeriveddA>& dA,
63 const Eigen::MatrixBase<DerivedE>& E,
64 const Eigen::MatrixBase<DerivedOE>& oE,
65 Eigen::SparseMatrix<ScalarG>& G);
68 template <typename DerivedF, typename DerivedL_sq, typename DerivedE,
69 typename DerivedOE, typename ScalarG>
71 const Eigen::MatrixBase<DerivedF>& F,
72 const Eigen::MatrixBase<DerivedL_sq>& l_sq,
73 const Eigen::MatrixBase<DerivedE>& E,
74 const Eigen::MatrixBase<DerivedOE>& oE,
75 Eigen::SparseMatrix<ScalarG>& G);
76}
77
78
79#ifndef IGL_STATIC_LIBRARY
80# include "scalar_to_cr_vector_gradient.cpp"
81#endif
82
83#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void scalar_to_cr_vector_gradient(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedE > &E, const Eigen::MatrixBase< DerivedOE > &oE, Eigen::SparseMatrix< ScalarG > &G)
Computes the gradient matrix with hat functions on the right, and vector CR functions on the left.
void scalar_to_cr_vector_gradient_intrinsic(const Eigen::MatrixBase< DerivedF > &F, const Eigen::MatrixBase< DerivedL_sq > &l_sq, const Eigen::MatrixBase< DeriveddA > &dA, const Eigen::MatrixBase< DerivedE > &E, const Eigen::MatrixBase< DerivedOE > &oE, Eigen::SparseMatrix< ScalarG > &G)
This is an overloaded member function, provided for convenience. It differs from the above function o...