update
This commit is contained in:
88
src/type.jl
Normal file
88
src/type.jl
Normal 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
|
||||
Reference in New Issue
Block a user