Vec

Standard library class simd.Vec View source
class Vec
@tuple
class Vec[T, N]
Fields 2
T type
N Literal[int]
Constructors 4
__new__
__new__(x, check: Literal[bool] = True)
Defined in simd
__new__
__new__(x: str, offset: int = 0, check: Literal[bool] = True)
Defined in simd
__new__
__new__(x: bytes, offset: int = 0, check: Literal[bool] = True)
Defined in simd
__new__
__new__(x: List[T], offset: int = 0, check: Literal[bool] = True)
Defined in simd
Methods 46
load
load(data: Ptr[T], offset: int = 0, alignment: Literal[int] = 1, mask = NoneType(), passthrough = NoneType())
Defined in simd
store
store(self, data: Ptr[T], offset: int = 0, alignment: Literal[int] = 1, mask = NoneType())
Defined in simd
gather
gather(data: Ptr[T], indices: Vec[int, N], alignment: Literal[int] = 1, mask = NoneType(), passthrough = NoneType())
Defined in simd
scatter
scatter(self, data: Ptr[T], indices: Vec[int, N], alignment: Literal[int] = 1, mask = NoneType())
Defined in simd
scatter(self: Vec[T, N])
Defined in simd
cast
cast(self, T2: type)
Defined in simd
cast_ptr
@pure @llvm
cast_ptr(ptr: Ptr[T], T: type, T2: type)
Defined in simd
ret ptr %ptr
extract
extract(self, index: int, check: Literal[bool] = True)
Defined in simd
insert
insert(self, index: int, value: T, check: Literal[bool] = True)
Defined in simd
shuffle
shuffle(self, indices, other = NoneType(), check: Literal[bool] = True)
Defined in simd
interleave
interleave(self, other: Vec[T, N])
Defined in simd
lshift
lshift(self, other: Vec[T, N], check: Literal[bool] = True)
Defined in simd
lshift(self, other: T, check: Literal[bool] = True)
Defined in simd
lshift(self, other: int, check: Literal[bool] = True)
Defined in simd
lsh
lsh(self, other: Literal[int])
Defined in simd
rshift
rshift(self, other: Vec[T, N], check: Literal[bool] = True)
Defined in simd
rshift(self, other: T, check: Literal[bool] = True)
Defined in simd
rshift(self, other: int, check: Literal[bool] = True)
Defined in simd
rsh
rsh(self, other: Literal[int])
Defined in simd
any
any(self)
Defined in simd
all
all(self)
Defined in simd
count
count(self)
Defined in simd
to_bits
to_bits(self)
Defined in simd
from_bits
from_bits(bits: UInt[N])
Defined in simd
floordiv
floordiv(self, other: Vec[T, N], check: Literal[bool] = True)
Defined in simd
floordiv(self, other: T, check: Literal[bool] = True)
Defined in simd
mod
mod(self, other: Vec[T, N], check: Literal[bool] = True)
Defined in simd
mod(self, other: T, check: Literal[bool] = True)
Defined in simd
sqrt
sqrt(self)
Defined in simd
log
log(self)
Defined in simd
sin
sin(self)
Defined in simd
cos
cos(self)
Defined in simd
min
min(self, other: Vec[T, N])
Defined in simd
min(self, other: T)
Defined in simd
min(self)
Defined in simd
max
max(self, other: Vec[T, N])
Defined in simd
max(self, other: T)
Defined in simd
max(self)
Defined in simd
mask
mask(self, other: Vec[T, N], mask)
Defined in simd
add
add(self, other: Vec[T, N], overflow: Literal[bool] = False)
Defined in simd
sub
sub(self, other: Vec[T, N], overflow: Literal[bool] = False)
Defined in simd
sum
sum(self)
Defined in simd
prod
prod(self)
Defined in simd
fma
fma(self, other, addend)
Defined in simd
exp
exp(self)
Defined in simd
exp2
exp2(self)
Defined in simd
log2
log2(self)
Defined in simd
log10
log10(self)
Defined in simd
floor
floor(self)
Defined in simd
ceil
ceil(self)
Defined in simd
trunc
trunc(self)
Defined in simd
round
round(self)
Defined in simd
isnan
isnan(self)
Defined in simd
isinf
isinf(self)
Defined in simd
isfinite
isfinite(self)
Defined in simd
signbit
signbit(self)
Defined in simd
bitflip
bitflip(self)
Defined in simd
Special methods 35
__copy__
__copy__(self)
Defined in simd
__len__
__len__(self)
Defined in simd
__neg__
__neg__(self)
Defined in simd
__getitem__
__getitem__(self, index: int)
Defined in simd
__getitem__(self, n: Literal[int])
Defined in simd
__repr__
__repr__(self)
Defined in simd
__eq__
__eq__(self, other: Vec[T, N])
Defined in simd
__eq__(self, other: T)
Defined in simd
__ne__
__ne__(self: Vec[T, N], other: Vec[T, N])
Defined in simd
__ne__(self, other: T)
Defined in simd
__and__
__and__(self, other: Vec[T, N])
Defined in simd
__and__(self, other: T)
Defined in simd
__or__
__or__(self, other: Vec[T, N])
Defined in simd
__or__(self, other: T)
Defined in simd
__xor__
__xor__(self, other: Vec[T, N])
Defined in simd
__xor__(self, other: T)
Defined in simd
__rand__
__rand__(self, other: T)
Defined in simd
__ror__
__ror__(self, other: T)
Defined in simd
__rxor__
__rxor__(self, other: T)
Defined in simd
__invert__
__invert__(self)
Defined in simd
__lshift__
__lshift__(self, other: Vec[T, N])
Defined in simd
__lshift__(self, other: T)
Defined in simd
__lshift__(self, other: int)
Defined in simd
__rlshift__
__rlshift__(self, other: T)
Defined in simd
__rshift__
__rshift__(self, other: Vec[T, N])
Defined in simd
__rshift__(self, other: T)
Defined in simd
__rshift__(self, other: int)
Defined in simd
__rrshift__
__rrshift__(self, other: T)
Defined in simd
__add__
__add__(self, other: Vec[T, N])
Defined in simd
__add__(self, other: T)
Defined in simd
__radd__
__radd__(self, other: T)
Defined in simd
__sub__
__sub__(self, other: Vec[T, N])
Defined in simd
__sub__(self, other: T)
Defined in simd
__rsub__
__rsub__(self, other: T)
Defined in simd
__mul__
__mul__(self, other: Vec[T, N])
Defined in simd
__mul__(self, other: T)
Defined in simd
__rmul__
__rmul__(self, other: T)
Defined in simd
__truediv__
__truediv__(self, other: Vec[T, N])
Defined in simd
__truediv__(self, other: T)
Defined in simd
__rtruediv__
__rtruediv__(self, other: T)
Defined in simd
__floordiv__
__floordiv__(self, other: Vec[T, N])
Defined in simd
__floordiv__(self, other: T)
Defined in simd
__rfloordiv__
__rfloordiv__(self, other: T)
Defined in simd
__mod__
__mod__(self, other: Vec[T, N])
Defined in simd
__mod__(self, other: T)
Defined in simd
__rmod__
__rmod__(self, other: T)
Defined in simd
__lt__
__lt__(self, other: Vec[T, N])
Defined in simd
__lt__(self, other: T)
Defined in simd
__le__
__le__(self, other: Vec[T, N])
Defined in simd
__le__(self, other: T)
Defined in simd
__gt__
__gt__(self, other: Vec[T, N])
Defined in simd
__gt__(self, other: T)
Defined in simd
__ge__
__ge__(self, other: Vec[T, N])
Defined in simd
__ge__(self, other: T)
Defined in simd
__abs__
__abs__(self)
Defined in simd