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

some renames #134

Closed
wants to merge 100 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
3203daa
Remove PowerWeightedMeasure
oschulz Jun 22, 2023
20d4ac4
Remove kernelfactor
oschulz Jun 22, 2023
8178c55
Rename pullback to pullbck and export it
oschulz Jun 22, 2023
d26c04e
Rename bind to mbind and deprecate rightarrowtail
oschulz Jun 22, 2023
35e34b0
Introduce mintegrate and mintegrate_exp
oschulz Jun 22, 2023
36837c2
Remove the rebase function
oschulz Jun 22, 2023
2aac3df
Rename bind to mbind and remove fish operator
oschulz Jun 22, 2023
8a6fd7a
Change field order of Bind and improve docs.
oschulz Jun 23, 2023
18e8b91
Remove operator otimes
oschulz Jun 22, 2023
8dcc28f
Removes PointwiseProductMeasure
oschulz Jun 22, 2023
dd6575b
Remove scrd operator
oschulz Jun 22, 2023
d4e174b
Remove ll-operator
oschulz Jun 22, 2023
289b3b9
Add measure operators in submodule MeasureOperators
oschulz Jun 22, 2023
34ece07
Improve docstring for mbind
oschulz Jun 23, 2023
f357ba0
Improve likelihood docs
oschulz Jun 23, 2023
262c267
Apply JuliaFormatter
oschulz Jun 23, 2023
087cde3
Improve Likelihood ctor
oschulz Jun 23, 2023
d90c5d9
Fix typo in _mintegrate_exp_impl exception
oschulz Jun 29, 2023
6402a90
Add HierarchicalMeasure
oschulz Jun 29, 2023
73b66a6
Rename local_measure, change insupprt handling
oschulz Jun 29, 2023
042882d
Don't require primary in HierarchicalMeasure to have known DOF
oschulz Jun 29, 2023
dd9d55c
STASH
oschulz Jun 29, 2023
9a31b81
STASH
oschulz Jun 29, 2023
8bf135d
STASH
oschulz Jun 29, 2023
b5d8008
STASH mbind
oschulz Jun 29, 2023
1853f41
STASH hierarchical to bind
oschulz Jun 29, 2023
8e02a52
Add function asmeasure
oschulz Jun 29, 2023
e94425a
STASH
oschulz Jun 29, 2023
81812ad
STASH
oschulz Jun 29, 2023
02d29d5
STASH
oschulz Jun 30, 2023
5610732
STASH
oschulz Jun 30, 2023
3c8ff18
STASH
oschulz Jun 30, 2023
7d279fe
STASH _to_mvstd _to_mvstd
oschulz Jun 30, 2023
7e2f161
STASH
oschulz Jun 30, 2023
672e65d
STASH FIXUP
oschulz Jun 30, 2023
5adcfda
STASH
oschulz Jun 30, 2023
5e623ba
STASH
oschulz Jun 30, 2023
c6cf136
STASH
oschulz Jun 30, 2023
11f82e7
STASH
oschulz Jun 30, 2023
b673a4a
STASH
oschulz Jul 1, 2023
9ca0705
STASH
oschulz Jul 1, 2023
c1f72b7
STASH
oschulz Jul 1, 2023
9074ee5
Remove remnants of pointwiseproduct
oschulz Jul 1, 2023
cb98f62
STASH
oschulz Jul 1, 2023
45516cf
STASH
oschulz Jul 1, 2023
8941f08
STASH
oschulz Jul 1, 2023
3b79495
STASH fast_dof
oschulz Jul 1, 2023
9efd5e2
STASH
oschulz Jul 1, 2023
86bb83f
STASH
oschulz Jul 1, 2023
32a0c2f
STASH
oschulz Jul 1, 2023
5454e15
STASH
oschulz Jul 1, 2023
a7f4bb3
STASH
oschulz Jul 1, 2023
e242378
STASH
oschulz Jul 1, 2023
296ed3c
Add StaticArrays to deps
oschulz Jul 1, 2023
d4ce4bd
STASH
oschulz Jul 1, 2023
bccd23c
STASH
oschulz Jul 1, 2023
cd9c8d9
STASH FIXES
oschulz Jul 1, 2023
aae1243
STASH
oschulz Jul 2, 2023
15093b6
STASH
oschulz Jul 2, 2023
075692b
STASH FIXES
oschulz Jul 2, 2023
ddfddd6
STASH FIXES
oschulz Jul 2, 2023
3492969
FIXES
oschulz Jul 2, 2023
4db328d
FIXUP StaticArrays dep
oschulz Jul 2, 2023
0af5e90
FIXES
oschulz Jul 2, 2023
4e13c5b
FIXUP
oschulz Jul 2, 2023
8375909
STASH
oschulz Jul 2, 2023
2d3c053
STASH
oschulz Jul 2, 2023
bb8364f
FIXES
oschulz Jul 2, 2023
936f0fe
FIXES
oschulz Jul 2, 2023
b56078f
Add ArraysOfArrays to deps
oschulz Jul 2, 2023
81883f0
STASH FIXES
oschulz Jul 2, 2023
b12c900
STASH FIXES
oschulz Jul 2, 2023
8ae82e8
STASH
oschulz Jul 2, 2023
76ded42
STASH
oschulz Jul 2, 2023
e4b1d57
STASH
oschulz Jul 4, 2023
d13af6f
STASH
oschulz Jul 4, 2023
d46ee10
STASH
oschulz Jul 4, 2023
d788ebf
STASH
oschulz Jul 4, 2023
b4c27ab
STASH pwr rand incomplete
oschulz Jul 4, 2023
657897e
STASH rand
oschulz Jul 4, 2023
b7149df
STASH FIXES
oschulz Jul 4, 2023
35f1d42
Specialize pushfwd and pullbck for DensityMeasure
oschulz Jul 16, 2023
13957b3
Add OneTwoMany to deps
oschulz Jul 16, 2023
3a77a05
STASH furtther specialize bind and combined
oschulz Jul 16, 2023
8dad17e
STASH smart ctors, canonical measure nesting
oschulz Jul 16, 2023
9025853
STASH Change pushfwd/pullback specialialization for DensityMeasure
oschulz Jul 17, 2023
422c25e
STASH Allow single-arg mbind and friends
oschulz Jul 17, 2023
ddf29a8
Checking insupport in PushforwardMeasure would be to expensive
oschulz Jul 17, 2023
aee71f3
comment out duplicate
cscherrer Aug 29, 2023
3cabe16
fix typo
cscherrer Aug 29, 2023
f6bdde3
drop 2-argument `basemeasure`
cscherrer Aug 29, 2023
f710fcc
bugfixes
cscherrer Aug 29, 2023
c3eb8dd
comment out questionable code
cscherrer Aug 29, 2023
a4a30e9
oops my mistake
cscherrer Aug 29, 2023
b0fc926
depend on ConstantRNGs.jl
cscherrer Sep 1, 2023
a03f5ee
fix typo
cscherrer Sep 5, 2023
36800a8
drop `fixedrng.jl` (using ConstantRNGs.jl instead)
cscherrer Sep 6, 2023
e3fce81
Optimize product measures when `Base.issingltetontype`
cscherrer Sep 6, 2023
d7242db
small change to make JET happy
cscherrer Sep 6, 2023
4cd87bb
some renames
cscherrer Sep 6, 2023
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
8 changes: 8 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ authors = ["Chad Scherrer <chad.scherrer@gmail.com> and contributors"]
version = "0.14.7"

[deps]
ArraysOfArrays = "65a8f2f4-9b39-5baf-92e2-a9cc46fdf018"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ChangesOfVariables = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
ConstantRNGs = "aa9b60e7-6b1c-4c29-a6e5-e43521412437"
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
Expand All @@ -20,19 +22,23 @@ LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
LogarithmicNumbers = "aa2f6b4e-9042-5d33-9679-40d3a6b85899"
MappedArrays = "dbb5928d-eab1-5f90-85c2-b9b0edb7c900"
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
OneTwoMany = "762dc654-8631-413a-a342-372a7419ad9d"
PrettyPrinting = "54e16d92-306c-5ea0-a30b-337be88ac337"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"

[compat]
ArraysOfArrays = "0.6"
ChainRulesCore = "1"
ChangesOfVariables = "0.1.3"
Compat = "3.35, 4"
ConstantRNGs = "0.1"
ConstructionBase = "1.3"
DensityInterface = "0.4"
FillArrays = "0.12, 0.13, 1"
Expand All @@ -45,9 +51,11 @@ LogExpFunctions = "0.3"
LogarithmicNumbers = "1"
MappedArrays = "0.4"
NaNMath = "0.3, 1"
OneTwoMany = "0.1"
PrettyPrinting = "0.3, 0.4"
Reexport = "1"
SpecialFunctions = "2"
Static = "0.8"
StaticArrays = "1.5"
Tricks = "0.1"
julia = "1.3"
126 changes: 0 additions & 126 deletions ambiguity-fixes.jl.txt

