dnum.utils

Undocumented in source.

Members

Aliases

DFunc
alias DFunc = double delegate(double, double)
Undocumented in source.
Func
alias Func = double delegate(double)
Undocumented in source.

Functions

cbind
Tensor cbind(Tensor t1, Tensor t2)

Column Bind (Like R Syntax)

cbind
Tensor cbind(Tensor[] t)

Generic cbind

col
Tensor col(Tensor t, ulong i)

Extract Column

currying
Func currying(DFunc f, double x)

Currying

isCol
bool isCol(Tensor t)

Check Single Column

isRow
bool isRow(Tensor t)

Check Single Row

isSingle
bool isSingle(Tensor t)

Check Single

rand
Tensor rand(int n, Shape byRow)

rand - random tensor with uniform dist (0, 1)

rand
Tensor rand(int n, Range r, Shape byRow)

rand - D version

rand
Tensor rand(int m, int n)

rand tensor version

rand
Tensor rand(Size s, Range r)

rand tensor version - D version

rbind
Tensor rbind(Tensor t1, Tensor t2)

Row Bind (Like R Syntax)

rbind
Tensor rbind(Tensor[] t)

Generic rbind

row
Tensor row(Tensor t, ulong i)

Extract Row

runif
Tensor runif(int n, double a, double b, Shape byRow)

runif - generate uniform random seq

runif
Tensor runif(int n, Range r, Shape byRow)

runif - D version

seq
Tensor seq(int start, int end, int step)

Create Single Tensor

take
Tensor take(Tensor t, int n)

take - take the number of components of tensor

takeWhile
Tensor takeWhile(Tensor t, bool delegate(double) f)

takeWhile

vectorize
auto vectorize(double delegate(double) f)

Vectorize Function

zipWith
Tensor zipWith(double delegate(double, double) op, Tensor t1, Tensor t2)

zipWith - zip two Tensor with operation to one tensor

Meta