bettercmath v0.2.0 (2020-12-28T03:15:07Z)
Dub
Repo
Vector.opBinary
bettercmath
vector
Vector
Returns a new vector with binary operator applied to all elements and
scalar
Vector
opBinary
(T scalar)
struct
Vector
(T, uint N)
pure const
Vector
opBinary
(
string
op
)
(
const
T
scalar
)
if
(
!
op.among
("~", "<<", ">>", ">>>")
)
if
(
N
> 0
)
Vector
!(
T
,
max
(
N
,
M
))
opBinary
(T[M] other)
Vector
!(
T
,
N
+
1
)
opBinary
(T scalar)
Vector
!(
T
,
N
+
M
)
opBinary
(T[M] other)
Vector
opBinaryRight
(T scalar)
Meta
Source
See Implementation
bettercmath
vector
Vector
aliases
ElementType
a
b
ba
g
gb
gba
p
pq
q
r
rg
rgb
s
st
stp
t
tp
tpq
u
uv
v
w
x
xy
xyz
y
yz
yzw
z
zeroes
zw
constructors
this
functions
opBinary
opBinaryRight
opCast
opOpAssign
opUnary
manifest constants
dimension
variables
elements
ones
zeros
Returns a new vector with binary operator applied to all elements and scalar