prophet-rb 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +28 -0
  5. data/data-raw/LICENSE-holidays.txt +20 -0
  6. data/data-raw/README.md +3 -0
  7. data/data-raw/generated_holidays.csv +29302 -61443
  8. data/lib/prophet/forecaster.rb +190 -0
  9. data/lib/prophet/version.rb +1 -1
  10. data/lib/prophet.rb +4 -0
  11. data/stan/{unix/prophet.stan → prophet.stan} +8 -7
  12. data/vendor/aarch64-linux/bin/prophet +0 -0
  13. data/vendor/aarch64-linux/lib/libtbb.so.2 +0 -0
  14. data/vendor/aarch64-linux/lib/libtbbmalloc.so.2 +0 -0
  15. data/vendor/aarch64-linux/lib/libtbbmalloc_proxy.so.2 +0 -0
  16. data/vendor/aarch64-linux/licenses/sundials-license.txt +25 -63
  17. data/vendor/aarch64-linux/licenses/sundials-notice.txt +21 -0
  18. data/vendor/arm64-darwin/bin/prophet +0 -0
  19. data/vendor/arm64-darwin/lib/libtbb.dylib +0 -0
  20. data/vendor/arm64-darwin/lib/libtbbmalloc.dylib +0 -0
  21. data/vendor/arm64-darwin/licenses/sundials-license.txt +25 -63
  22. data/vendor/arm64-darwin/licenses/sundials-notice.txt +21 -0
  23. data/vendor/x86_64-darwin/bin/prophet +0 -0
  24. data/vendor/x86_64-darwin/lib/libtbb.dylib +0 -0
  25. data/vendor/x86_64-darwin/lib/libtbbmalloc.dylib +0 -0
  26. data/vendor/x86_64-darwin/licenses/sundials-license.txt +25 -63
  27. data/vendor/x86_64-darwin/licenses/sundials-notice.txt +21 -0
  28. data/vendor/x86_64-linux/bin/prophet +0 -0
  29. data/vendor/x86_64-linux/lib/libtbb.so.2 +0 -0
  30. data/vendor/x86_64-linux/lib/libtbbmalloc.so.2 +0 -0
  31. data/vendor/x86_64-linux/lib/libtbbmalloc_proxy.so.2 +0 -0
  32. data/vendor/x86_64-linux/licenses/sundials-license.txt +25 -63
  33. data/vendor/x86_64-linux/licenses/sundials-notice.txt +21 -0
  34. metadata +9 -4
  35. data/stan/win/prophet.stan +0 -175
@@ -971,6 +971,12 @@ module Prophet
971
971
  Rover::DataFrame.new({"ds" => dates})
972
972
  end
973
973
 
974
+ def to_json
975
+ require "json"
976
+
977
+ JSON.generate(as_json)
978
+ end
979
+
974
980
  private
975
981
 
976
982
  # Time is preferred over DateTime in Ruby docs
@@ -1017,5 +1023,189 @@ module Prophet
1017
1023
  u = Numo::DFloat.new(size).rand(-0.5, 0.5)
1018
1024
  loc - scale * u.sign * Numo::NMath.log(1 - 2 * u.abs)
1019
1025
  end
