Vector

struct Vector (
size_t N
T
alias string AS = ""
) if (
isCompatibleArrayAccessStrings(N, AS, VVASES, VVASVS) ||
AS.length == 0
) {}

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

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

Functions

opAssign
auto opAssign(Vector!(K, E, oas) b)
opBinary
auto opBinary(Vector!(K, E, oas) 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

opOpAssign
auto opOpAssign(E b)

Any binary operations execs per element

opUnary
auto opUnary()
rebase
auto rebase(I x, J y)
Undocumented in source. Be warned that the author may not have intended to support it.
rebase
auto rebase(I x, J y, K z)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

length
enum length;
Undocumented in source.

Properties

e
auto e [@property getter]

Unit length of the 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 is static.

opDispatch
T opDispatch [@property getter]

Get/set element data by access string.

opDispatch
auto opDispatch [@property getter]
U opDispatch [@property setter]

Get/set vector by access string.

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 dimmensions. Vector can be dynamic (N==0) or static (N>0).

T

Vector data type.

AS

Access string. Must be valid access string ( see: isCompatibleArrayAccessStrings )

Meta