colour.hints.ProtocolArrayNamespace#
- class colour.hints.ProtocolArrayNamespace(*args, **kwargs)[source]#
Define the surface of an Array API namespace used by Colour.
Function members are typed as callables returning
numpy.ndarrayso that the array resulting from a namespace call is typed as a concrete array rather thantyping.Any.- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)Attributes
fftReturn the fast Fourier transform extension.
infReturn the floating point representation of positive infinity.
linalgReturn the linear algebra extension.
piReturn the mathematical constant pi.
float32float64int32int64absacosallanyarangearctanargmaxargminargsortasarrayasinastypeatanatan2bitwise_andbitwise_right_shiftbitwise_xorbroadcast_arraysbroadcast_shapesbroadcast_toclipconcatcoscumsumcumulative_sumdiffexpexpand_dimsexpm1eyefinfoflipfloorfullfull_likegradienthypotinterpisfiniteisinisinfisnanlinspaceloglog10log1plog2logical_andlogical_notlogical_ormatmulmatrix_transposemaxmaximummeanmeshgridminminimummoveaxisnonzeroonesones_likepadpermute_dimspowprodrealrepeatreshaperesizerollroundsearchsortedsignsinsortsqrtsquaresqueezestackstdsumtaketake_along_axistantanhtiletrapezoidtriluniqueunique_valueswherezeroszeros_like