// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson // // 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 IGL_INLINE void igl::full( const Eigen::SparseMatrix & A, Eigen::PlainObjectBase& B) { assert(false && "Obsolete. Just call B = Matrix(A)"); using namespace Eigen; B = PlainObjectBase::Zero(A.rows(),A.cols()); // Iterate over outside for(int k=0; k::InnerIterator it (A,k); it; ++it) { B(it.row(),it.col()) = it.value(); } } } template IGL_INLINE void igl::full( const Eigen::PlainObjectBase& A, Eigen::PlainObjectBase& 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 >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh template void igl::full >(Eigen::SparseMatrix const&, Eigen::PlainObjectBase >&); #endif