Vector

struct Vector (
size_t N
T
) {}

Constructors

this
this(E vals)

Vector can be constructed with different ways:

Postblit

this(this)
this(this)
Undocumented in source.

Alias This

data

Members

Aliases

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

Functions

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

Any binary operations execs per element

opBinaryRight
auto opBinaryRight(E b)

only mul allowed

opCast
bool opCast()

checks all elements is finite

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

Any binary operations execs per element

opUnary
auto opUnary()
rebase
auto rebase(Args e)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

AccessString
enum AccessString;
Undocumented in source.
AccessString
enum AccessString;
Undocumented in source.
AccessString
enum AccessString;
Undocumented in source.
length
enum length;
Undocumented in source.

Mixins

__anonymous
mixin accessByString!(N, T, "data", AccessString)
Undocumented in source.

Properties

e
auto e [@property getter]

normalized vector

len
auto len [@property getter]

Euclidean length of the vector

len2
auto len2 [@property getter]

Square of euclidean length of the vector.

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, E vals)
fillOne
selftype fillOne(size_t K, 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[N] data;
Undocumented in source.
data
T[] data;

if isDynamic

dims
enum size_t dims;

equals N

isDynamic
enum bool isDynamic;

N == 0

isStatic
enum bool isStatic;

N != 0

Parameters

N

Number of dimensions, if 0 then vector is dynamic

T

data type

Meta