CppAD: A C++ Algorithmic Differentiation Package
20130102
|
00001 /* $Id$ */ 00002 # ifndef CPPAD_SPARSE_MAP2VEC_INCLUDED 00003 # define CPPAD_SPARSE_MAP2VEC_INCLUDED 00004 /* -------------------------------------------------------------------------- 00005 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell 00006 00007 CppAD is distributed under multiple licenses. This distribution is under 00008 the terms of the 00009 Eclipse Public License Version 1.0. 00010 00011 A copy of this license is included in the COPYING file of this distribution. 00012 Please visit http://www.coin-or.org/CppAD/ for information on other licenses. 00013 -------------------------------------------------------------------------- */ 00014 // --------------------------------------------------------------------------- 00015 namespace cppad_ipopt { 00016 // --------------------------------------------------------------------------- 00017 /*! 00018 \file sparse_map2vec.hpp 00019 \brief Create a two vector sparsity representation from a vector of maps. 00020 00021 \ingroup sparese_map2vec_cpp 00022 */ 00023 00024 extern void sparse_map2vec( 00025 const CppAD::vector< std::map<size_t, size_t> > sparse, 00026 size_t& n_nz , 00027 CppAD::vector<size_t>& i_row , 00028 CppAD::vector<size_t>& j_col 00029 ); 00030 00031 // --------------------------------------------------------------------------- 00032 } // end namespace cppad_ipopt 00033 // --------------------------------------------------------------------------- 00034 # endif