Skip to main content

Vector

ABS

abs(Vector of Number v) -> Vector of Number
STABLE

The absolute values in vector v


AGGV

aggv(Bag of Vector bv, Function fn) -> Vector of Number
STABLE

Apply aggregate function fn on each position of the vectors in bv


ARGMAX

argmax(Vector v) -> Integer
STABLE

Index of the first largest element in v


argmax(Array a) -> Integer
STABLE

Argmax.

Get the index of the first maximum value of array a.

ParameterDescription
aArray to look for max.

Return: Index of max in array.


ARGMIN

argmin(Vector v) -> Integer
STABLE

Index of the first smallest element in v


argmin(Array a) -> Integer
STABLE

Argmin.

Get the index of the first minimum value of array a.

ParameterDescription
aArray to look for min.

Return: Index of min in array.


CONCAT

concat(Vector v, Vector w) -> Vector
STABLE

Concatenate vectors v and w


CUMSUM

cumsum(Array a) -> Array res
STABLE

Cummulative sum over array.

Computes the cumulative sum for each element in the array. This means that out[1] = a[1], out[2] = a[1] + a[2], out[3] = a[1] + a[2] + a[3], and so on.

ParameterDescription
aArray on which to comput cumulative sum.

Return: Array where each element holds the cumulative sum of a (same size and type as input array).


DIM

dim(Vector v) -> Integer
STABLE

Size of vector v


DISABLE_VECTOR_TO_ARRAY_COERSION

disable_vector_to_array_coersion( ) -> Boolean
STABLE

No description.


DIV

div(Vector v, Number lambda) -> Vector of Number
STABLE

Divide elements in vector v with lambda, v / lambda


div(Number lambda, Vector w) -> Vector of Number
STABLE

Divide lambda with each element in vector w, lambda / w


ELEMDIV

elemdiv(Vector v, Vector w) -> Vector of Number
STABLE

Divide elements in vector v with elements in w, v ./ w


ELEMENTS

elements(Vector v) -> Integer
STABLE

Number of elements in nested vector v


ELEMPOWER

elempower(Vector v, Number exp) -> Vector of Number
STABLE

Compute power(e,exp) for each element e in vector v, v .^ exp


elempower(Array a, Number exp) -> Array
STABLE

Element-wise power.

Raises each element of a to the power of exp.

ParameterDescription
aArray to compute power of.
expExponent to use in power computation.

Return: Array with elements of a to the power of exp.


ELEMTIMES

elemtimes(Vector v, Vector w) -> Vector of Number
STABLE

Multiply vectrors v and w element by element, v .* w


ENABLE_VECTOR_TO_ARRAY_COERSION

enable_vector_to_array_coersion( ) -> Boolean
STABLE

No description.


EUCLID

euclid(Array a, Array b) -> Real
STABLE

No description.


euclid(Vector a, Vector b) -> Number
STABLE

No description.


FLATTEN

flatten(Vector v) -> Vector
STABLE

Flatten nested vector v


GEODIST

geodist(Vector v, Vector w) -> Real
STABLE

The surface distance in meters between geographic

position vectors [latitude, longitude], v and w


INTEGER_VECTOR

integer_vector(Vector of Real v) -> Vector of Integer r
STABLE

No description.


IRFFT

irfft(Vector of Real v) -> Vector of Real
STABLE

The inverse real fast Fourier transform (FFT) of vector v


MANHATTAN

manhattan(Array v, Array w) -> Real
STABLE

Manhattan distance between Arrays v and w


manhattan(Vector of Number v, Vector of Number w) -> Number
STABLE

Manhattan distance between vectors v and w


MAX

max(Vector v) -> Object
STABLE

The largest element in vector v


MAXMIN

maxmin(Bag of Vector of Number b) -> Vector of Number
STABLE

Transform to [0, 1]: Subtract min, divide by (max - min)


MAXNORM

maxnorm(Vector of Number v, Vector of Number w) -> Real
STABLE

Maxnorm distance between vectors v and w


MEAN

mean(Vector v) -> Real
STABLE

Average of vector of numbers v


MEANSUB

meansub(Bag of Vector of Number b) -> Vector of Number
STABLE

Transform to N(0, s): Subtract mean(v)


