This commit is contained in:
ton
2023-07-05 11:19:20 +07:00
parent 4709e18f2d
commit 89e0e6aae9
8 changed files with 1249 additions and 1 deletions

88
src/type.jl Normal file
View File

@@ -0,0 +1,88 @@
module type
# export
using CUDA
#------------------------------------------------------------------------------------------------100
abstract type Ironpen end
abstract type knowledgeFn <: Ironpen end
rng = MersenneTwister(1234)
#------------------------------------------------------------------------------------------------100
Base.@kwdef mutable struct kfn <: knowledgeFn
params::Dict = Dict() # store params of knowledgeFn itself for later use
timeStep::AbstractArray = [0]
refractory::Union{AbstractArray, Nothing} = nothing
z_i_t::Union{AbstractArray, Nothing} = nothing
z_t2::Union{AbstractArray, Nothing} = nothing
z_t1::Union{AbstractArray, Nothing} = nothing
end
end # module