|
42 | 42 |
|
43 | 43 | Base.getindex(a::AnyTracedRScalar{T}) where {T} = a
|
44 | 44 |
|
45 |
| -Base.zero(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T, 0}, zero(T)) |
46 |
| -Base.one(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T, 0}, one(T)) |
| 45 | +Base.zero(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T,0}, zero(T)) |
| 46 | +Base.one(::AnyTracedRScalar{T}) where {T} = promote_to(TracedRArray{T,0}, one(T)) |
47 | 47 |
|
48 | 48 | function Base.convert(::Type{<:AnyTracedRScalar{T}}, x::Number) where {T}
|
49 |
| - return promote_to(TracedRArray{T, 0}, T(x)) |
| 49 | + return promote_to(TracedRArray{T,0}, T(x)) |
50 | 50 | end
|
51 | 51 |
|
52 | 52 | function Base.getindex(a::TracedRArray{T,N}, index::Vararg{Int,N}) where {T,N}
|
@@ -522,8 +522,7 @@ for (jlop, hloop, hlocomp, merge) in (
|
522 | 522 | )
|
523 | 523 | @eval begin
|
524 | 524 | function $(jlop)(
|
525 |
| - @nospecialize(lhs::TracedRArray{T,0}), |
526 |
| - @nospecialize(rhs::TracedRArray{T,0}) |
| 525 | + @nospecialize(lhs::TracedRArray{T,0}), @nospecialize(rhs::TracedRArray{T,0}) |
527 | 526 | ) where {T}
|
528 | 527 | return TracedRArray{Bool,0}(
|
529 | 528 | (),
|
|
0 commit comments