Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
70bcc86
Removed unecessary use of pow that causes NaN gradient values.
austinschneider Oct 18, 2018
d4e8748
No need for SAY variants.
austinschneider Feb 4, 2019
bc660e6
PowerPrior
austinschneider Feb 17, 2019
7c2bc41
setSeed for likelihood
austinschneider Feb 17, 2019
60f222a
Fix typo
austinschneider Feb 21, 2019
594fc9d
Fixed 2dguassian
austinschneider Mar 8, 2019
7d9e132
PowerPrior should work for power==0 and x==0.
austinschneider Mar 15, 2019
dbe1c0c
Future proofing for newer compilers.
austinschneider Jan 17, 2020
d6984a0
Add uncertainty modification
austinschneider Jan 24, 2021
2060904
added Gaussian arbitrary-dimensional prior
BenSmithers Jun 23, 2022
9ef0732
added reference output for gaussian nd prior
BenSmithers Jun 23, 2022
10f9663
moved ublas alias into likelihood namespace
BenSmithers Jun 23, 2022
51683cb
made the ublas objects shared_ptrs, all private
BenSmithers Jun 23, 2022
92acd60
Merge pull request #2 from icecube/smithers/gaussian_nd
BenSmithers Jun 30, 2022
1e87f1c
updated likelihood file
alexwenym Oct 10, 2024
83c4784
Fixed bug in compilation by putting LDFLAGS at the end
lhennig Dec 3, 2024
e8b2087
Merge pull request #1 from alexwenym/compile-in-docker
alexwenym Dec 3, 2024
b548353
Merge pull request #3 from alexwenym/master
alexwenym May 19, 2025
55aa0a4
fixed missing header
arguelles May 28, 2025
090b06f
fixed issues with exception handling to be compatible with apple silicon
arguelles May 28, 2025
cc1fc9e
made the library c++17 compatible
arguelles May 28, 2025
23d13e0
Create README.md
arguelles Jun 6, 2025
5aea98e
Update README.md
arguelles Jun 6, 2025
170b42e
Update README.md
arguelles Jun 6, 2025
91d9bb6
Update configure
alexwenym Jun 17, 2025
07d833a
add .pc file
alexwenym Jun 20, 2025
0fd7dfc
makefile update
alexwenym Jun 20, 2025
8ce44a7
fix configure
alexwenym Jun 20, 2025
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
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ all: $(STAT_PRODUCT) $(DYN_PRODUCT)

$(DYN_PRODUCT) : $(OBJS)
@echo Linking $(DYN_PRODUCT)
@$(CXX) $(LDFLAGS) $(DYN_OPT) -shared $(OBJS) -o $(DYN_PRODUCT)
@$(CXX) $(DYN_OPT) -shared $(OBJS) -o $(DYN_PRODUCT) $(LDFLAGS)
$(STAT_PRODUCT) : $(OBJS)
@echo Linking $(STAT_PRODUCT)
@$(AR) -rcs $(STAT_PRODUCT) $(OBJS)
Expand Down Expand Up @@ -77,6 +77,7 @@ install :
cp $(LBFGSB_HEADERS) $(PREFIX)/include/$(NAME)/lbfgsb/
mkdir -p $(PREFIX)/include/$(NAME)/likelihood
cp $(LIKELIHOOD_HEADERS) $(PREFIX)/include/$(NAME)/likelihood/
cp $(BASEDIR)/phystools.pc $(PREFIX)/lib/pkgconfig/

docs : doxygen

Expand Down
10 changes: 6 additions & 4 deletions PhysTools/autodiff.h
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,9 @@ namespace autodiff{
T te(e);
result.v=pow(b.v,te);
const unsigned int n=detail::dimensionExtractor<FD,FD_t::N,typename FD_t::BaseType>::nVars(result);
T scale = std::pow(b.v, te - T(1)) * e;
std::transform(result.g,result.g+n,result.g,
std::bind2nd(std::multiplies<T>(),pow(b.v,te-T(1))*e));
[scale](T x) {return x*scale;});
return(result);
}

Expand All @@ -807,8 +808,9 @@ namespace autodiff{
T tb(b);
result.v=pow(tb,e.v);
const unsigned int n=detail::dimensionExtractor<FD,FD_t::N,typename FD_t::BaseType>::nVars(result);
T scale = result.v*std::log(tb);
std::transform(result.g,result.g+n,result.g,
std::bind2nd(std::multiplies<T>(),result.v*log(tb)));
[scale](T x) {return x*scale;});
return(result);
}

Expand Down Expand Up @@ -1074,7 +1076,7 @@ namespace autodiff{
result.v=-result.v;
const unsigned int n=detail::dimensionExtractor<FD,nVars,T>::nVars(result);
std::transform(result.g,result.g+n,result.g,
std::bind2nd(std::multiplies<T>(),T(-1)));
[](T x) {return -x;});
}
return(result);
}
Expand All @@ -1088,7 +1090,7 @@ namespace autodiff{
result.v=-result.v;
const unsigned int n=detail::dimensionExtractor<FD,nVars,T>::nVars(result);
std::transform(result.g,result.g+n,result.g,
std::bind2nd(std::multiplies<T>(),T(-1)));
[](T x) {return -x;});
}
return(result);
}
Expand Down
1 change: 1 addition & 0 deletions PhysTools/bin_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#ifndef PHYSTOOLS_BIN_TYPES_H
#define PHYSTOOLS_BIN_TYPES_H

#include <boost/serialization/split_member.hpp>
#include "PhysTools/hdf5_serialization.h"
#include "PhysTools/histogram.h"

Expand Down
4 changes: 2 additions & 2 deletions PhysTools/dynamic_histogram.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class histogram<Dynamic,StoreType> : public histogramBase<Dynamic,StoreType,unsi
}

///Get the internal coordinates within the histogram (bin indices) to which this iterator refers
const internalCoordinate* (&getCoordinates() const){
const internalCoordinate* const (&getCoordinates() const){
return(coordinates);
}
///Get the internal coordinate in dimension dim within the histogram (bin index) to which this iterator refers
Expand Down Expand Up @@ -762,7 +762,7 @@ class histogram<Dynamic,StoreType> : public histogramBase<Dynamic,StoreType,unsi
}

///Get the internal coordinates within the histogram (bin indices) to which this iterator refers
const internalCoordinate* (&getCoordinates() const){
const internalCoordinate* const (&getCoordinates() const){
return(coordinates);
}
///Get the internal coordinate in dimension dim within the histogram (bin index) to which this iterator refers
Expand Down
Loading