Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Oct 23, 2023
1 parent c9fb989 commit e0e3652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions NDTensors/src/UnallocatedArrays/src/import.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
import FillArrays:
axes,
convert,
getindex_value,
size,
sum
import FillArrays: axes, convert, getindex_value, size, sum
6 changes: 3 additions & 3 deletions NDTensors/src/UnallocatedArrays/src/unallocated_impl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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))
function copy(F::UnallocatedFill)
return UnallocatedFill{eltype(F),ndims(F),axes(F),alloctype(F)}(data(F)[1], size(F))
end

0 comments on commit e0e3652

Please sign in to comment.