- qspec.cast_sympy ( * args , as_sympy = True , dtype = 'float' )[source]
Cast the arguments
argsto asympytype (symbol) or the specifieddtype.- Parameters:
-
- argssympy_expr | scalar
The arguments.
- as_sympybool
Return the result as a symbol (
True) or as afloat(False).- dtypeCallable[[Any], T]
The type to use if
as_sympy == False.
- Returns:
-
- args_casttuple[T, ...]
The cast arguments.