20170915

Numpy scalar types cheat-sheet (x86-64)

Saving this as note-to-self; The Numpy documentation is thorough but unfriendly for rapid scanning. Here's a cheat-sheet for Linux x86-64.

  • (BHIL) bhil : (u)int-8,16,32,64
  • efdg : float-16,32,64,80
  • FDG : complex 2×(32,64,80)
  • ? : Boolean
  • S# / U# : Length-# byte/Unicode strings
  • On Intel x86-64 the signed/unsigned pointer-length types intp p / uintp P are int64 / uint64 , as are longlong q / ulonglong Q .
  • All types are little-endian < by default (prefix > to specify big-endian)
  • Types can be suffixed by an integer to specify vector-types