cutcutcodec.core.compilation.sympy_to_torch.printer_atom

C implementation of all atomic operations, helper for printer.

Functions

atom2str(elem, indexing, c_type)

Help for _print_atomic.

c_abs(out, indexing, c_type, arg)

C abs operation.

c_add(out, indexing, c_type, *parts)

C + operation.

c_atan(out, indexing, c_type, arg)

C atan operation.

c_cos(out, indexing, c_type, arg)

C cos operation.

c_equality(out, indexing, c_type, *parts)

C == operation.

c_exp(out, indexing, c_type, arg)

C exp operation.

c_greaterthan(out, indexing, c_type, *parts)

C >= operation, with module comparaison for complex numbers.

c_lessthan(out, indexing, c_type, *parts)

C <= operation, with module comparaison for complex numbers.

c_max(out, indexing, c_type, *parts)

C maximum operation.

c_min(out, indexing, c_type, *parts)

C minimum operation.

c_mul(out, indexing, c_type, *parts)

C * operation.

c_pow(out, indexing, c_type, base, exp)

C ** operation.

c_pow_pos_integer(out, indexing, c_type, ...)

Manage the special case of power where the exponant is a positive integer.

c_sin(out, indexing, c_type, arg)

C sin operation.

c_strictgreaterthan(out, indexing, c_type, ...)

C > operation, with module comparaison for complex numbers.

c_strictlessthan(out, indexing, c_type, *parts)

C < operation, with module comparaison for complex numbers.