1026
+
1027
+ SIMPLE_ATTRIBUTES = [
1028
+ "growth", "n_changepoints", "specified_changepoints", "changepoint_range",
1029
+ "yearly_seasonality", "weekly_seasonality", "daily_seasonality",
1030
+ "seasonality_mode", "seasonality_prior_scale", "changepoint_prior_scale",
1031
+ "holidays_prior_scale", "mcmc_samples", "interval_width", "uncertainty_samples",
1032
+ "y_scale", "logistic_floor", "country_holidays", "component_modes"
1033
+ ]
1034
+
1035
+ PD_SERIES = ["changepoints", "history_dates", "train_holiday_names"]
1036
+
1037
+ PD_TIMESTAMP = ["start"]
1038
+
1039
+ PD_TIMEDELTA = ["t_scale"]
1040
+
1041
+ PD_DATAFRAME = ["holidays", "history", "train_component_cols"]
1042
+
1043
+ NP_ARRAY = ["changepoints_t"]
1044
+
1045
+ ORDEREDDICT = ["seasonalities", "extra_regressors"]
1046
+
1047
+ def as_json
1048
+ if @history.nil?
1049
+ raise Error, "This can only be used to serialize models that have already been fit."
1050
+ end
1051
+
1052
+ model_dict =
1053
+ SIMPLE_ATTRIBUTES.to_h do |attribute|
1054
+ [attribute, instance_variable_get("@#{attribute}")]
1055
+ end
1056
+
1057
+ # Handle attributes of non-core types
1058
+ PD_SERIES.each do |attribute|
1059
+ if instance_variable_get("@#{attribute}").nil?
1060
+ model_dict[attribute] = nil
1061
+ else
1062
+ v = instance_variable_get("@#{attribute}")
1063
+ d = {
1064
+ "name" => "ds",
1065
+ "index" => v.size.times.to_a,
1066
+ "data" => v.to_a.map { |v| v.iso8601(3) }
1067
+ }
1068
+ model_dict[attribute] = JSON.generate(d)
1069
+ end
1070
+ end
1071
+ PD_TIMESTAMP.each do |attribute|
1072
+ model_dict[attribute] = instance_variable_get("@#{attribute}").to_f
1073
+ end
1074
+ PD_TIMEDELTA.each do |attribute|
1075
+ model_dict[attribute] = instance_variable_get("@#{attribute}").to_f
1076
+ end
1077
+ PD_DATAFRAME.each do |attribute|
1078
+ if instance_variable_get("@#{attribute}").nil?
1079
+ model_dict[attribute] = nil
1080
+ else
1081
+ # use same format as Pandas
1082
+ v = instance_variable_get("@#{attribute}")
1083
+
1084
+ v = v.dup
1085
+ v["ds"] = v["ds"].map { |v| v.iso8601(3) } if v["ds"]
1086
+ v.delete("col")
1087
+
1088
+ fields =
1089
+ v.types.map do |k, t|
1090
+ type =
1091
+ case t
1092
+ when :object
1093
+ "datetime"
1094
+ when :int64
1095
+ "integer"
1096
+ else
1097
+ "number"
1098
+ end
1099
+ {"name" => k, "type" => type}
1100
+ end
1101
+
1102
+ d = {
1103
+ "schema" => {
1104
+ "fields" => fields,
1105
+ "pandas_version" => "0.20.0"
1106
+ },
1107
+ "data" => v.to_a
1108
+ }
1109
+ model_dict[attribute] = JSON.generate(d)
1110
+ end
1111
+ end
1112
+ NP_ARRAY.each do |attribute|
1113
+ model_dict[attribute] = instance_variable_get("@#{attribute}").to_a
1114
+ end
1115
+ ORDEREDDICT.each do |attribute|
1116
+ model_dict[attribute] = [
1117
+ instance_variable_get("@#{attribute}").keys,
1118
+ instance_variable_get("@#{attribute}").transform_keys(&:to_s)
1119
+ ]
1120
+ end
1121
+ # Other attributes with special handling
1122
+ # fit_kwargs -> Transform any numpy types before serializing.
1123
+ # They do not need to be transformed back on deserializing.
1124
+ # TODO deep copy
1125
+ fit_kwargs = @fit_kwargs.to_h { |k, v| [k.to_s, v.dup] }
1126
+ if fit_kwargs.key?("init")
1127
+ fit_kwargs["init"].each do |k, v|
1128
+ if v.is_a?(Numo::NArray)
1129
+ fit_kwargs["init"][k] = v.to_a
1130
+ # elsif v.is_a?(Float)
1131
+ # fit_kwargs["init"][k] = v.to_f
1132
+ end
1133
+ end
1134
+ end
1135
+ model_dict["fit_kwargs"] = fit_kwargs
1136
+
1137
+ # Params (Dict[str, np.ndarray])
1138
+ model_dict["params"] = params.transform_values(&:to_a)
1139
+ # Attributes that are skipped: stan_fit, stan_backend
1140
+ # Returns 1.0 for Prophet 1.1
1141
+ model_dict["__prophet_version"] = "1.0"
1142
+ model_dict
1143
+ end
1144
+
1145
+ def self.from_json(model_json)
1146
+ require "json"
1147
+
1148
+ model_dict = JSON.parse(model_json)
1149
+
1150
+ # We will overwrite all attributes set in init anyway
1151
+ model = Prophet.new
1152
+ # Simple types
1153
+ SIMPLE_ATTRIBUTES.each do |attribute|
1154
+ model.instance_variable_set("@#{attribute}", model_dict.fetch(attribute))
1155
+ end
1156
+ PD_SERIES.each do |attribute|
1157
+ if model_dict[attribute].nil?
1158
+ model.instance_variable_set("@#{attribute}", nil)
1159
+ else
1160
+ d = JSON.parse(model_dict.fetch(attribute))
1161
+ s = Rover::Vector.new(d["data"])
1162
+ if d["name"] == "ds"
1163
+ s = s.map { |v| Time.parse(v).utc }
1164
+ end
1165
+ model.instance_variable_set("@#{attribute}", s)
1166
+ end
1167
+ end
1168
+ PD_TIMESTAMP.each do |attribute|
1169
+ model.instance_variable_set("@#{attribute}", Time.at(model_dict.fetch(attribute)))
1170
+ end
1171
+ PD_TIMEDELTA.each do |attribute|
1172
+ model.instance_variable_set("@#{attribute}", model_dict.fetch(attribute).to_f)
1173
+ end
1174
+ PD_DATAFRAME.each do |attribute|
1175
+ if model_dict[attribute].nil?
1176
+ model.instance_variable_set("@#{attribute}", nil)
1177
+ else
1178
+ d = JSON.parse(model_dict.fetch(attribute))
1179
+ df = Rover::DataFrame.new(d["data"])
1180
+ df["ds"] = df["ds"].map { |v| Time.parse(v).utc } if df["ds"]
1181
+ if attribute == "train_component_cols"
1182
+ # Special handling because of named index column
1183
+ # df.columns.name = 'component'
1184
+ # df.index.name = 'col'
1185
+ end
1186
+ model.instance_variable_set("@#{attribute}", df)
1187
+ end
1188
+ end
1189
+ NP_ARRAY.each do |attribute|
1190
+ model.instance_variable_set("@#{attribute}", Numo::NArray.cast(model_dict.fetch(attribute)))
1191
+ end
1192
+ ORDEREDDICT.each do |attribute|
1193
+ key_list, unordered_dict = model_dict.fetch(attribute)
1194
+ od = {}
1195
+ key_list.each do |key|
1196
+ od[key] = unordered_dict[key].transform_keys(&:to_sym)
1197
+ end
1198
+ model.instance_variable_set("@#{attribute}", od)
1199
+ end
1200
+ # Other attributes with special handling
1201
+ # fit_kwargs
1202
+ model.instance_variable_set(:@fit_kwargs, model_dict["fit_kwargs"].transform_keys(&:to_sym))
1203
+ # Params (Dict[str, np.ndarray])
1204
+ model.instance_variable_set(:@params, model_dict["params"].transform_values { |v| Numo::NArray.cast(v) })
1205
+ # Skipped attributes
1206
+ # model.stan_backend = nil
1207
+ model.instance_variable_set(:@stan_fit, nil)
1208
+ model
1209
+ end
1020
1210
  end
