Skip to content

Commit

Permalink
Merge pull request #84 from acfr/licence_comment
Browse files Browse the repository at this point in the history
License file reference in all source files
  • Loading branch information
nic-barbara authored Jun 8, 2023
2 parents 556b465 + 310f2af commit 29365bb
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Documenter
using RobustNeuralNetworks

Expand Down
2 changes: 2 additions & 0 deletions examples/src/contracting_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("../")
Expand Down
2 changes: 2 additions & 0 deletions examples/src/echo_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("../")
Expand Down
2 changes: 2 additions & 0 deletions examples/src/lbdn_curvefit.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("../")
Expand Down
2 changes: 2 additions & 0 deletions examples/src/lbdn_mnist.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("../")
Expand Down
2 changes: 2 additions & 0 deletions examples/src/lbdn_rl.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("..")
Expand Down
2 changes: 2 additions & 0 deletions examples/src/ren_pde_obsv.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

cd(@__DIR__)
using Pkg
Pkg.activate("..")
Expand Down
2 changes: 2 additions & 0 deletions src/Base/acyclic_ren_solver.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

"""
solve_tril_layer(ϕ, W::Matrix, b::VecOrMat)
Expand Down
2 changes: 2 additions & 0 deletions src/Base/lbdn_params.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

"""
mutable struct ExplicitLBDNParams{T, N, M}
Expand Down
2 changes: 2 additions & 0 deletions src/Base/ren_params.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

@doc raw"""
mutable struct ExplicitRENParams{T}
Expand Down
2 changes: 2 additions & 0 deletions src/Base/utils.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

"""
glorot_normal(n::Int, m::Int; T=Float64, rng=Random.GLOBAL_RNG)
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/contracting_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct ContractingRENParams{T} <: AbstractRENParams{T}
nl::Function # Sector-bounded nonlinearity
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/dense_lbdn.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct DenseLBDNParams{T} <: AbstractLBDNParams{T}
nl::Function # Sector-bounded nonlinearity
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/general_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct GeneralRENParams{T} <: AbstractRENParams{T}
nl::Function # Sector-bounded nonlinearity
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/lipschitz_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct LipschitzRENParams{T} <: AbstractRENParams{T}
nl::Function # Sector-bounded nonlinearity
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/passive_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct PassiveRENParams{T} <: AbstractRENParams{T}
nl::Function # Sector-bounded nonlinearity
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/ParameterTypes/utils.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

"""
direct_to_explicit(ps::AbstractRENParams{T}, return_h=false) where T
Expand Down
2 changes: 2 additions & 0 deletions src/RobustNeuralNetworks.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

module RobustNeuralNetworks

############ Package dependencies ############
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/LBDN/diff_lbdn.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct DiffLBDN{T} <: AbstractLBDN{T}
nl::Function
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/LBDN/lbdn.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct LBDN{T} <: AbstractLBDN{T}
nl::Function
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/LBDN/sandwich_fc.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct SandwichFC{F, T, D, B}
σ ::F
XY::AbstractMatrix{T} # [X; Y] in the paper
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/REN/diff_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct DiffREN{T} <: AbstractREN{T}
nl::Function
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/REN/ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct REN{T} <: AbstractREN{T}
nl::Function
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions src/Wrappers/REN/wrap_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

mutable struct WrapREN{T} <: AbstractREN{T}
nl::Function
nu::Int
Expand Down
2 changes: 2 additions & 0 deletions test/ParameterTypes/contraction.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Random
using RobustNeuralNetworks
using Test
Expand Down
2 changes: 2 additions & 0 deletions test/ParameterTypes/dense_lbdn.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Random
using RobustNeuralNetworks
using Test
Expand Down
2 changes: 2 additions & 0 deletions test/ParameterTypes/general_behavioural_constrains.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using LinearAlgebra
using Random
using RobustNeuralNetworks
Expand Down
2 changes: 2 additions & 0 deletions test/ParameterTypes/lipschitz_bound.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Random
using RobustNeuralNetworks
using Test
Expand Down
2 changes: 2 additions & 0 deletions test/ParameterTypes/passivity.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using LinearAlgebra
using Random
using RobustNeuralNetworks
Expand Down
2 changes: 2 additions & 0 deletions test/Wrappers/diff_lbdn.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Flux
using Random
using RobustNeuralNetworks
Expand Down
2 changes: 2 additions & 0 deletions test/Wrappers/diff_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using Flux
using Random
using RobustNeuralNetworks
Expand Down
2 changes: 2 additions & 0 deletions test/Wrappers/wrap_ren.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using LinearAlgebra
using Random
using RobustNeuralNetworks
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

using RobustNeuralNetworks
using Test

Expand Down
2 changes: 2 additions & 0 deletions test/test_utils.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is a part of RobustNeuralNetworks.jl. License is MIT: https://github.com/acfr/RobustNeuralNetworks.jl/blob/main/LICENSE

"""
Compute P for any REN
"""
Expand Down

0 comments on commit 29365bb

Please sign in to comment.