Vector

Constructors

this
this(in E vals)

Vector can be constructed with different ways:

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Alias This

data

Members

Aliases

datatype
alias datatype = T
selftype
alias selftype = Vector!(N, T)

Functions

e
auto e()

normalized vector

len
auto len()

Euclidean length of the vector

len2
auto len2()

Square of euclidean length of the vector.

opAssign
auto opAssign(in Vector!(K, E) b)
opBinary
auto opBinary(in Vector!(K, E) b)
auto opBinary(in E b)

Any binary operations execs per element

opBinaryRight
auto opBinaryRight(in E b)

only mul allowed

opCast
bool opCast()

checks all elements is finite

opCast
const(E) opCast()
opCast
E opCast()
opOpAssign
auto opOpAssign(in E b)

Any binary operations execs per element

opUnary
auto opUnary()

Properties

length
auto length [@property getter]
size_t length [@property setter]

Length of elements. Enum, if vector isStatic.

Static functions

fill
selftype fill(size_t K, in E vals)
fillOne
selftype fillOne(size_t K, in E vals)

Templates

isCompatible
template isCompatible(E)

isSpecVector!(N,T)

Variables

data
T[N] data;

if isStatic ( fills by zeros if isNumeric!T )

data
T[] data;

if isDynamic

dims
enum size_t dims;

equals N

isDynamic
enum bool isDynamic;

N == 0

isStatic
enum bool isStatic;

N != 0

Meta