1021
1211
  end
@@ -1,3 +1,3 @@
1
1
  module Prophet
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/prophet.rb CHANGED
@@ -104,4 +104,8 @@ module Prophet
104
104
  # filter df["ds"] to ensure dates/times in same format as input
105
105
  df["ds"][(df["y"] < forecast["yhat_lower"]) | (df["y"] > forecast["yhat_upper"])].to_a
106
106
  end
107
+
108
+ def self.from_json(model_json)
109
+ Forecaster.from_json(model_json)
110
+ end
107
111
  end
@@ -101,8 +101,9 @@ data {
101
101
  }
102
102
 
103
103
  transformed data {
104
- matrix[T, S] A;
105
- A = get_changepoint_matrix(t, t_change, T, S);
104
+ matrix[T, S] A = get_changepoint_matrix(t, t_change, T, S);
105
+ matrix[T, K] X_sa = X .* rep_matrix(s_a', T);
106
+ matrix[T, K] X_sm = X .* rep_matrix(s_m', T);
106
107
  }
107
108
 
108
109
  parameters {
@@ -133,10 +134,10 @@ model {
133
134
  beta ~ normal(0, sigmas);
134
135
 
135
136
  // Likelihood
136
- y ~ normal(
137
- trend
138
- .* (1 + X * (beta .* s_m))
139
- + X * (beta .* s_a),
140
- sigma_obs
137
+ y ~ normal_id_glm(
138
+ X_sa,
139
+ trend .* (1 + X_sm * beta),
140
+ beta,
141
+ sigma_obs
141
142
  );
142
143
  }
Binary file
Binary file
@@ -1,67 +1,29 @@
1
- Copyright (c) 2002-2016, Lawrence Livermore National Security.
2
- Produced at the Lawrence Livermore National Laboratory.
3
- Written by A.C. Hindmarsh, D.R. Reynolds, R. Serban, C.S. Woodward,
4
- S.D. Cohen, A.G. Taylor, S. Peles, L.E. Banks, and D. Shumaker.
5
- LLNL-CODE-667205 (ARKODE)
6
- UCRL-CODE-155951 (CVODE)
7
- UCRL-CODE-155950 (CVODES)
8
- UCRL-CODE-155952 (IDA)
9
- UCRL-CODE-237203 (IDAS)
10
- LLNL-CODE-665877 (KINSOL)
11
- All rights reserved.
1
+ BSD 3-Clause License
12
2
 
13
- This file is part of SUNDIALS. For details,
14
- see http://computation.llnl.gov/projects/sundials
3
+ Copyright (c) 2002-2022, Lawrence Livermore National Security and Southern Methodist University.
4
+ All rights reserved.
15
5
 
16
6
  Redistribution and use in source and binary forms, with or without
17
- modification, are permitted provided that the following conditions
18
- are met:
19
-
20
- 1. Redistributions of source code must retain the above copyright
21
- notice, this list of conditions and the disclaimer below.
22
-
23
- 2. Redistributions in binary form must reproduce the above copyright
24
- notice, this list of conditions and the disclaimer (as noted below)
25
- in the documentation and/or other materials provided with the
26
- distribution.
27
-
28
- 3. Neither the name of the LLNS/LLNL nor the names of its contributors
29
- may be used to endorse or promote products derived from this software
30
- without specific prior written permission.
31
-
32
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
35
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
36
- LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF
37
- ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
38
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
39
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43
29
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
-
45
- Additional BSD Notice
46
- ---------------------
47
- 1. This notice is required to be provided under our contract with
48
- the U.S. Department of Energy (DOE). This work was produced at
49
- Lawrence Livermore National Laboratory under Contract
50
- No. DE-AC52-07NA27344 with the DOE.
51
-
52
- 2. Neither the United States Government nor Lawrence Livermore
53
- National Security, LLC nor any of their employees, makes any warranty,
54
- express or implied, or assumes any liability or responsibility for the
55
- accuracy, completeness, or usefulness of any information, apparatus,
56
- product, or process disclosed, or represents that its use would not
57
- infringe privately-owned rights.
58
-
59
- 3. Also, reference herein to any specific commercial products, process,
60
- or services by trade name, trademark, manufacturer or otherwise does
61
- not necessarily constitute or imply its endorsement, recommendation,
62
- or favoring by the United States Government or Lawrence Livermore
63
- National Security, LLC. The views and opinions of authors expressed
64
- herein do not necessarily state or reflect those of the United States
65
- Government or Lawrence Livermore National Security, LLC, and shall
66
- not be used for advertising or product endorsement purposes.
67
-
@@ -0,0 +1,21 @@
1
+ This work was produced under the auspices of the U.S. Department of
2
+ Energy by Lawrence Livermore National Laboratory under Contract
3
+ DE-AC52-07NA27344.
4
+
5
+ This work was prepared as an account of work sponsored by an agency of
6
+ the United States Government. Neither the United States Government nor
7
+ Lawrence Livermore National Security, LLC, nor any of their employees
8
+ makes any warranty, expressed or implied, or assumes any legal liability
9
+ or responsibility for the accuracy, completeness, or usefulness of any
10
+ information, apparatus, product, or process disclosed, or represents that
11
+ its use would not infringe privately owned rights.
12
+
13
+ Reference herein to any specific commercial product, process, or service
14
+ by trade name, trademark, manufacturer, or otherwise does not necessarily
15
+ constitute or imply its endorsement, recommendation, or favoring by the
16
+ United States Government or Lawrence Livermore National Security, LLC.
17
+
18
+ The views and opinions of authors expressed herein do not necessarily
19
+ state or reflect those of the United States Government or Lawrence
20
+ Livermore National Security, LLC, and shall not be used for advertising
21
+ or product endorsement purposes.
Binary file
Binary file
@@ -1,67 +1,29 @@
1
- Copyright (c) 2002-2016, Lawrence Livermore National Security.
2
- Produced at the Lawrence Livermore National Laboratory.
3
- Written by A.C. Hindmarsh, D.R. Reynolds, R. Serban, C.S. Woodward,
4
- S.D. Cohen, A.G. Taylor, S. Peles, L.E. Banks, and D. Shumaker.
5
- LLNL-CODE-667205 (ARKODE)
6
- UCRL-CODE-155951 (CVODE)
7
- UCRL-CODE-155950 (CVODES)
8
- UCRL-CODE-155952 (IDA)
9
- UCRL-CODE-237203 (IDAS)
10
- LLNL-CODE-665877 (KINSOL)
11
- All rights reserved.
1
+ BSD 3-Clause License
12
2
 
13
- This file is part of SUNDIALS. For details,
14
- see http://computation.llnl.gov/projects/sundials
3
+ Copyright (c) 2002-2022, Lawrence Livermore National Security and Southern Methodist University.
4
+ All rights reserved.
15
5
 
16
6
  Redistribution and use in source and binary forms, with or without
17
- modification, are permitted provided that the following conditions
18
- are met:
19
-
20
- 1. Redistributions of source code must retain the above copyright
21
- notice, this list of conditions and the disclaimer below.
22
-
23
- 2. Redistributions in binary form must reproduce the above copyright
24
- notice, this list of conditions and the disclaimer (as noted below)
25
- in the documentation and/or other materials provided with the
26
- distribution.
27
-
28
- 3. Neither the name of the LLNS/LLNL nor the names of its contributors
29
- may be used to endorse or promote products derived from this software
30
- without specific prior written permission.
31
-
32
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
35
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
36
- LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF
37
- ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
38
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
39
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43
29
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
-
45
- Additional BSD Notice
46
- ---------------------
47
- 1. This notice is required to be provided under our contract with
48
- the U.S. Department of Energy (DOE). This work was produced at
49
- Lawrence Livermore National Laboratory under Contract
50
- No. DE-AC52-07NA27344 with the DOE.
51
-
52
- 2. Neither the United States Government nor Lawrence Livermore
53
- National Security, LLC nor any of their employees, makes any warranty,
54
- express or implied, or assumes any liability or responsibility for the
55
- accuracy, completeness, or usefulness of any information, apparatus,
56
- product, or process disclosed, or represents that its use would not
57
- infringe privately-owned rights.
58
-
59
- 3. Also, reference herein to any specific commercial products, process,
60
- or services by trade name, trademark, manufacturer or otherwise does
61
- not necessarily constitute or imply its endorsement, recommendation,
62
- or favoring by the United States Government or Lawrence Livermore
63
- National Security, LLC. The views and opinions of authors expressed
64
- herein do not necessarily state or reflect those of the United States
65
- Government or Lawrence Livermore National Security, LLC, and shall
66
- not be used for advertising or product endorsement purposes.
67
-
@@ -0,0 +1,21 @@
1
+ This work was produced under the auspices of the U.S. Department of
2
+ Energy by Lawrence Livermore National Laboratory under Contract
3
+ DE-AC52-07NA27344.
4
+
5
+ This work was prepared as an account of work sponsored by an agency of
6
+ the United States Government. Neither the United States Government nor
7
+ Lawrence Livermore National Security, LLC, nor any of their employees
8
+ makes any warranty, expressed or implied, or assumes any legal liability
9
+ or responsibility for the accuracy, completeness, or usefulness of any
10
+ information, apparatus, product, or process disclosed, or represents that
11
+ its use would not infringe privately owned rights.
12
+
13
+ Reference herein to any specific commercial product, process, or service
14
+ by trade name, trademark, manufacturer, or otherwise does not necessarily
15
+ constitute or imply its endorsement, recommendation, or favoring by the
16
+ United States Government or Lawrence Livermore National Security, LLC.
17
+
18
+ The views and opinions of authors expressed herein do not necessarily
19
+ state or reflect those of the United States Government or Lawrence
20
+ Livermore National Security, LLC, and shall not be used for advertising
21
+ or product endorsement purposes.
Binary file
Binary file
@@ -1,67 +1,29 @@
1
- Copyright (c) 2002-2016, Lawrence Livermore National Security.
2
- Produced at the Lawrence Livermore National Laboratory.
3
- Written by A.C. Hindmarsh, D.R. Reynolds, R. Serban, C.S. Woodward,
4
- S.D. Cohen, A.G. Taylor, S. Peles, L.E. Banks, and D. Shumaker.
5
- LLNL-CODE-667205 (ARKODE)
6
- UCRL-CODE-155951 (CVODE)
7
- UCRL-CODE-155950 (CVODES)
8
- UCRL-CODE-155952 (IDA)
9
- UCRL-CODE-237203 (IDAS)
10
- LLNL-CODE-665877 (KINSOL)
11
- All rights reserved.
1
+ BSD 3-Clause License
12
2
 
13
- This file is part of SUNDIALS. For details,
14
- see http://computation.llnl.gov/projects/sundials
3
+ Copyright (c) 2002-2022, Lawrence Livermore National Security and Southern Methodist University.
4
+ All rights reserved.
15
5
 
16
6
  Redistribution and use in source and binary forms, with or without
17
- modification, are permitted provided that the following conditions
18
- are met:
19
-
20
- 1. Redistributions of source code must retain the above copyright
21
- notice, this list of conditions and the disclaimer below.
22
-
23
- 2. Redistributions in binary form must reproduce the above copyright
24
- notice, this list of conditions and the disclaimer (as noted below)
25
- in the documentation and/or other materials provided with the
26
- distribution.
27
-
28
- 3. Neither the name of the LLNS/LLNL nor the names of its contributors
29
- may be used to endorse or promote products derived from this software
30
- without specific prior written permission.
31
-
32
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
35
- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
36
- LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF
37
- ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
38
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
39
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
43
29
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
44
-
45
- Additional BSD Notice
46
- ---------------------
47
- 1. This notice is required to be provided under our contract with
48
- the U.S. Department of Energy (DOE). This work was produced at
49
- Lawrence Livermore National Laboratory under Contract
50
- No. DE-AC52-07NA27344 with the DOE.
51
-
52
- 2. Neither the United States Government nor Lawrence Livermore
53
- National Security, LLC nor any of their employees, makes any warranty,
54
- express or implied, or assumes any liability or responsibility for the
55
- accuracy, completeness, or usefulness of any information, apparatus,
56
- product, or process disclosed, or represents that its use would not
57
- infringe privately-owned rights.
58
-
59
- 3. Also, reference herein to any specific commercial products, process,
60
- or services by trade name, trademark, manufacturer or otherwise does
61
- not necessarily constitute or imply its endorsement, recommendation,
62
- or favoring by the United States Government or Lawrence Livermore
63
- National Security, LLC. The views and opinions of authors expressed
64
- herein do not necessarily state or reflect those of the United States
65
- Government or Lawrence Livermore National Security, LLC, and shall
66
- not be used for advertising or product endorsement purposes.
67
-
@@ -0,0 +1,21 @@
1
+ This work was produced under the auspices of the U.S. Department of
2
+ Energy by Lawrence Livermore National Laboratory under Contract
3
+ DE-AC52-07NA27344.
4
+
5
+ This work was prepared as an account of work sponsored by an agency of
6
+ the United States Government. Neither the United States Government nor
7
+ Lawrence Livermore National Security, LLC, nor any of their employees
8
+ makes any warranty, expressed or implied, or assumes any legal liability
9
+ or responsibility for the accuracy, completeness, or usefulness of any
10
+ information, apparatus, product, or process disclosed, or represents that
11
+ its use would not infringe privately owned rights.
12
+
13
+ Reference herein to any specific commercial product, process, or service
14
+ by trade name, trademark, manufacturer, or otherwise does not necessarily
15
+ constitute or imply its endorsement, recommendation, or favoring by the
16
+ United States Government or Lawrence Livermore National Security, LLC.
17
+
18
+ The views and opinions of authors expressed herein do not necessarily
19
+ state or reflect those of the United States Government or Lawrence
20
+ Livermore National Security, LLC, and shall not be used for advertising
21
+ or product endorsement purposes.
Binary file
Binary file