// 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 "speye.h" template IGL_INLINE void igl::speye(const int m, const int n, Eigen::SparseMatrix & I) { // size of diagonal int d = (m(m,n); I.reserve(d); for(int i = 0;i IGL_INLINE void igl::speye(const int n, Eigen::SparseMatrix & I) { return igl::speye(n,n,I); } #ifdef IGL_STATIC_LIBRARY // Explicit template instantiation // generated by autoexplicit.sh template void igl::speye(int, Eigen::SparseMatrix&); template void igl::speye >(int, int, Eigen::SparseMatrix, 0, int>&); #endif