

def AssembleOutputSourceCodeCPP(self, inModel):
    x_or_xy = 'x_in * y_in'
    if (inModel.GetDimensionality() == 2):
        x_or_xy = 'x_in'
    if inModel.baseEquationHasGlobalMultiplierOrDivisor_UsedInExtendedVersions:
        return (((inModel.SpecificCodeCPP() + '\ttemp = temp * (') + x_or_xy) + ') + Offset;\n')
    else:
        cd = inModel.GetCoefficientDesignators()
        return (((((inModel.SpecificCodeCPP() + '\ttemp = temp * (') + cd[(- 2)]) + ' * ') + x_or_xy) + ') + Offset;\n')

dataset/ETHPy150Open zunzun/pyeq2/ExtendedVersionHandlers/ExtendedVersionHandler_LinearGrowthAndOffset.py ExtendedVersionHandler_LinearGrowthAndOffset.AssembleOutputSourceCodeCPP/original