|
@@ -1,9 +1,9 @@
|
|
// This file is part of libigl, a simple c++ geometry processing library.
|
|
// This file is part of libigl, a simple c++ geometry processing library.
|
|
-//
|
|
|
|
|
|
+//
|
|
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
|
|
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
|
|
-//
|
|
|
|
-// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
|
|
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
|
|
|
|
+//
|
|
|
|
+// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
|
|
+// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
#ifndef IGL_MIN_QUAD_WITH_FIXED_H
|
|
#ifndef IGL_MIN_QUAD_WITH_FIXED_H
|
|
#define IGL_MIN_QUAD_WITH_FIXED_H
|
|
#define IGL_MIN_QUAD_WITH_FIXED_H
|
|
@@ -13,7 +13,6 @@
|
|
#include <Eigen/Core>
|
|
#include <Eigen/Core>
|
|
#include <Eigen/Dense>
|
|
#include <Eigen/Dense>
|
|
#include <Eigen/Sparse>
|
|
#include <Eigen/Sparse>
|
|
-#include <Eigen/SparseExtra>
|
|
|
|
// Bug in unsupported/Eigen/SparseExtra needs iostream first
|
|
// Bug in unsupported/Eigen/SparseExtra needs iostream first
|
|
#include <iostream>
|
|
#include <iostream>
|
|
#include <unsupported/Eigen/SparseExtra>
|
|
#include <unsupported/Eigen/SparseExtra>
|
|
@@ -56,9 +55,9 @@ namespace igl
|
|
);
|
|
);
|
|
|
|
|
|
// Solves a system previously factored using min_quad_with_fixed_precompute
|
|
// Solves a system previously factored using min_quad_with_fixed_precompute
|
|
- //
|
|
|
|
|
|
+ //
|
|
// Template:
|
|
// Template:
|
|
- // T type of sparse matrix (e.g. double)
|
|
|
|
|
|
+ // T type of sparse matrix (e.g. double)
|
|
// DerivedY type of Y (e.g. derived from VectorXd or MatrixXd)
|
|
// DerivedY type of Y (e.g. derived from VectorXd or MatrixXd)
|
|
// DerivedZ type of Z (e.g. derived from VectorXd or MatrixXd)
|
|
// DerivedZ type of Z (e.g. derived from VectorXd or MatrixXd)
|
|
// Inputs:
|
|
// Inputs:
|
|
@@ -72,9 +71,9 @@ namespace igl
|
|
// Returns true on success, false on error
|
|
// Returns true on success, false on error
|
|
template <
|
|
template <
|
|
typename T,
|
|
typename T,
|
|
- typename DerivedB,
|
|
|
|
|
|
+ typename DerivedB,
|
|
typename DerivedY,
|
|
typename DerivedY,
|
|
- typename DerivedBeq,
|
|
|
|
|
|
+ typename DerivedBeq,
|
|
typename DerivedZ,
|
|
typename DerivedZ,
|
|
typename Derivedsol>
|
|
typename Derivedsol>
|
|
IGL_INLINE bool min_quad_with_fixed_solve(
|
|
IGL_INLINE bool min_quad_with_fixed_solve(
|
|
@@ -87,9 +86,9 @@ namespace igl
|
|
// Wrapper without sol
|
|
// Wrapper without sol
|
|
template <
|
|
template <
|
|
typename T,
|
|
typename T,
|
|
- typename DerivedB,
|
|
|
|
|
|
+ typename DerivedB,
|
|
typename DerivedY,
|
|
typename DerivedY,
|
|
- typename DerivedBeq,
|
|
|
|
|
|
+ typename DerivedBeq,
|
|
typename DerivedZ>
|
|
typename DerivedZ>
|
|
IGL_INLINE bool min_quad_with_fixed_solve(
|
|
IGL_INLINE bool min_quad_with_fixed_solve(
|
|
const min_quad_with_fixed_data<T> & data,
|
|
const min_quad_with_fixed_data<T> & data,
|