- TrainSum.tensortrain(shape: TrainShape, data: Callable[[NDArray], NDArray], start_idxs: NDArray | None = None, /) TensorTrain[NDArray]
- TrainSum.tensortrain(shape: TrainShape, data: Sequence[NDArray], /) TensorTrain[NDArray]
- TrainSum.tensortrain(shape: TrainShape, data: NDArray, /) TensorTrain[NDArray]
Construct generic quantics tensor trains from some provided data. If data is a function the tensor train will be constructed by a cross interpolation (cross context manager). If it is a tensor it will be decomposed (einsum context manager). A sequence of tensors are interpreted as the cores of the tensor train.
- Parameters:
shape (TrainShape)
data (NDArray | Sequence | Callable[[NDArray], NDArray])
start_idxs (NDArray | None)
- Return type: