Skip to content

Instantly share code, notes, and snippets.

View mforets's full-sized avatar
🏠
Working from home

Marcelo Forets mforets

🏠
Working from home
View GitHub Profile
@mforets
mforets / TaylorModels_Daisy_Results.md
Created June 22, 2019 19:39
TaylorModels.jl daisy benchmarks

Benchmark Report for TaylorModels

Job Properties

  • Time of benchmark: 22 Jun 2019 - 16:36
  • Package commit: dirty
  • Julia commit: 980eda
  • Julia command flags: None
  • Environment variables: None

Results

@mforets
mforets / xps.md
Last active March 16, 2020 12:25
Windows commands
@mforets
mforets / TM_to_Zonotope.jl
Created December 5, 2019 18:41
Convert TM to zonotop
using LazySets, TaylorModels
import IntervalArithmetic
const IA = IntervalArithmetic
const zeroI = IA.Interval(0.0) # [0.0, 0.0]
const oneI = IA.Interval(1.0) # [1.0, 1.0]
const symI = IA.Interval(-1.0, 1.0)
@inline zeroBox(m) = IntervalBox(zeroI, m)
@inline symBox(m) = IntervalBox(symI, m)
@mforets
mforets / system_macro.jl
Last active December 20, 2019 12:48
System macro
# originally from @ueliwechsler
# ------------------------------------
# this file should be loaded into `MathematicalSystems/src/macros.jl`
using MacroTools # for the @capture macro
using InteractiveUtils # for subtypes
export @system
@mforets
mforets / CONFLIST_2020.md
Last active October 27, 2020 16:51
CONFLIST_2020
@mforets
mforets / modelingtoolkit_examples.md
Last active January 20, 2020 19:20
ModelingToolkit.jl Examples

Expression substitution

# suggested on Slack (20/01/2020)

using ModelingToolkit
using MacroTools: postwalk

function replace(ex::ModelingToolkit.Expression, ps::Pair...)
@mforets
mforets / sympower_imatrix.jl
Last active February 6, 2020 14:42
Symbolic interval matrix power
# =====================================
# Version using MacroTools + SymEngine
# =====================================
using IntervalMatrices
using SymEngine
using MacroTools: postwalk
subidx(i) = join(Char.(0x2080 .+ convert.(UInt16, digits(i)[end:-1:1])))
@mforets
mforets / neuralverif_lazysets.jl
Created February 4, 2020 16:56
Test NeuralVerification on LazySets#master
(v1.2) pkg> test NeuralVerification
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Testing NeuralVerification
Resolving package versions...
Status `/tmp/jl_Wfxs1N/Manifest.toml`
[621f4979] AbstractFFTs v0.5.0
[1520ce14] AbstractTrees v0.3.1
[79e6a3ab] Adapt v1.0.0