# numpy.ufunc.types

attribute

ufunc.types

  Returns a list with types grouped input->output.

  Data attribute listing the data-type “Domain-Range” groupings the ufunc can deliver. The data-types are given using the character codes.

  See also

  `numpy.ufunc.ntypes`

  Examples

      >>> np.add.types
      ['??->?', 'bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l',
      'LL->L', 'qq->q', 'QQ->Q', 'ff->f', 'dd->d', 'gg->g', 'FF->F', 'DD->D',
      'GG->G', 'OO->O']

      >>> np.multiply.types
      ['??->?', 'bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l',
      'LL->L', 'qq->q', 'QQ->Q', 'ff->f', 'dd->d', 'gg->g', 'FF->F', 'DD->D',
      'GG->G', 'OO->O']

      >>> np.power.types
      ['bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l', 'LL->L',
      'qq->q', 'QQ->Q', 'ff->f', 'dd->d', 'gg->g', 'FF->F', 'DD->D', 'GG->G',
      'OO->O']

      >>> np.exp.types
      ['f->f', 'd->d', 'g->g', 'F->F', 'D->D', 'G->G', 'O->O']

      >>> np.remainder.types
      ['bb->b', 'BB->B', 'hh->h', 'HH->H', 'ii->i', 'II->I', 'll->l', 'LL->L',
      'qq->q', 'QQ->Q', 'ff->f', 'dd->d', 'gg->g', 'OO->O']

previous

numpy.ufunc.ntypes

next

numpy.ufunc.identity