viennamath::rt_expr<InterfaceType> operator/(viennamath::rt_expr<InterfaceType> const & lhs,
                                              ncell_quantity<CellType, InterfaceType> const & rhs)
 {
   return viennamath::rt_expr<InterfaceType>(new viennamath::rt_binary_expr<InterfaceType>(lhs.get()->clone(),
                                                           new viennamath::op_binary<viennamath::op_div<viennamath::default_numeric_type>, InterfaceType >(),
                                                           rhs.clone()));
 }
Example #2
0
 //
 // Generic runtime expression. Unwrap it and then scan through types
 //
 std::string operator()(viennamath::rt_expr<InterfaceType> const & e,
                        bool use_parenthesis = false) const
 {
   return process_impl(e.get(), use_parenthesis);
 }