From fd0866e063effc829533adbf7bbdb233511c3711 Mon Sep 17 00:00:00 2001 From: Karl Pierce Date: Sat, 22 Jun 2024 19:43:39 +0200 Subject: [PATCH] rename folder --- NDTensors/ext/NDTensorsJLArraysExt/NDTensorsJLArraysExt.jl | 3 +++ NDTensors/ext/NDTensorsJLArraysExt/set_types.jl | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 NDTensors/ext/NDTensorsJLArraysExt/NDTensorsJLArraysExt.jl create mode 100644 NDTensors/ext/NDTensorsJLArraysExt/set_types.jl diff --git a/NDTensors/ext/NDTensorsJLArraysExt/NDTensorsJLArraysExt.jl b/NDTensors/ext/NDTensorsJLArraysExt/NDTensorsJLArraysExt.jl new file mode 100644 index 0000000000..ad71cae66b --- /dev/null +++ b/NDTensors/ext/NDTensorsJLArraysExt/NDTensorsJLArraysExt.jl @@ -0,0 +1,3 @@ +module NDTensorsJLArraysExt +include("set_types.jl") +end diff --git a/NDTensors/ext/NDTensorsJLArraysExt/set_types.jl b/NDTensors/ext/NDTensorsJLArraysExt/set_types.jl new file mode 100644 index 0000000000..b47a06ca76 --- /dev/null +++ b/NDTensors/ext/NDTensorsJLArraysExt/set_types.jl @@ -0,0 +1,7 @@ +# TypeParameterAccessors definitions +using NDTensors.TypeParameterAccessors: TypeParameterAccessors, Position +using JLArrays: JLArray + +function TypeParameterAccessors.default_type_parameters(::Type{<:JLArray}) + return (Float64, 1) +end