00001 00002 /****************************************************************************** 00003 * MODULE : bav.hpp 00004 * DESCRIPTION: wrapper of the bav library 00005 * COPYRIGHT : (C) 2012 Gregoire Lecerf 00006 ******************************************************************************* 00007 * This software falls under the GNU general public license and comes WITHOUT 00008 * ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details. 00009 * If you don't have this file, write to the Free Software Foundation, Inc., 00010 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00011 ******************************************************************************/ 00012 00013 #ifndef __MMX_BAV_HPP 00014 #define __MMX_BAV_HPP 00015 #include <mblad/blad_session.hpp> 00016 00018 namespace mmx { 00019 #define Coordinate multivariate_coordinate<> 00020 00021 // Dependent coordinates 00022 Coordinate 00023 derive (const Coordinate& u, const vector<Coordinate>& v); 00024 00025 inline Coordinate 00026 derive (const Coordinate& u, const Coordinate& x) { 00027 return derive (u, vec (x)); } 00028 00029 inline Coordinate 00030 derive (const Coordinate& u, const Coordinate& x, const Coordinate& y) { 00031 return derive (u, vec (x, y)); } 00032 00033 #undef Coordinate 00034 } // namespace mmx 00035 #endif // __MMX_BAV_HPP