From e0e365276a329ff017d8b2f093e2014b10c2f006 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Mon, 23 Oct 2023 16:18:56 -0400 Subject: [PATCH] format --- NDTensors/src/UnallocatedArrays/src/import.jl | 7 +------ NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/NDTensors/src/UnallocatedArrays/src/import.jl b/NDTensors/src/UnallocatedArrays/src/import.jl index ce278dadaf..2f39355bc6 100644 --- a/NDTensors/src/UnallocatedArrays/src/import.jl +++ b/NDTensors/src/UnallocatedArrays/src/import.jl @@ -1,6 +1 @@ -import FillArrays: - axes, - convert, - getindex_value, - size, - sum \ No newline at end of file +import FillArrays: axes, convert, getindex_value, size, sum diff --git a/NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl b/NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl index daad254420..cab9eb1298 100644 --- a/NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl +++ b/NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl @@ -12,7 +12,6 @@ for Typ in (:UnallocatedFill, :UnallocatedZeros) ## A function for NDTensors to launch functions off of is_immutable(A::$Typ) = is_immutable(typeof(A)) is_immutable(::Type{<:$Typ}) = true - end ## TODO I don't think this is the correct way to call ## functions which are defined in `FillArrays` @@ -23,7 +22,8 @@ for Typ in (:UnallocatedFill, :UnallocatedZeros) for fun in (:norm,) @eval LinearAlgebra.$fun(A::$Typ) = $fun(data(A)) end - end -copy(F::UnallocatedFill) = UnallocatedFill{eltype(F), ndims(F), axes(F), alloctype(F)}(data(F)[1], size(F)) \ No newline at end of file +function copy(F::UnallocatedFill) + return UnallocatedFill{eltype(F),ndims(F),axes(F),alloctype(F)}(data(F)[1], size(F)) +end