2 """ |
2 """ |
3 pygments.lexers._stan_builtins |
3 pygments.lexers._stan_builtins |
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
5 |
5 |
6 This file contains the names of functions for Stan used by |
6 This file contains the names of functions for Stan used by |
7 ``pygments.lexers.math.StanLexer. |
7 ``pygments.lexers.math.StanLexer. This is for Stan language version 2.4.0. |
8 |
8 |
9 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. |
9 :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. |
10 :license: BSD, see LICENSE for details. |
10 :license: BSD, see LICENSE for details. |
11 """ |
11 """ |
12 |
12 |
13 from __future__ import unicode_literals |
13 KEYWORDS = ( |
14 |
14 'else', |
15 CONSTANTS=[ 'e', |
15 'for', |
16 'epsilon', |
16 'if', |
17 'log10', |
17 'in', |
18 'log2', |
18 'increment_log_prob', |
19 'negative_epsilon', |
19 'lp__', |
20 'negative_infinity', |
20 'print', |
21 'not_a_number', |
21 'return', |
22 'pi', |
22 'while', |
23 'positive_infinity', |
23 ) |
24 'sqrt2'] |
24 |
25 |
25 TYPES = ( |
26 FUNCTIONS=[ 'Phi', |
26 'cholesky_factor_corr', |
|
27 'cholesky_factor_cov', |
|
28 'corr_matrix', |
|
29 'cov_matrix', |
|
30 'int', |
|
31 'matrix', |
|
32 'ordered', |
|
33 'positive_ordered', |
|
34 'real', |
|
35 'row_vector', |
|
36 'simplex', |
|
37 'unit_vector', |
|
38 'vector', |
|
39 'void', |
|
40 ) |
|
41 |
|
42 FUNCTIONS = ( |
|
43 'Phi', |
|
44 'Phi_approx', |
27 'abs', |
45 'abs', |
28 'acos', |
46 'acos', |
29 'acosh', |
47 'acosh', |
30 'asin', |
48 'asin', |
31 'asinh', |
49 'asinh', |
32 'atan', |
50 'atan', |
33 'atan2', |
51 'atan2', |
34 'atanh', |
52 'atanh', |
|
53 'bernoulli_ccdf_log', |
|
54 'bernoulli_cdf', |
|
55 'bernoulli_cdf_log', |
35 'bernoulli_log', |
56 'bernoulli_log', |
|
57 'bernoulli_logit_log', |
|
58 'bernoulli_rng', |
|
59 'bessel_first_kind', |
|
60 'bessel_second_kind', |
|
61 'beta_binomial_ccdf_log', |
|
62 'beta_binomial_cdf', |
|
63 'beta_binomial_cdf_log', |
36 'beta_binomial_log', |
64 'beta_binomial_log', |
|
65 'beta_binomial_rng', |
|
66 'beta_ccdf_log', |
|
67 'beta_cdf', |
|
68 'beta_cdf_log', |
37 'beta_log', |
69 'beta_log', |
|
70 'beta_rng', |
38 'binary_log_loss', |
71 'binary_log_loss', |
|
72 'binomial_ccdf_log', |
|
73 'binomial_cdf', |
|
74 'binomial_cdf_log', |
39 'binomial_coefficient_log', |
75 'binomial_coefficient_log', |
|
76 'binomial_log', |
|
77 'binomial_logit_log', |
|
78 'binomial_rng', |
|
79 'block', |
40 'categorical_log', |
80 'categorical_log', |
|
81 'categorical_logit_log', |
|
82 'categorical_rng', |
|
83 'cauchy_ccdf_log', |
|
84 'cauchy_cdf', |
|
85 'cauchy_cdf_log', |
41 'cauchy_log', |
86 'cauchy_log', |
|
87 'cauchy_rng', |
42 'cbrt', |
88 'cbrt', |
43 'ceil', |
89 'ceil', |
|
90 'chi_square_ccdf_log', |
|
91 'chi_square_cdf', |
|
92 'chi_square_cdf_log', |
44 'chi_square_log', |
93 'chi_square_log', |
|
94 'chi_square_rng', |
45 'cholesky_decompose', |
95 'cholesky_decompose', |
46 'col', |
96 'col', |
47 'cols', |
97 'cols', |
|
98 'columns_dot_product', |
|
99 'columns_dot_self', |
48 'cos', |
100 'cos', |
49 'cosh', |
101 'cosh', |
|
102 'crossprod', |
|
103 'cumulative_sum', |
50 'determinant', |
104 'determinant', |
51 'diag_matrix', |
105 'diag_matrix', |
|
106 'diag_post_multiply', |
|
107 'diag_pre_multiply', |
52 'diagonal', |
108 'diagonal', |
|
109 'digamma', |
|
110 'dims', |
53 'dirichlet_log', |
111 'dirichlet_log', |
|
112 'dirichlet_rng', |
|
113 'distance', |
54 'dot_product', |
114 'dot_product', |
55 'dot_self', |
115 'dot_self', |
|
116 'double_exponential_ccdf_log', |
|
117 'double_exponential_cdf', |
|
118 'double_exponential_cdf_log', |
56 'double_exponential_log', |
119 'double_exponential_log', |
57 'eigenvalues', |
120 'double_exponential_rng', |
|
121 'e', |
58 'eigenvalues_sym', |
122 'eigenvalues_sym', |
|
123 'eigenvectors_sym', |
59 'erf', |
124 'erf', |
60 'erfc', |
125 'erfc', |
61 'exp', |
126 'exp', |
62 'exp2', |
127 'exp2', |
|
128 'exp_mod_normal_ccdf_log', |
|
129 'exp_mod_normal_cdf', |
|
130 'exp_mod_normal_cdf_log', |
|
131 'exp_mod_normal_log', |
|
132 'exp_mod_normal_rng', |
63 'expm1', |
133 'expm1', |
|
134 'exponential_ccdf_log', |
64 'exponential_cdf', |
135 'exponential_cdf', |
|
136 'exponential_cdf_log', |
65 'exponential_log', |
137 'exponential_log', |
|
138 'exponential_rng', |
66 'fabs', |
139 'fabs', |
|
140 'falling_factorial', |
67 'fdim', |
141 'fdim', |
68 'floor', |
142 'floor', |
69 'fma', |
143 'fma', |
70 'fmax', |
144 'fmax', |
71 'fmin', |
145 'fmin', |
72 'fmod', |
146 'fmod', |
|
147 'gamma_ccdf_log', |
|
148 'gamma_cdf', |
|
149 'gamma_cdf_log', |
73 'gamma_log', |
150 'gamma_log', |
|
151 'gamma_p', |
|
152 'gamma_q', |
|
153 'gamma_rng', |
|
154 'gaussian_dlm_obs_log', |
|
155 'gumbel_ccdf_log', |
|
156 'gumbel_cdf', |
|
157 'gumbel_cdf_log', |
|
158 'gumbel_log', |
|
159 'gumbel_rng', |
|
160 'head', |
74 'hypergeometric_log', |
161 'hypergeometric_log', |
|
162 'hypergeometric_rng', |
75 'hypot', |
163 'hypot', |
76 'if_else', |
164 'if_else', |
77 'int_step', |
165 'int_step', |
|
166 'inv', |
|
167 'inv_chi_square_ccdf_log', |
|
168 'inv_chi_square_cdf', |
|
169 'inv_chi_square_cdf_log', |
78 'inv_chi_square_log', |
170 'inv_chi_square_log', |
|
171 'inv_chi_square_rng', |
79 'inv_cloglog', |
172 'inv_cloglog', |
|
173 'inv_gamma_ccdf_log', |
|
174 'inv_gamma_cdf', |
|
175 'inv_gamma_cdf_log', |
80 'inv_gamma_log', |
176 'inv_gamma_log', |
|
177 'inv_gamma_rng', |
81 'inv_logit', |
178 'inv_logit', |
|
179 'inv_sqrt', |
|
180 'inv_square', |
82 'inv_wishart_log', |
181 'inv_wishart_log', |
|
182 'inv_wishart_rng', |
83 'inverse', |
183 'inverse', |
|
184 'inverse_spd', |
84 'lbeta', |
185 'lbeta', |
85 'lgamma', |
186 'lgamma', |
86 'lkj_corr_cholesky_log', |
187 'lkj_corr_cholesky_log', |
|
188 'lkj_corr_cholesky_rng', |
87 'lkj_corr_log', |
189 'lkj_corr_log', |
|
190 'lkj_corr_rng', |
88 'lkj_cov_log', |
191 'lkj_cov_log', |
89 'lmgamma', |
192 'lmgamma', |
90 'log', |
193 'log', |
91 'log10', |
194 'log10', |
92 'log1m', |
195 'log1m', |
|
196 'log1m_exp', |
|
197 'log1m_inv_logit', |
93 'log1p', |
198 'log1p', |
94 'log1p_exp', |
199 'log1p_exp', |
95 'log2', |
200 'log2', |
|
201 'log_determinant', |
|
202 'log_diff_exp', |
|
203 'log_falling_factorial', |
|
204 'log_inv_logit', |
|
205 'log_rising_factorial', |
|
206 'log_softmax', |
96 'log_sum_exp', |
207 'log_sum_exp', |
|
208 'logistic_ccdf_log', |
|
209 'logistic_cdf', |
|
210 'logistic_cdf_log', |
97 'logistic_log', |
211 'logistic_log', |
|
212 'logistic_rng', |
98 'logit', |
213 'logit', |
|
214 'lognormal_ccdf_log', |
99 'lognormal_cdf', |
215 'lognormal_cdf', |
|
216 'lognormal_cdf_log', |
100 'lognormal_log', |
217 'lognormal_log', |
|
218 'lognormal_rng', |
|
219 'machine_precision', |
101 'max', |
220 'max', |
|
221 'mdivide_left_tri_low', |
|
222 'mdivide_right_tri_low', |
102 'mean', |
223 'mean', |
103 'min', |
224 'min', |
|
225 'modified_bessel_first_kind', |
|
226 'modified_bessel_second_kind', |
|
227 'multi_gp_log', |
104 'multi_normal_cholesky_log', |
228 'multi_normal_cholesky_log', |
|
229 'multi_normal_cholesky_rng', |
105 'multi_normal_log', |
230 'multi_normal_log', |
|
231 'multi_normal_prec_log', |
|
232 'multi_normal_rng', |
106 'multi_student_t_log', |
233 'multi_student_t_log', |
|
234 'multi_student_t_rng', |
107 'multinomial_log', |
235 'multinomial_log', |
|
236 'multinomial_rng', |
108 'multiply_log', |
237 'multiply_log', |
109 'multiply_lower_tri_self_transpose', |
238 'multiply_lower_tri_self_transpose', |
|
239 'neg_binomial_2_log', |
|
240 'neg_binomial_2_log_log', |
|
241 'neg_binomial_2_log_rng', |
|
242 'neg_binomial_2_rng', |
|
243 'neg_binomial_ccdf_log', |
|
244 'neg_binomial_cdf', |
|
245 'neg_binomial_cdf_log', |
110 'neg_binomial_log', |
246 'neg_binomial_log', |
|
247 'neg_binomial_rng', |
|
248 'negative_infinity', |
|
249 'normal_ccdf_log', |
111 'normal_cdf', |
250 'normal_cdf', |
|
251 'normal_cdf_log', |
112 'normal_log', |
252 'normal_log', |
|
253 'normal_rng', |
|
254 'not_a_number', |
113 'ordered_logistic_log', |
255 'ordered_logistic_log', |
|
256 'ordered_logistic_rng', |
|
257 'owens_t', |
|
258 'pareto_ccdf_log', |
|
259 'pareto_cdf', |
|
260 'pareto_cdf_log', |
114 'pareto_log', |
261 'pareto_log', |
|
262 'pareto_rng', |
|
263 'pi', |
|
264 'poisson_ccdf_log', |
|
265 'poisson_cdf', |
|
266 'poisson_cdf_log', |
115 'poisson_log', |
267 'poisson_log', |
|
268 'poisson_log_log', |
|
269 'poisson_rng', |
|
270 'positive_infinity', |
116 'pow', |
271 'pow', |
117 'prod', |
272 'prod', |
|
273 'qr_Q', |
|
274 'qr_R', |
|
275 'quad_form', |
|
276 'quad_form_diag', |
|
277 'quad_form_sym', |
|
278 'rank', |
|
279 'rayleigh_ccdf_log', |
|
280 'rayleigh_cdf', |
|
281 'rayleigh_cdf_log', |
|
282 'rayleigh_log', |
|
283 'rayleigh_rng', |
|
284 'rep_array', |
|
285 'rep_matrix', |
|
286 'rep_row_vector', |
|
287 'rep_vector', |
|
288 'rising_factorial', |
118 'round', |
289 'round', |
119 'row', |
290 'row', |
120 'rows', |
291 'rows', |
|
292 'rows_dot_product', |
|
293 'rows_dot_self', |
|
294 'scaled_inv_chi_square_ccdf_log', |
|
295 'scaled_inv_chi_square_cdf', |
|
296 'scaled_inv_chi_square_cdf_log', |
121 'scaled_inv_chi_square_log', |
297 'scaled_inv_chi_square_log', |
|
298 'scaled_inv_chi_square_rng', |
122 'sd', |
299 'sd', |
|
300 'segment', |
123 'sin', |
301 'sin', |
124 'singular_values', |
302 'singular_values', |
125 'sinh', |
303 'sinh', |
|
304 'size', |
|
305 'skew_normal_ccdf_log', |
|
306 'skew_normal_cdf', |
|
307 'skew_normal_cdf_log', |
|
308 'skew_normal_log', |
|
309 'skew_normal_rng', |
126 'softmax', |
310 'softmax', |
|
311 'sort_asc', |
|
312 'sort_desc', |
|
313 'sort_indices_asc', |
|
314 'sort_indices_desc', |
127 'sqrt', |
315 'sqrt', |
|
316 'sqrt2', |
128 'square', |
317 'square', |
|
318 'squared_distance', |
129 'step', |
319 'step', |
|
320 'student_t_ccdf_log', |
|
321 'student_t_cdf', |
|
322 'student_t_cdf_log', |
130 'student_t_log', |
323 'student_t_log', |
|
324 'student_t_rng', |
|
325 'sub_col', |
|
326 'sub_row', |
131 'sum', |
327 'sum', |
|
328 'tail', |
132 'tan', |
329 'tan', |
133 'tanh', |
330 'tanh', |
|
331 'tcrossprod', |
134 'tgamma', |
332 'tgamma', |
|
333 'to_array_1d', |
|
334 'to_array_2d', |
|
335 'to_matrix', |
|
336 'to_row_vector', |
|
337 'to_vector', |
135 'trace', |
338 'trace', |
|
339 'trace_gen_quad_form', |
|
340 'trace_quad_form', |
|
341 'trigamma', |
136 'trunc', |
342 'trunc', |
|
343 'uniform_ccdf_log', |
|
344 'uniform_cdf', |
|
345 'uniform_cdf_log', |
137 'uniform_log', |
346 'uniform_log', |
|
347 'uniform_rng', |
138 'variance', |
348 'variance', |
|
349 'von_mises_log', |
|
350 'von_mises_rng', |
|
351 'weibull_ccdf_log', |
139 'weibull_cdf', |
352 'weibull_cdf', |
|
353 'weibull_cdf_log', |
140 'weibull_log', |
354 'weibull_log', |
141 'wishart_log'] |
355 'weibull_rng', |
142 |
356 'wishart_log', |
143 DISTRIBUTIONS=[ 'bernoulli', |
357 'wishart_rng', |
|
358 ) |
|
359 |
|
360 DISTRIBUTIONS = ( |
|
361 'bernoulli', |
|
362 'bernoulli_logit', |
144 'beta', |
363 'beta', |
145 'beta_binomial', |
364 'beta_binomial', |
|
365 'binomial', |
|
366 'binomial_logit', |
146 'categorical', |
367 'categorical', |
|
368 'categorical_logit', |
147 'cauchy', |
369 'cauchy', |
148 'chi_square', |
370 'chi_square', |
149 'dirichlet', |
371 'dirichlet', |
150 'double_exponential', |
372 'double_exponential', |
|
373 'exp_mod_normal', |
151 'exponential', |
374 'exponential', |
152 'gamma', |
375 'gamma', |
|
376 'gaussian_dlm_obs', |
|
377 'gumbel', |
153 'hypergeometric', |
378 'hypergeometric', |
154 'inv_chi_square', |
379 'inv_chi_square', |
155 'inv_gamma', |
380 'inv_gamma', |
156 'inv_wishart', |
381 'inv_wishart', |
157 'lkj_corr', |
382 'lkj_corr', |
158 'lkj_corr_cholesky', |
383 'lkj_corr_cholesky', |
159 'lkj_cov', |
384 'lkj_cov', |
160 'logistic', |
385 'logistic', |
161 'lognormal', |
386 'lognormal', |
|
387 'multi_gp', |
162 'multi_normal', |
388 'multi_normal', |
163 'multi_normal_cholesky', |
389 'multi_normal_cholesky', |
|
390 'multi_normal_prec', |
164 'multi_student_t', |
391 'multi_student_t', |
165 'multinomial', |
392 'multinomial', |
166 'neg_binomial', |
393 'neg_binomial', |
|
394 'neg_binomial_2', |
|
395 'neg_binomial_2_log', |
167 'normal', |
396 'normal', |
168 'ordered_logistic', |
397 'ordered_logistic', |
169 'pareto', |
398 'pareto', |
170 'poisson', |
399 'poisson', |
|
400 'poisson_log', |
|
401 'rayleigh', |
171 'scaled_inv_chi_square', |
402 'scaled_inv_chi_square', |
|
403 'skew_normal', |
172 'student_t', |
404 'student_t', |
173 'uniform', |
405 'uniform', |
|
406 'von_mises', |
174 'weibull', |
407 'weibull', |
175 'wishart'] |
408 'wishart', |
176 |
409 ) |
|
410 |
|
411 RESERVED = ( |
|
412 'alignas', |
|
413 'alignof', |
|
414 'and', |
|
415 'and_eq', |
|
416 'asm', |
|
417 'auto', |
|
418 'bitand', |
|
419 'bitor', |
|
420 'bool', |
|
421 'break', |
|
422 'case', |
|
423 'catch', |
|
424 'char', |
|
425 'char16_t', |
|
426 'char32_t', |
|
427 'class', |
|
428 'compl', |
|
429 'const', |
|
430 'const_cast', |
|
431 'constexpr', |
|
432 'continue', |
|
433 'decltype', |
|
434 'default', |
|
435 'delete', |
|
436 'do', |
|
437 'double', |
|
438 'dynamic_cast', |
|
439 'enum', |
|
440 'explicit', |
|
441 'export', |
|
442 'extern', |
|
443 'false', |
|
444 'false', |
|
445 'float', |
|
446 'friend', |
|
447 'fvar', |
|
448 'goto', |
|
449 'inline', |
|
450 'int', |
|
451 'long', |
|
452 'mutable', |
|
453 'namespace', |
|
454 'new', |
|
455 'noexcept', |
|
456 'not', |
|
457 'not_eq', |
|
458 'nullptr', |
|
459 'operator', |
|
460 'or', |
|
461 'or_eq', |
|
462 'private', |
|
463 'protected', |
|
464 'public', |
|
465 'register', |
|
466 'reinterpret_cast', |
|
467 'repeat', |
|
468 'short', |
|
469 'signed', |
|
470 'sizeof', |
|
471 'static', |
|
472 'static_assert', |
|
473 'static_cast', |
|
474 'struct', |
|
475 'switch', |
|
476 'template', |
|
477 'then', |
|
478 'this', |
|
479 'thread_local', |
|
480 'throw', |
|
481 'true', |
|
482 'true', |
|
483 'try', |
|
484 'typedef', |
|
485 'typeid', |
|
486 'typename', |
|
487 'union', |
|
488 'unsigned', |
|
489 'until', |
|
490 'using', |
|
491 'var', |
|
492 'virtual', |
|
493 'void', |
|
494 'volatile', |
|
495 'wchar_t', |
|
496 'xor', |
|
497 'xor_eq', |
|
498 ) |