Vector

Main vector interface.

Constructors

this
this(Type[Size] values)

Vector default constructor.

Members

Aliases

size
alias size = Size

Gets vector size (quantity of it's elements).

type
alias type = Type

Gets type of vector data

Functions

castTo
Vector!(Size, NewType, NewAccessors, NewOrientation) castTo()

Processes casting current vector to a new type of vector. Parametres that can be cange are: vector type, accessors and orientation.

opApply
int opApply(int delegate(ref Type) foreach_)
int opApply(int delegate(ref size_t, ref Type) foreach_)

Iterates vector.

opBinary
Self opBinary(Vector!(Size, SumType, SumAccessors, Orientation) summand)

Processes vector addition and subtraction.

opBinary
Self opBinary(Number num)

Processes vector multiplication and division with number.

opBinary
auto opBinary(Factor factor)

Processes vector multiplication with another vector. Due to mathematical restrictions that vector can be multiplied or divided only by perpendicular vector, both vectors will be converted to matrix and then processed.

opBinaryRight
Self opBinaryRight(Number num)

Processes vector multiplication and division with number.

opCast
NewType opCast()

Processes casting current vector to a new type of vector. Parametres that can be cange are: vector type, accessors and orientation.

opCast
string opCast()

Casts vector to a string.

opIndex
auto ref opIndex(size_t element)

Gets vector element.

opOpAssign
void opOpAssign(Vector!(Size, SumType, SumAccessors, Orientation) summand)

Processes vector addition and subtraction.

opOpAssign
void opOpAssign(Number num)

Processes vector multiplication and division with number.

opUnary
auto opUnary()

Inverses vector sign.

set
void set(Type[Size] values)

Sets all vector values in one action.

toMatrix
auto toMatrix()

Converts vector to one-lined or one-columned matrix depending on Orientation.

toString
string toString()

Stringifies vector.

Properties

t
auto t [@property getter]

Transposes vector.

Meta