Generate fortran and registration code from mortran, geared specifically towards the mortran used by Jerome Friedman at Stanford University

process_mortran(
  input_mortran_file,
  pkg_name = NULL,
  control = sutools_control()
)

Arguments

input_mortran_file

the input mortran file

pkg_name

the package name signalling that registration code has to be generated

control

a parameter that controls the behavior of this function

Value

a named list of processed mortran lines (mortran), fortran lines (fortran) and, if so requested and no warnings occur, a registration c code as the third argument appropriately named using the package name provided

Examples

if (FALSE) {
process_mortran("./pcLasso.m")
}