Loading...
Searching...
No Matches
basis_raw_list.cc
Go to the documentation of this file.
// TODO: how to a user's defined basis to the list ?
#include "rheolef/basis_raw.h"
#include "basis_raw_monomial.h"
#include "basis_raw_bernstein.h"
#include "basis_raw_dubiner.h"
namespace rheolef {
using namespace std;
template<class T>
basis_raw_rep<T>*
basis_raw_rep<T>::make_ptr (std::string name)
{
if (name == "") return 0;
if (name[0] == 'M') return new_macro(basis_raw_monomial<T>(name));
if (name[0] == 'B') return new_macro(basis_raw_bernstein<T>(name));
if (name[0] == 'D') return new_macro(basis_raw_dubiner<T>(name));
error_macro ("undefined raw basis `" << name << "'");
return 0;
}
// instanciation in library:
template basis_raw_rep<Float>* basis_raw_rep<Float>::make_ptr (string);
} // namespace rheolef
basis_raw_bernstein.h
basis_raw_dubiner.h
basis_raw_monomial.h
rheolef::basis_raw_bernstein
Definition basis_raw_bernstein.h:35
rheolef::basis_raw_dubiner
Definition basis_raw_dubiner.h:35
rheolef::basis_raw_monomial
Definition basis_raw_monomial.h:39
rheolef::basis_raw_rep
Definition basis_raw.h:36
rheolef::basis_raw_rep::make_ptr
static basis_raw_rep * make_ptr(std::string name)
Definition basis_raw_list.cc:31
error_macro
#define error_macro(message)
Definition dis_macros.h:49
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
std
STL namespace.