Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License file reference in all source files #84

Merged
merged 1 commit into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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