Skip to content

__codegen_infer_types__

builtin · libnexusinterp/corefcn/codegen-infer-proprietary.cc

: T = __codegen_infer_types__ (fcn, argtypes)

Infer types for every variable in a restricted entry-point function.

fcn is the name of a user function on the path. argtypes is a cell array of example values or structs with fields ClassName, SizeVector, VariableDims and Complex (as produced by coder.typeof / coder.newtype).

The result T is a scalar struct with fields:

  • Function — entry-point name
  • Variables — scalar struct, one field per variable, each a type descriptor (ClassName, SizeVector, VariableDims, Complex, Shape)

The engine covers double/single/int