Package org.tensorics.core.tensor
This package contains the base classes for tensoric elements. There are in general two aspects taken into account by
this hierarchy:
- Deferrence: A tensoric can either be a real object containing data or it can be 'deferred', meaning that is simply a placeholder for the real object, which will be determined later.
- Tensoric base types: The base type for all real data-holding objects is the Tensor. A special version of it is a scalar, which has zero dimensions (order, rank). A special treatment is sometimes required for the elements of the tensors themselves: These can be java objects of any type. However, if calculations have to be performed by them, than a mathematical environment is required for them.
-
Interface Summary Interface Description Mappable<V> Allows its implementors to provide a method to view the tensor as a map from position to values.MappableTensor<V> Enhances the tensor interface by a method to view the tensor as a map from position to values.Scalar<V> The specialization of a tensor with zero dimensions and exactly one value.Tensor<E> The top interface forTensor
like objects.TensorBuilder<V> The interface any builder of a tensor have to implement.Tensoric<V> The most generic interface of a multidimensional object within tensorics.TensorView<V> Marks a tensor, which is a view on one or more other tensor(s).VerificationCallback<S> A callback that can be passed to a builder so that it can check any new scalar added if it is conform to certain criteria. -
Class Summary Class Description AbstractScalar<V> A base class for scalars, that already guarantees the shape and the correct delegation of the get() methods to the value method.AbstractTensor<V> Provides sceletal behaviour of tensors.AbstractTensorBuilder<V> BroadcastedTensorView<V> Lets a tensors appear as a tensor with a bigger shape.Coordinates Utility methods to handle coordinatesImmutableScalar<V> An immutable implementation of a scalar (a tensor with zero dimensions and exactly one value).ImmutableTensor<V> Default Implementation ofTensor
.ImmutableTensor.Builder<V> A builder for an immutable tensor.Position Defines the position of a value within a tensor in the N-dimensional coordinate space.PositionPair A pair of positions, usually representing a position in the left tensor of an operation and its corresponding position in the right tensor.Positions Contains utility methods for position objects.Positions.DimensionStripper A functional object to transform positions to other positions with the dimensions stripped as given in the constructor.Shape Defines the shape of a tensor.Shape.Builder The builder for a tensor shape.Shapes Contains utility methods to deal with tensor shapes.TensorPair<V> A pair of tensors which are used together in several occasions.