22# general tensor implementation with arbitrary symmetries
33#= =========================================================#
44"""
5- struct TensorMap{T, S<: IndexSpace, N₁, N₂, A<: DenseVector{T}} <: AbstractTensorMap{T, S, N₁, N₂}
5+ struct TensorMap{T <: Number , S <: IndexSpace, N₁, N₂, A <: DenseVector{T}} <: AbstractTensorMap{T, S, N₁, N₂}
66
77Specific subtype of [`AbstractTensorMap`](@ref) for representing tensor maps (morphisms in
88a tensor category), where the data is stored in a dense vector.
99"""
10- struct TensorMap{T, S <: IndexSpace , N₁, N₂, A <: DenseVector{T} } <: AbstractTensorMap{T, S, N₁, N₂}
10+ struct TensorMap{T <: Number , S <: IndexSpace , N₁, N₂, A <: DenseVector{T} } <: AbstractTensorMap{T, S, N₁, N₂}
1111 data:: A
1212 space:: TensorMapSpace{S, N₁, N₂}
1313
@@ -20,15 +20,15 @@ struct TensorMap{T, S <: IndexSpace, N₁, N₂, A <: DenseVector{T}} <: Abstrac
2020end
2121
2222"""
23- Tensor{T, S, N, A<: DenseVector{T}} = TensorMap{T, S, N, 0, A}
23+ Tensor{T <: Number , S <: IndexSpace , N, A <: DenseVector{T}} = TensorMap{T, S, N, 0, A}
2424
2525Specific subtype of [`AbstractTensor`](@ref) for representing tensors whose data is stored
2626in a dense vector.
2727
2828A `Tensor{T, S, N, A}` is actually a special case `TensorMap{T, S, N, 0, A}`,
2929i.e. a tensor map with only a non-trivial output space.
3030"""
31- const Tensor{T, S, N, A} = TensorMap{T, S, N, 0 , A}
31+ const Tensor{T <: Number , S <: IndexSpace , N, A <: DenseVector{T} } = TensorMap{T, S, N, 0 , A}
3232
3333# Utility functions:
3434# ------------------
0 commit comments