Browse Source

remove deprecated full function

Former-commit-id: 12327cfee478206a5320b6edb25a7a50af250732
Alec Jacobson 9 năm trước cách đây
mục cha
commit
e03e984058
2 tập tin đã thay đổi với 0 bổ sung85 xóa
  1. 0 44
      include/igl/full.cpp
  2. 0 41
      include/igl/full.h

+ 0 - 44
include/igl/full.cpp

@@ -1,44 +0,0 @@
-// This file is part of libigl, a simple c++ geometry processing library.
-// 
-// 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 
-// obtain one at http://mozilla.org/MPL/2.0/.
-#include "full.h"
-
-template <typename T,typename DerivedB>
-IGL_INLINE void igl::full(
-  const Eigen::SparseMatrix<T> & A,
-  Eigen::PlainObjectBase<DerivedB>& B)
-{
-  assert(false && "Obsolete. Just call B = Matrix(A)");
-  using namespace Eigen;
-  B = PlainObjectBase<DerivedB >::Zero(A.rows(),A.cols());
-  // Iterate over outside
-  for(int k=0; k<A.outerSize(); ++k)
-  {
-    // Iterate over inside
-    for(typename SparseMatrix<T>::InnerIterator it (A,k); it; ++it)
-    {
-      B(it.row(),it.col()) = it.value();
-    }
-  }
-}
-
-template <typename DerivedA,typename DerivedB>
-IGL_INLINE void igl::full(
-  const Eigen::PlainObjectBase<DerivedA>& A,
-  Eigen::PlainObjectBase<DerivedB>& B)
-{
-  assert(false && "Obsolete. Just call B = Matrix(A)");
-  B = A;
-}
-
-#ifdef IGL_STATIC_LIBRARY
-// Explicit template specialization
-// generated by autoexplicit.sh
-template void igl::full<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
-// generated by autoexplicit.sh
-template void igl::full<double, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::SparseMatrix<double, 0, int> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
-#endif

+ 0 - 41
include/igl/full.h

@@ -1,41 +0,0 @@
-// This file is part of libigl, a simple c++ geometry processing library.
-// 
-// 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 
-// obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef IGL_FULL_H
-#define IGL_FULL_H
-#include "igl_inline.h"
-#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
-#include <Eigen/Dense>
-#include <Eigen/Sparse>
-namespace igl
-{
-  // This is totally unnecessary. You can just call MatrixXd B = MatrixXd(A);
-  //
-  // Convert a sparsematrix into a full one
-  //
-  // Templates:
-  //   T  should be a eigen sparse matrix primitive type like int or double
-  // Input:
-  //   A  m by n sparse matrix
-  // Output:
-  //   B  m by n dense/full matrix
-  template <typename T,typename DerivedB>
-  IGL_INLINE void full(
-    const Eigen::SparseMatrix<T> & A,
-    Eigen::PlainObjectBase<DerivedB> & B);
-  // If already full then this will just be a copy by assignment
-  template <typename DerivedA,typename DerivedB>
-  IGL_INLINE void full(
-    const Eigen::PlainObjectBase<DerivedA>& A,
-    Eigen::PlainObjectBase<DerivedB>& B);
-}
-
-#ifndef IGL_STATIC_LIBRARY
-#  include "full.cpp"
-#endif
-
-#endif