Skip to main content

Tensor

The Tensor library for Aleph.

Deprecation Warning

This is a staging ground for multidimensional arrays. This module will eventually be integrated in the Linear Algebra module.

Factories

NameDescription
delta_tensorgenerate a delta-array of Complex with the specified shape. The delta array is one if all indices have the same value, zero otherwise.
filled_tensorgenerate an array of Complex values filled with a constant value and the specified shape
random_tensorGenerate a random array of Complex values with the specified shape.
uninitialized_tensorgenerate an array of uninitialized Complex values with the specified shape
zero_tensorgenerate an array of Complex values filled with zeros and the specified shape

Types

NameDescription
ComplexTensorComplexTensor constructor. A multidimensionnal array of Complex, up to 5 dimensions.
RealTensorRealTensor constructor. A multidimensionnal array of Real, up to 5 dimensions.

Module Functions

NameDescription
stringConvert a Complex tensor to its string representation.

Module Symbols

NameDescription
*Element-wise multiplication of Complex tensors or tensor-scalar multiplication.
+Element-wise addition of Real tensors or tensor-scalar addition.
-Element-wise subtraction of Complex tensors or tensor-scalar subtraction.
/Element-wise division of Real tensors or tensor-scalar division.