Extensor.Matrex (Extensor v2.3.2)

Optional Matrex integration

Link to this section Summary

Functions

Convert from an Tensor struct to a Matrex matrix

Convert a Matrex matrix to a tensor struct

Link to this section Functions

Link to this function

from_tensor(tensor)

Specs

from_tensor(tensor :: Extensor.Tensor.t()) :: Matrex.t()

Convert from an Tensor struct to a Matrex matrix

Currently, this only works for two dimensional tensors and the type must be :float.

Link to this function

to_tensor(matrex)

Specs

to_tensor(matrix :: Matrex.t()) :: Extensor.Tensor.t()

Convert a Matrex matrix to a tensor struct