Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
codegen.h File Reference
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
#include <Eigen/Core>
#include <Eigen/Sparse>
#include "drake/common/drake_copyable.h"
#include "drake/common/symbolic/expression.h"
Include dependency graph for codegen.h:

Classes

class  CodeGenVisitor
 Visitor class for code generation. More...

Namespaces

namespace  drake
namespace  drake::symbolic

Functions

std::string CodeGen (const std::string &function_name, const std::vector< Variable > &parameters, const Expression &e)
 For a given symbolic expression e, generates two C functions, <function_name> and <function_name>_meta.
template<typename Derived>
std::string CodeGen (const std::string &function_name, const std::vector< Variable > &parameters, const Eigen::PlainObjectBase< Derived > &M)
 For a given symbolic dense matrix M, generates two C functions, <function_name> and <function_name>_meta.
std::string CodeGen (const std::string &function_name, const std::vector< Variable > &parameters, const Eigen::Ref< const Eigen::SparseMatrix< Expression, Eigen::ColMajor > > &M)
 For a given symbolic column-major sparse matrix M, generates two C functions, <function_name> and <function_name>_meta.