is_scalar_expression function¶
(Shortest import: from brian2.codegen.translation import is_scalar_expression)
-
brian2.codegen.translation.is_scalar_expression(expr, variables)[source]¶ Whether the given expression is scalar.
Parameters: expr : str
The expression to check
variables : dict-like
VariableandFunctionobject for all the identifiers used inexprReturns: scalar : bool
Whether
expris a scalar expression