Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Dec 13, 2023
1 parent 16daf49 commit 2693dfc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ allocate(A::AbstractFill) = alloctype(A)(parent(A))

set_eltype(T::Type{<:AbstractFill}, elt::Type) = set_parameters(T, Position{1}(), elt)
set_ndims(T::Type{<:AbstractFill}, n) = set_parameters(T, Position{2}(), n)
set_axestype(T::Type{<:AbstractFill}, ax::Type) = set_parameters(T, Position{3}(), ax)
set_axestype(T::Type{<:AbstractFill}, ax::Type) = set_parameters(T, Position{3}(), ax)
6 changes: 4 additions & 2 deletions NDTensors/src/lib/UnallocatedArrays/src/unallocatedfill.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ struct UnallocatedFill{ElT,N,Axes,Alloc} <: AbstractFill{ElT,N,Axes}
f::Fill{ElT,N,Axes}
alloc::Alloc

function UnallocatedFill{ElT,N,Axes}(f::Fill, alloc::Type{<:AbstractArray{ElT, N}}) where {ElT,N,Axes}
return new{ElT, N, Axes, Type{alloc}}(f, alloc)
function UnallocatedFill{ElT,N,Axes}(
f::Fill, alloc::Type{<:AbstractArray{ElT,N}}
) where {ElT,N,Axes}
return new{ElT,N,Axes,Type{alloc}}(f, alloc)
end
end

Expand Down
6 changes: 4 additions & 2 deletions NDTensors/src/lib/UnallocatedArrays/src/unallocatedzeros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ struct UnallocatedZeros{ElT,N,Axes,Alloc} <: AbstractZeros{ElT,N,Axes}
z::Zeros{ElT,N,Axes}
alloc::Alloc

function UnallocatedZeros{ElT,N,Axes}(z::Zeros, alloc::Type{<:AbstractArray{ElT, N}}) where {ElT,N,Axes}
return new{ElT, N, Axes, Type{alloc}}(z, alloc)
function UnallocatedZeros{ElT,N,Axes}(
z::Zeros, alloc::Type{<:AbstractArray{ElT,N}}
) where {ElT,N,Axes}
return new{ElT,N,Axes,Type{alloc}}(z, alloc)
end
end

Expand Down

0 comments on commit 2693dfc

Please sign in to comment.