Skip to content
Riccardo De Maria edited this page Apr 24, 2021 · 5 revisions

Random notes

Kernel interface

Arguments

Conversion tables

  • double x -> Arg(atype=xo.Float64,name='x') takes: python scalar, np scalars
  • double *restrict x -> Arg(atype=xo.Float64, pointer=True, name='x') np array, xo.Float64 arrays
  • const double *restrict x -> Arg(atype=xo.Float64,pointer=True, name='x', const=True) np array, xo.Float64 arrays
  • Float64_N x -> Arg(atype=xo.Float64[:],name='x') xo.Float64[:] object (ta
  • const char* x -> Arg(atype=xo.String,name='x',const=True) python string (to utf8), bytes, bytearray, xo.String
  • char* x -> Arg(atype=xo.String,name='x',const=True) bytearray, xo.String
  • MyType x -> Arg(atype="MyType",name='x') bytes, memview
  • MyType *restrict x -> Arg(atype="MyType",name='x') memview
  • const MyType *restrict x -> Arg(atype="MyType",name='x') memview

Clone this wiki locally