MIN

min(Vector v) -> Object
STABLE

The smallest element in vector v


MINKOWSKI

minkowski(Array a, Array b, Number r) -> Real
STABLE

Minkowski distance of degree r between Arrays a and b


minkowski(Vector of Number v, Vector of Number w, Number r) -> Real
STABLE

Minkowski distance of degree r between vectors v and w


MINUS

minus(Vector v, Vector w) -> Vector of Number r
STABLE

Subtract elements in vectors v and w, v .- w


minus(Vector v, Number lambda) -> Vector of Number
STABLE

Subtract lambda from each element in vector v, v - lambda


minus(Number lambda, Vector w) -> Vector of Number
STABLE

Subtract lambda from each element in vector w, lambda - w


NOT_NULL

not_null(Vector v) -> Boolean
STABLE

Are all elements in vector v not null?


NUMVECTOR

numvector(Vector x) -> Vector of Number
STABLE

Cast x to vector of numbers


ONES

ones(Number dim) -> Vector of Integer
STABLE

Construct vector of dim 1:s


PERMUTE

permute(Vector v, Vector of Integer indl) -> Vector
STABLE

Reorder vector v on index positions in indl


PLUS

plus(Vector v, Vector w) -> Vector of Number r
STABLE

Add elements in vectors v and w, v .+ w


plus(Vector v, Number lambda) -> Vector of Number r
STABLE

Add lambda to each element in vector v, v + lambda


plus(Number lambda, Vector w) -> Vector of Number
STABLE

Add lambda to each element in vector w, lambda + w


REVERSE

reverse(Array of F64 a) -> Array -r
STABLE

Reverse array.

ParameterDescription
aArray to reverse.

Return: Reversed array.


RFFT

rfft(Vector of Real v) -> Vector of Real
STABLE

The real fast Fourier transform (FFT) of vector v


SECTION

section(Vector v, Number l, Number u) -> Vector r
STABLE

The subvector of vector v starting at position p and ending at u


SETF

setf(Vector v, Integer i, Object o) -> Boolean
STABLE

No description.


SKIP

skip(Vector v, Number n) -> Vector
STABLE

Skip first n elements in vector v


SORT

sort(Array a) -> Array
STABLE

Sort the elements in array a


STDEV

stdev(Vector v) -> Real
STABLE

Standard deviation of vector of numbers v


SUM

sum(Vector v) -> Number
STABLE

The sum of the numbers in vector v


TIMES

times(Vector v, Vector w) -> Number
STABLE

Scalar product of vectors v and w, v * W


times(Number lambda, Vector w) -> Vector of Number
STABLE

Multiply lambda with elements in w, lambda * w


times(Vector v, Number lambda) -> Vector of Number
STABLE

Multiply elements in vector v with lambda, v * lambda


TRANSPOSE

transpose(Matrix m) -> Matrix
STABLE

Transpose matrix m


UMINUS

uminus(Vector v) -> Vector of Number
STABLE

Negate numbers in vector v, -v


VDIFF

vdiff(Vector v, Vector w) -> Vector
STABLE

Elements in vector v that are not in vector w


VECTORIZE

vectorize(Bag b) -> Vector v
STABLE

No description.


VECTOR_TO_ARRAY_F64

vector_to_array_f64(Vector v) -> Array of F64
STABLE

No description.


VECTOR_TO_ARRAY_I64

vector_to_array_i64(Vector v) -> Array of I64
STABLE

No description.


VMEAN

vmean(Bag of Vector of Number bv) -> Vector of Number
STABLE

Mean vector for a given bag of vectors bv


VREF

vref(Vector v, Number i) -> Object
STABLE

Value of element i in vector v, same as v[i]


WHENNULL

whennull(Vector v, Object dflt) -> Vector
STABLE

Value 'dflt' for nulls in 'v'


WHENZERO

whenzero(Vector v, Object dflt) -> Vector
STABLE

Value 'dflt' for zeros in 'v'


ZEROS

zeros(Number dim) -> Vector of Integer
STABLE

Construct vector of dim 0:s


ZSCORE

zscore(Bag of Vector of Number b) -> Bag of Vector of Number
STABLE

Transform elements in the vectors in b into normal distributions

centered around zero