Annex v0.2.0 Annex.Data.DMatrix View Source
A 2D Matrix Annex.Data that uses the Tensor library as the underlying data structure.
For the purpose of Dense Matrices it seems to be slower than a flat list or a list of lists.
Link to this section Summary
Link to this section Types
Link to this type
columns()
View Source
columns()
View Source
columns() :: pos_integer()
columns() :: pos_integer()
Link to this type
op()
View Source
op()
View Source
op() :: :dot | :add | :subtract | :multiply
op() :: :dot | :add | :subtract | :multiply
Link to this type
rows()
View Source
rows()
View Source
rows() :: pos_integer()
rows() :: pos_integer()
Link to this type
t()
View Source
t()
View Source
t() :: %Annex.Data.DMatrix{tensor: tensor()}
t() :: %Annex.Data.DMatrix{tensor: tensor()}
Link to this type
tensor()
View Source
tensor()
View Source
tensor() :: any()
tensor() :: any()
Link to this section Functions
Link to this function
add(d, n) View Source
Link to this function
build(data)
View Source
build(data)
View Source
build([float(), ...] | [[float(), ...], ...]) :: Annex.Data.DMatrix.t()
build([float(), ...] | [[float(), ...], ...]) :: Annex.Data.DMatrix.t()
Link to this function
build(data, rows, columns)
View Source
build(data, rows, columns)
View Source
build([float(), ...], non_neg_integer(), pos_integer()) :: t()
build([float(), ...], non_neg_integer(), pos_integer()) :: t()
Link to this function
dot(left, right) View Source
Link to this function
map(d, fun) View Source
Link to this function
multiply(d, n) View Source
Link to this function
new_random(rows, columns) View Source
Link to this function
ones(rows, columns)
View Source
ones(rows, columns)
View Source
ones(non_neg_integer(), non_neg_integer()) :: t()
ones(non_neg_integer(), non_neg_integer()) :: t()
Link to this function
subtract(left, right) View Source
Link to this function
tensor(d_matrix) View Source
Link to this function
to_list_of_lists(dmatrix) View Source
Link to this function
transpose(d) View Source
Link to this function
zeros(rows, columns)
View Source
zeros(rows, columns)
View Source
zeros(non_neg_integer(), non_neg_integer()) :: t()
zeros(non_neg_integer(), non_neg_integer()) :: t()