CppAD: A C++ Algorithmic Differentiation Package 20110419
sparse_map2vec.hpp
Go to the documentation of this file.
00001 /* $Id$ */
00002 # ifndef  CPPAD_SPARSE_MAP2VEC_INCLUDED
00003 # define  CPPAD_SPARSE_MAP2VEC_INCLUDED
00004 /* --------------------------------------------------------------------------
00005 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-10 Bradley M. Bell
00006 
00007 CppAD is distributed under multiple licenses. This distribution is under
00008 the terms of the 
00009                     Common 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 CPPAD_BEGIN_NAMESPACE
00015 /*!
00016 \file sparse_map2vec.hpp
00017 \brief Create a two vector sparsity representation from a vector of maps.
00018 */
00019 
00020 extern void sparse_map2vec(
00021         const CppAD::vector< std::map<size_t, size_t> > sparse,
00022         size_t&                                         n_nz  ,
00023         CppAD::vector<size_t>&                          i_row ,
00024         CppAD::vector<size_t>&                          j_col
00025 );
00026 
00027 CPPAD_END_NAMESPACE
00028 # endif