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

opAssign
auto opAssign(auto ref const(Vector!(K, E)) b)
opBinary
auto opBinary(auto ref const(Vector!(K, E)) b)
auto opBinary(auto ref const(E) b)

Any binary operations execs per element

opBinaryRight
auto opBinaryRight(auto ref const(E) b)

only mul allowed

opCast
bool opCast()

checks all elements is finite

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

Any binary operations execs per element

opUnary
auto opUnary()

Properties

len2
auto len2 [@property getter]

Square of euclidean length of the vector

Static functions

fill
selftype fill(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