diff --git a/classTensor-members.html b/classTensor-members.html index db46d8f..2eb6bcc 100644 --- a/classTensor-members.html +++ b/classTensor-members.html @@ -68,32 +68,37 @@
This is the complete list of members for Tensor, including all inherited members.
backward() const | Tensor | |
cumsum(int dim) const | Tensor | |
device(NTdtypes::deviceType device) | Tensor | |
dType(NTdtypes::scalarType type) (defined in Tensor) | Tensor | |
getTensorLibrary() | Tensor | static |
imag() const | Tensor | |
matmul(const Tensor &t1, const Tensor &t2) | Tensor | static |
matmul_(const Tensor &t2) | Tensor | |
ones(int length, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
ones(const std::vector< long int > &shape, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
operator!=(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator+(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator-(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator-() const (defined in Tensor) | Tensor | |
operator<<(std::ostream &stream, const Tensor &tensor) | Tensor | friend |
operator==(const Tensor &rhs) const (defined in Tensor) | Tensor | |
real() const | Tensor | |
scale(float s, const Tensor &t) | Tensor | static |
scale(std::complex< float > s, const Tensor &t) | Tensor | static |
grad() const | Tensor | |
imag() const | Tensor | |
matmul(const Tensor &t1, const Tensor &t2) | Tensor | static |
matmul_(const Tensor &t2) | Tensor | |
ones(int length, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
ones(const std::vector< long int > &shape, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
operator!=(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator+(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator-(const Tensor &rhs) const (defined in Tensor) | Tensor | |
operator-() const (defined in Tensor) | Tensor | |
operator<<(std::ostream &stream, const Tensor &tensor) | Tensor | friend |
operator==(const Tensor &rhs) const (defined in Tensor) | Tensor | |
real() const | Tensor | |
requiresGrad(bool reqGrad) | Tensor | |
scale(float s, const Tensor &t) | Tensor | static |
scale(std::complex< float > s, const Tensor &t) | Tensor | static |
scale_(float s) | Tensor | |
scale_(std::complex< float > s) | Tensor | |
setValue(const Tensor &indices, const Tensor &value) | Tensor | |
setValue(const std::vector< int > &indices, const Tensor &value) (defined in Tensor) | Tensor | |
setValue(const std::vector< int > &indices, float value) (defined in Tensor) | Tensor | |
setValue(const std::vector< int > &indices, std::complex< float > value) (defined in Tensor) | Tensor | |
toString() const | Tensor | |
zeros(int length, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
zeros(const std::vector< long int > &shape, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
sum() const | Tensor | |
toString() const | Tensor | |
zeros(int length, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor | |
zeros(const std::vector< long int > &shape, NTdtypes::scalarType type, NTdtypes::deviceType device=NTdtypes::kCPU, bool requiresGrad=true) | Tensor |
Use these methods to initialise the tensor
mathematical function overrides, generally work as expected, unless otherwise noted
Static Public Member Functions | |
static Tensor | matmul (const Tensor &t1, const Tensor &t2) |
Multiply two matrices together. More... | |
static Tensor | scale (float s, const Tensor &t) |
Scale a matrix by some scalar. More... | |
static Tensor | scale (std::complex< float > s, const Tensor &t) |
Scale a matrix by some complex scalar. More... | |
static Tensor | scale (float s, const Tensor &t) |
Scale a matrix by some scalar. More... | |
static Tensor | scale (std::complex< float > s, const Tensor &t) |
Scale a matrix by some complex scalar. More... | |
Basic tensor class.
@@ -191,6 +211,32 @@will get you a 3x3 tensor of floats that lives on the GPU. This is equivalent to
Tensor Tensor::cumsum | +( | +int | +dim | ) | +const | +
Get the result of summing this tensor over some dimension.
+dim | The dimension to sum over |
static Tensor Tensor::scale | +Tensor Tensor::scale | ( | float | s, | @@ -390,8 +436,8 @@
static Tensor Tensor::scale | +Tensor Tensor::scale | ( | std::complex< float > | s, | diff --git a/functions.html b/functions.html index 2897488..ca7e0e5 100644 --- a/functions.html +++ b/functions.html @@ -62,12 +62,21 @@