pynestml.codegeneration package¶
Subpackages¶
Submodules¶
pynestml.codegeneration.ast_transformers module¶
pynestml.codegeneration.autodoc_codegenerator module¶
pynestml.codegeneration.codegenerator module¶
pynestml.codegeneration.debug_type_converter module¶
pynestml.codegeneration.expressions_pretty_printer module¶
pynestml.codegeneration.gsl_names_converter module¶
pynestml.codegeneration.gsl_reference_converter module¶
pynestml.codegeneration.i_reference_converter module¶
- class pynestml.codegeneration.i_reference_converter.IReferenceConverter¶
Bases:
objectThis class represents a abstract super class for all possible reference converters, e.g. for nest, SpiNNaker or LEMS.
- abstract convert_arithmetic_operator(op)¶
- abstract convert_binary_op(binary_operator)¶
- abstract convert_bit_operator(op)¶
- abstract convert_comparison_operator(op)¶
- abstract convert_constant(constant_name)¶
- abstract convert_encapsulated()¶
- abstract convert_function_call(function_call, prefix='')¶
- abstract convert_logical_not()¶
- abstract convert_logical_operator(op)¶
- abstract convert_name_reference(variable, prefix='')¶
- abstract convert_ternary_operator()¶
- abstract convert_unary_op(unary_operator)¶
pynestml.codegeneration.latex_expression_printer module¶
pynestml.codegeneration.latex_reference_converter module¶
pynestml.codegeneration.nest_assignments_helper module¶
- class pynestml.codegeneration.nest_assignments_helper.NestAssignmentsHelper¶
Bases:
objectThis class contains several helper functions as used during printing of code.
- classmethod is_vectorized_assignment(assignment)¶
Indicates whether the handed over assignment is vectorized, i.e., an assignment of vectors. :param assignment: a single assignment. :type assignment: ASTAssignment :return: True if vectorized, otherwise False. :rtype: bool
- classmethod lhs_variable(assignment)¶
Returns the corresponding symbol of the assignment. :param assignment: a single assignment. :type assignment: ASTAssignment. :return: a single variable symbol :rtype: variable_symbol
- classmethod print_assignments_operation(assignment)¶
Returns a nest processable format of the assignment operation. :param assignment: a single assignment :type assignment: ASTAssignment :return: the corresponding string representation :rtype: str
- classmethod print_size_parameter(assignment)¶
Prints in a nest processable format the size parameter of the assignment. :param assignment: a single assignment :type assignment: ASTAssignment :return: the corresponding size parameter :rtype: str