Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Remove ugly extra parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing authored Jul 17, 2023
1 parent 907d2e8 commit e7cd1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Numerics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract(a::Union{T,AbstractArray{T,0}}, b::Tensor{T}) where {T} = contract(Tens
contract(a::Tensor{T}, b::Union{T,AbstractArray{T,0}}) where {T} = contract(a, Tensor(b))
contract(a::AbstractArray{<:Any,0}, b::AbstractArray{<:Any,0}) = contract(Tensor(a), Tensor(b)) |> only
contract(a::Number, b::Number) = contract(fill(a), fill(b))
contract(tensors::Tensor...; kwargs...) = reduce(((x, y) -> contract(x, y; kwargs...)), tensors)
contract(tensors::Tensor...; kwargs...) = reduce((x, y) -> contract(x, y; kwargs...), tensors)

"""
*(::Tensor, ::Tensor)
Expand Down

0 comments on commit e7cd1dc

Please sign in to comment.