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