class_docstr: Compute X * log(X), with special case 0 log(0) = 0.
class_docstr_tok: ["Compute","X","*","log","(","X",")",",","with","special","case","0","log","(","0",")","=","0","."]
code: def c_code(self, node, name, inputs, outputs, sub):
      (x,) = inputs
      (z,) = outputs
      if node.inputs[0].type in [ps.float32, ps.float64]:
          return f"""{z} =
                  {x} == 0.0
                  ? 0.0
                  : {x} * log({x});"""
      raise NotImplementedError("only floatingpoint is implemented")
  
file_path: pytensor/pytensor/tensor/xlogx.py
imports: import numpy
  from pytensor import scalar
  from pytensor.tensor.elemwise import Elemwise
label_desc: Use image node_id 4 for calling the XlogX obj's underlying member method code with example usage: obj.c_code(node, name, inputs, outputs, sub) and returns: z, str, x, str, x, str, x, str