00001 /* 00002 * Shared copyright notice and LGPLv3 license statement. 00003 * 00004 * Copyright (C) 2010 The Board of Trustees of The Leland Stanford Junior University. All rights reserved. 00005 * Copyright (C) 2010 University of Texas at Austin. All rights reserved. 00006 * 00007 * Authors: Roland Philippsen (Stanford) and Luis Sentis (UT Austin) 00008 * http://cs.stanford.edu/group/manips/ 00009 * http://www.me.utexas.edu/~hcrl/ 00010 * 00011 * This program is free software: you can redistribute it and/or 00012 * modify it under the terms of the GNU Lesser General Public License 00013 * as published by the Free Software Foundation, either version 3 of 00014 * the License, or (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, but 00017 * WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this program. If not, see 00023 * <http://www.gnu.org/licenses/> 00024 */ 00025 00026 #ifndef OPSPACE_PSEUDO_INVERSE_HPP 00027 #define OPSPACE_PSEUDO_INVERSE_HPP 00028 00029 #include <jspace/wrap_eigen.hpp> 00030 00031 namespace opspace { 00032 00033 using jspace::Matrix; 00034 using jspace::Vector; 00035 00042 void pseudoInverse(Matrix const & matrix, 00043 double sigmaThreshold, 00044 Matrix & invMatrix, 00045 Vector * opt_sigmaOut = 0); 00046 00047 } 00048 00049 #endif // OPSPACE_PSEUDO_INVERSE_HPP