This file was deleted.

61 changes: 41 additions & 20 deletions src/MeasureBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Random: gentype
using Statistics
using LinearAlgebra

using ConstantRNGs
import IntervalSets
# This seems harder than it should be to get `IntervalSets.:(..)`
@eval (using IntervalSets: $(Symbol(IntervalSets.:(..))))
Expand All @@ -27,30 +28,32 @@ import Base.iterate
import ConstructionBase
using ConstructionBase: constructorof
using IntervalSets
using OneTwoMany: getsecond

using PrettyPrinting
const Pretty = PrettyPrinting

using ArraysOfArrays

using ChainRulesCore
import FillArrays
using Static
using Static: StaticInteger
using FunctionChains

export ≪
import StaticArrays
using StaticArrays: StaticArray, StaticVector, StaticMatrix, SArray, SVector, SMatrix

export gentype
export rebase

export AbstractMeasure

import IfElse: ifelse
export logdensity_def
export basemeasure
export basekernel
export productmeasure

export insupport
export getdof
export transport_to

include("insupport.jl")
Expand All @@ -59,6 +62,21 @@ abstract type AbstractMeasure end

AbstractMeasure(m::AbstractMeasure) = m


"""
asmeasure(m)

Turns a measure-like object `m` into an `AbstractMeasure`.

Calls `convert(AbstractMeasure, m)` by default
"""
function asmeasure end

@inline asmeasure(m::AbstractMeasure) = m
asmeasure(m) = convert(AbstractMeasure, m)
export asmeasure


function Pretty.quoteof(d::M) where {M<:AbstractMeasure}
the_names = fieldnames(typeof(d))
:($M($([getfield(d, n) for n in the_names]...)))
Expand Down Expand Up @@ -108,54 +126,57 @@ using Compat
using IrrationalConstants

include("static.jl")
include("collection_utils.jl")
include("smf.jl")
include("getdof.jl")
include("transport.jl")
include("schema.jl")
include("splat.jl")
include("proxies.jl")
include("kernel.jl")
include("parameterized.jl")
include("domains.jl")
include("primitive.jl")
include("utils.jl")
include("mass-interface.jl")
include("density.jl")
include("density-core.jl")

include("proxies.jl")
# include("absolutecontinuity.jl")

include("primitives/counting.jl")
include("primitives/lebesgue.jl")
include("primitives/dirac.jl")
include("primitives/trivial.jl")

include("combinators/bind.jl")
include("standard/stdmeasure.jl")
include("standard/stduniform.jl")
include("standard/stdexponential.jl")
include("standard/stdlogistic.jl")
include("standard/stdnormal.jl")

include("combinators/abstract_product.jl")
include("combinators/power.jl")
include("combinators/product.jl")
include("combinators/product_transport.jl")
include("combinators/transformedmeasure.jl")
include("combinators/weighted.jl")
include("combinators/superpose.jl")
include("combinators/product.jl")
include("combinators/power.jl")
include("combinators/combined.jl")
include("combinators/bind.jl")
include("combinators/spikemixture.jl")
include("combinators/likelihood.jl")
include("combinators/pointwise.jl")
include("combinators/restricted.jl")
include("combinators/smart-constructors.jl")
include("combinators/powerweighted.jl")
include("combinators/conditional.jl")

include("standard/stdmeasure.jl")
include("standard/stduniform.jl")
include("standard/stdexponential.jl")
include("standard/stdlogistic.jl")
include("standard/stdnormal.jl")
include("combinators/half.jl")

include("rand.jl")
include("fixedrng.jl")

include("density.jl")
include("density-core.jl")

include("interface.jl")

include("measure_operators.jl")

using .Interface

end # module MeasureBase
3 changes: 3 additions & 0 deletions src/absolutecontinuity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@
# representative(μ) ≪ representative(ν) && return true
# return false
# end

# ≪(::M, ::WeightedMeasure{R,M}) where {R,M} = true
# ≪(::WeightedMeasure{R,M}, ::M) where {R,M} = true
Loading
Loading