synaps/linalg/Solve.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 *      This file is part of the source code of SYNAPS kernel.        *
00003 *   Author(s): B. Mourrain, GALAAD, INRIA                            *
00004 **********************************************************************/
00005 #ifndef SYNAPS_LINALG_SOLVE_H
00006 #define SYNAPS_LINALG_SOLVE_H
00007 //-------------------------------------------------------------------
00008 #include <synaps/init.h>
00009 #include <synaps/linalg/MethodName.h>
00010 __BEGIN_NAMESPACE_SYNAPS
00011 //====================================================================
00015 //--------------------------------------------------------------------
00024 template <class MTH, class M, class R> inline 
00025 R Solve(M & A, R & B)
00026 {
00027   R x(B);
00028   solve(MTH(),x.rep(),A.rep(),B.rep());
00029   return x;
00030 }
00031 //====================================================================
00032 __END_NAMESPACE_SYNAPS
00033 //--------------------------------------------------------------------
00034 #endif // SYNAPS_LINALG_SOLVE_H

SYNAPS DOCUMENTATION
logo