simd
class Vec[T, N]
Fields
2
T
type
N
Literal[int]
Constructors
4
Methods
46
load[alignment: Literal[int] = 1](data: Ptr[T], offset: int = 0, mask = NoneType(), passthrough = NoneType()) -> Vec[(T, N)]
store[alignment: Literal[int] = 1](self: Self, data: Ptr[T], offset: int = 0, mask = NoneType())
gather[alignment: Literal[int] = 1](data: Ptr[T], indices: Vec[(int, N)], mask = NoneType(), passthrough = NoneType()) -> Vec[(T, N)]
scatter[alignment: Literal[int] = 1](self: Self, data: Ptr[T], indices: Vec[(int, N)], mask = NoneType())
scatter(self: Vec[(T, N)]) -> List[T]
lshift[check: Literal[bool] = True](self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
lshift[check: Literal[bool] = True](self: Self, other: T) -> Vec[(T, N)]
lshift[check: Literal[bool] = True](self: Self, other: int) -> Vec[(T, N)]
rshift[check: Literal[bool] = True](self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
rshift[check: Literal[bool] = True](self: Self, other: T) -> Vec[(T, N)]
rshift[check: Literal[bool] = True](self: Self, other: int) -> Vec[(T, N)]
floordiv[check: Literal[bool] = True](self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
floordiv[check: Literal[bool] = True](self: Self, other: T) -> Vec[(T, N)]
mod[check: Literal[bool] = True](self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
mod[check: Literal[bool] = True](self: Self, other: T) -> Vec[(T, N)]
min(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
min(self: Self, other: T) -> Vec[(T, N)]
min(self: Self) -> T
max(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
max(self: Self, other: T) -> Vec[(T, N)]
max(self: Self) -> T
Special methods
35
__eq__(self: Self, other: Vec[(T, N)]) -> Vec[(u1, N)]
__eq__(self: Self, other: T) -> Vec[(u1, N)]
__ne__(self: Vec[(T, N)], other: Vec[(T, N)]) -> Vec[(u1, N)]
__ne__(self: Self, other: T) -> Vec[(u1, N)]
__and__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__and__(self: Self, other: T) -> Vec[(T, N)]
__or__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__or__(self: Self, other: T) -> Vec[(T, N)]
__xor__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__xor__(self: Self, other: T) -> Vec[(T, N)]
__lshift__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__lshift__(self: Self, other: T) -> Vec[(T, N)]
__lshift__(self: Self, other: int) -> Vec[(T, N)]
__rshift__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__rshift__(self: Self, other: T) -> Vec[(T, N)]
__rshift__(self: Self, other: int) -> Vec[(T, N)]
__add__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__add__(self: Self, other: T) -> Vec[(T, N)]
__sub__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__sub__(self: Self, other: T) -> Vec[(T, N)]
__mul__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__mul__(self: Self, other: T) -> Vec[(T, N)]
__truediv__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__truediv__(self: Self, other: T) -> Vec[(T, N)]
__floordiv__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__floordiv__(self: Self, other: T) -> Vec[(T, N)]
__mod__(self: Self, other: Vec[(T, N)]) -> Vec[(T, N)]
__mod__(self: Self, other: T) -> Vec[(T, N)]
__lt__(self: Self, other: Vec[(T, N)]) -> Vec[(u1, N)]
__lt__(self: Self, other: T) -> Vec[(u1, N)]
__le__(self: Self, other: Vec[(T, N)]) -> Vec[(u1, N)]
__le__(self: Self, other: T) -> Vec[(u1, N)]
__gt__(self: Self, other: Vec[(T, N)]) -> Vec[(u1, N)]
__gt__(self: Self, other: T) -> Vec[(u1, N)]
__ge__(self: Self, other: Vec[(T, N)]) -> Vec[(u1, N)]
__ge__(self: Self, other: T) -> Vec[(u1, N)]
class Ptr[T]
Extends
internal.core.Ptr · View complete class API →
Special methods
2
__getitem__[S: type, M: Literal[int]](self: Ptr[Vec[(S, M)]], index: int) -> Vec[(S, M)]
%address = getelementptr <{=M} x {=S}>, ptr %self, i64 %index
%result = load <{=M} x {=S}>, ptr %address, align 1
ret <{=M} x {=S}> %result