convert_pow_impl: Convert Fortran-style exponentiation to C++ pow()

View source: R/RcppExports.R

convert_pow_implR Documentation

Convert Fortran-style exponentiation to C++ pow()

Description

Translates base**exponent to pow(base, exponent) in each element of code, handling arbitrarily nested expressions. Numeric literals are preserved exactly as written. A trailing semicolon is preserved if present.

Usage

convert_pow_impl(code, block)

Arguments

code

Character vector of source lines.

block

Name of the model block, included in the warning message.

Value

Character vector with ** replaced by pow().


mrgsolve documentation built on May 20, 2026, 9:06 a.m.