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.17.0. |
|
8 |
|
9 :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. |
|
10 :license: BSD, see LICENSE for details. |
|
11 """ |
|
12 |
|
13 KEYWORDS = ( |
|
14 'break', |
|
15 'continue', |
|
16 'else', |
|
17 'for', |
|
18 'if', |
|
19 'in', |
|
20 'print', |
|
21 'reject', |
|
22 'return', |
|
23 'while', |
|
24 ) |
|
25 |
|
26 TYPES = ( |
|
27 'cholesky_factor_corr', |
|
28 'cholesky_factor_cov', |
|
29 'corr_matrix', |
|
30 'cov_matrix', |
|
31 'int', |
|
32 'matrix', |
|
33 'ordered', |
|
34 'positive_ordered', |
|
35 'real', |
|
36 'row_vector', |
|
37 'simplex', |
|
38 'unit_vector', |
|
39 'vector', |
|
40 'void', |
|
41 ) |
|
42 |
|
43 FUNCTIONS = ( |
|
44 'abs', |
|
45 'acos', |
|
46 'acosh', |
|
47 'algebra_solver', |
|
48 'append_array', |
|
49 'append_col', |
|
50 'append_row', |
|
51 'asin', |
|
52 'asinh', |
|
53 'atan', |
|
54 'atan2', |
|
55 'atanh', |
|
56 'bernoulli_cdf', |
|
57 'bernoulli_lccdf', |
|
58 'bernoulli_lcdf', |
|
59 'bernoulli_logit_lpmf', |
|
60 'bernoulli_logit_rng', |
|
61 'bernoulli_lpmf', |
|
62 'bernoulli_rng', |
|
63 'bessel_first_kind', |
|
64 'bessel_second_kind', |
|
65 'beta_binomial_cdf', |
|
66 'beta_binomial_lccdf', |
|
67 'beta_binomial_lcdf', |
|
68 'beta_binomial_lpmf', |
|
69 'beta_binomial_rng', |
|
70 'beta_cdf', |
|
71 'beta_lccdf', |
|
72 'beta_lcdf', |
|
73 'beta_lpdf', |
|
74 'beta_rng', |
|
75 'binary_log_loss', |
|
76 'binomial_cdf', |
|
77 'binomial_coefficient_log', |
|
78 'binomial_lccdf', |
|
79 'binomial_lcdf', |
|
80 'binomial_logit_lpmf', |
|
81 'binomial_lpmf', |
|
82 'binomial_rng', |
|
83 'block', |
|
84 'categorical_logit_lpmf', |
|
85 'categorical_logit_rng', |
|
86 'categorical_lpmf', |
|
87 'categorical_rng', |
|
88 'cauchy_cdf', |
|
89 'cauchy_lccdf', |
|
90 'cauchy_lcdf', |
|
91 'cauchy_lpdf', |
|
92 'cauchy_rng', |
|
93 'cbrt', |
|
94 'ceil', |
|
95 'chi_square_cdf', |
|
96 'chi_square_lccdf', |
|
97 'chi_square_lcdf', |
|
98 'chi_square_lpdf', |
|
99 'chi_square_rng', |
|
100 'cholesky_decompose', |
|
101 'choose', |
|
102 'col', |
|
103 'cols', |
|
104 'columns_dot_product', |
|
105 'columns_dot_self', |
|
106 'cos', |
|
107 'cosh', |
|
108 'cov_exp_quad', |
|
109 'crossprod', |
|
110 'csr_extract_u', |
|
111 'csr_extract_v', |
|
112 'csr_extract_w', |
|
113 'csr_matrix_times_vector', |
|
114 'csr_to_dense_matrix', |
|
115 'cumulative_sum', |
|
116 'determinant', |
|
117 'diag_matrix', |
|
118 'diag_post_multiply', |
|
119 'diag_pre_multiply', |
|
120 'diagonal', |
|
121 'digamma', |
|
122 'dims', |
|
123 'dirichlet_lpdf', |
|
124 'dirichlet_rng', |
|
125 'distance', |
|
126 'dot_product', |
|
127 'dot_self', |
|
128 'double_exponential_cdf', |
|
129 'double_exponential_lccdf', |
|
130 'double_exponential_lcdf', |
|
131 'double_exponential_lpdf', |
|
132 'double_exponential_rng', |
|
133 'e', |
|
134 'eigenvalues_sym', |
|
135 'eigenvectors_sym', |
|
136 'erf', |
|
137 'erfc', |
|
138 'exp', |
|
139 'exp2', |
|
140 'exp_mod_normal_cdf', |
|
141 'exp_mod_normal_lccdf', |
|
142 'exp_mod_normal_lcdf', |
|
143 'exp_mod_normal_lpdf', |
|
144 'exp_mod_normal_rng', |
|
145 'expm1', |
|
146 'exponential_cdf', |
|
147 'exponential_lccdf', |
|
148 'exponential_lcdf', |
|
149 'exponential_lpdf', |
|
150 'exponential_rng', |
|
151 'fabs', |
|
152 'falling_factorial', |
|
153 'fdim', |
|
154 'floor', |
|
155 'fma', |
|
156 'fmax', |
|
157 'fmin', |
|
158 'fmod', |
|
159 'frechet_cdf', |
|
160 'frechet_lccdf', |
|
161 'frechet_lcdf', |
|
162 'frechet_lpdf', |
|
163 'frechet_rng', |
|
164 'gamma_cdf', |
|
165 'gamma_lccdf', |
|
166 'gamma_lcdf', |
|
167 'gamma_lpdf', |
|
168 'gamma_p', |
|
169 'gamma_q', |
|
170 'gamma_rng', |
|
171 'gaussian_dlm_obs_lpdf', |
|
172 'get_lp', |
|
173 'gumbel_cdf', |
|
174 'gumbel_lccdf', |
|
175 'gumbel_lcdf', |
|
176 'gumbel_lpdf', |
|
177 'gumbel_rng', |
|
178 'head', |
|
179 'hypergeometric_lpmf', |
|
180 'hypergeometric_rng', |
|
181 'hypot', |
|
182 'inc_beta', |
|
183 'int_step', |
|
184 'integrate_ode', |
|
185 'integrate_ode_bdf', |
|
186 'integrate_ode_rk45', |
|
187 'inv', |
|
188 'inv_chi_square_cdf', |
|
189 'inv_chi_square_lccdf', |
|
190 'inv_chi_square_lcdf', |
|
191 'inv_chi_square_lpdf', |
|
192 'inv_chi_square_rng', |
|
193 'inv_cloglog', |
|
194 'inv_gamma_cdf', |
|
195 'inv_gamma_lccdf', |
|
196 'inv_gamma_lcdf', |
|
197 'inv_gamma_lpdf', |
|
198 'inv_gamma_rng', |
|
199 'inv_logit', |
|
200 'inv_Phi', |
|
201 'inv_sqrt', |
|
202 'inv_square', |
|
203 'inv_wishart_lpdf', |
|
204 'inv_wishart_rng', |
|
205 'inverse', |
|
206 'inverse_spd', |
|
207 'is_inf', |
|
208 'is_nan', |
|
209 'lbeta', |
|
210 'lchoose', |
|
211 'lgamma', |
|
212 'lkj_corr_cholesky_lpdf', |
|
213 'lkj_corr_cholesky_rng', |
|
214 'lkj_corr_lpdf', |
|
215 'lkj_corr_rng', |
|
216 'lmgamma', |
|
217 'lmultiply', |
|
218 'log', |
|
219 'log10', |
|
220 'log1m', |
|
221 'log1m_exp', |
|
222 'log1m_inv_logit', |
|
223 'log1p', |
|
224 'log1p_exp', |
|
225 'log2', |
|
226 'log_determinant', |
|
227 'log_diff_exp', |
|
228 'log_falling_factorial', |
|
229 'log_inv_logit', |
|
230 'log_mix', |
|
231 'log_rising_factorial', |
|
232 'log_softmax', |
|
233 'log_sum_exp', |
|
234 'logistic_cdf', |
|
235 'logistic_lccdf', |
|
236 'logistic_lcdf', |
|
237 'logistic_lpdf', |
|
238 'logistic_rng', |
|
239 'logit', |
|
240 'lognormal_cdf', |
|
241 'lognormal_lccdf', |
|
242 'lognormal_lcdf', |
|
243 'lognormal_lpdf', |
|
244 'lognormal_rng', |
|
245 'machine_precision', |
|
246 'matrix_exp', |
|
247 'max', |
|
248 'mdivide_left_spd', |
|
249 'mdivide_left_tri_low', |
|
250 'mdivide_right_spd', |
|
251 'mdivide_right_tri_low', |
|
252 'mean', |
|
253 'min', |
|
254 'modified_bessel_first_kind', |
|
255 'modified_bessel_second_kind', |
|
256 'multi_gp_cholesky_lpdf', |
|
257 'multi_gp_lpdf', |
|
258 'multi_normal_cholesky_lpdf', |
|
259 'multi_normal_cholesky_rng', |
|
260 'multi_normal_lpdf', |
|
261 'multi_normal_prec_lpdf', |
|
262 'multi_normal_rng', |
|
263 'multi_student_t_lpdf', |
|
264 'multi_student_t_rng', |
|
265 'multinomial_lpmf', |
|
266 'multinomial_rng', |
|
267 'multiply_log', |
|
268 'multiply_lower_tri_self_transpose', |
|
269 'neg_binomial_2_cdf', |
|
270 'neg_binomial_2_lccdf', |
|
271 'neg_binomial_2_lcdf', |
|
272 'neg_binomial_2_log_lpmf', |
|
273 'neg_binomial_2_log_rng', |
|
274 'neg_binomial_2_lpmf', |
|
275 'neg_binomial_2_rng', |
|
276 'neg_binomial_cdf', |
|
277 'neg_binomial_lccdf', |
|
278 'neg_binomial_lcdf', |
|
279 'neg_binomial_lpmf', |
|
280 'neg_binomial_rng', |
|
281 'negative_infinity', |
|
282 'normal_cdf', |
|
283 'normal_lccdf', |
|
284 'normal_lcdf', |
|
285 'normal_lpdf', |
|
286 'normal_rng', |
|
287 'not_a_number', |
|
288 'num_elements', |
|
289 'ordered_logistic_lpmf', |
|
290 'ordered_logistic_rng', |
|
291 'owens_t', |
|
292 'pareto_cdf', |
|
293 'pareto_lccdf', |
|
294 'pareto_lcdf', |
|
295 'pareto_lpdf', |
|
296 'pareto_rng', |
|
297 'pareto_type_2_cdf', |
|
298 'pareto_type_2_lccdf', |
|
299 'pareto_type_2_lcdf', |
|
300 'pareto_type_2_lpdf', |
|
301 'pareto_type_2_rng', |
|
302 'Phi', |
|
303 'Phi_approx', |
|
304 'pi', |
|
305 'poisson_cdf', |
|
306 'poisson_lccdf', |
|
307 'poisson_lcdf', |
|
308 'poisson_log_lpmf', |
|
309 'poisson_log_rng', |
|
310 'poisson_lpmf', |
|
311 'poisson_rng', |
|
312 'positive_infinity', |
|
313 'pow', |
|
314 'print', |
|
315 'prod', |
|
316 'qr_Q', |
|
317 'qr_R', |
|
318 'quad_form', |
|
319 'quad_form_diag', |
|
320 'quad_form_sym', |
|
321 'rank', |
|
322 'rayleigh_cdf', |
|
323 'rayleigh_lccdf', |
|
324 'rayleigh_lcdf', |
|
325 'rayleigh_lpdf', |
|
326 'rayleigh_rng', |
|
327 'reject', |
|
328 'rep_array', |
|
329 'rep_matrix', |
|
330 'rep_row_vector', |
|
331 'rep_vector', |
|
332 'rising_factorial', |
|
333 'round', |
|
334 'row', |
|
335 'rows', |
|
336 'rows_dot_product', |
|
337 'rows_dot_self', |
|
338 'scaled_inv_chi_square_cdf', |
|
339 'scaled_inv_chi_square_lccdf', |
|
340 'scaled_inv_chi_square_lcdf', |
|
341 'scaled_inv_chi_square_lpdf', |
|
342 'scaled_inv_chi_square_rng', |
|
343 'sd', |
|
344 'segment', |
|
345 'sin', |
|
346 'singular_values', |
|
347 'sinh', |
|
348 'size', |
|
349 'skew_normal_cdf', |
|
350 'skew_normal_lccdf', |
|
351 'skew_normal_lcdf', |
|
352 'skew_normal_lpdf', |
|
353 'skew_normal_rng', |
|
354 'softmax', |
|
355 'sort_asc', |
|
356 'sort_desc', |
|
357 'sort_indices_asc', |
|
358 'sort_indices_desc', |
|
359 'sqrt', |
|
360 'sqrt2', |
|
361 'square', |
|
362 'squared_distance', |
|
363 'step', |
|
364 'student_t_cdf', |
|
365 'student_t_lccdf', |
|
366 'student_t_lcdf', |
|
367 'student_t_lpdf', |
|
368 'student_t_rng', |
|
369 'sub_col', |
|
370 'sub_row', |
|
371 'sum', |
|
372 'tail', |
|
373 'tan', |
|
374 'tanh', |
|
375 'target', |
|
376 'tcrossprod', |
|
377 'tgamma', |
|
378 'to_array_1d', |
|
379 'to_array_2d', |
|
380 'to_matrix', |
|
381 'to_row_vector', |
|
382 'to_vector', |
|
383 'trace', |
|
384 'trace_gen_quad_form', |
|
385 'trace_quad_form', |
|
386 'trigamma', |
|
387 'trunc', |
|
388 'uniform_cdf', |
|
389 'uniform_lccdf', |
|
390 'uniform_lcdf', |
|
391 'uniform_lpdf', |
|
392 'uniform_rng', |
|
393 'variance', |
|
394 'von_mises_lpdf', |
|
395 'von_mises_rng', |
|
396 'weibull_cdf', |
|
397 'weibull_lccdf', |
|
398 'weibull_lcdf', |
|
399 'weibull_lpdf', |
|
400 'weibull_rng', |
|
401 'wiener_lpdf', |
|
402 'wishart_lpdf', |
|
403 'wishart_rng', |
|
404 ) |
|
405 |
|
406 DISTRIBUTIONS = ( |
|
407 'bernoulli', |
|
408 'bernoulli_logit', |
|
409 'beta', |
|
410 'beta_binomial', |
|
411 'binomial', |
|
412 'binomial_logit', |
|
413 'categorical', |
|
414 'categorical_logit', |
|
415 'cauchy', |
|
416 'chi_square', |
|
417 'dirichlet', |
|
418 'double_exponential', |
|
419 'exp_mod_normal', |
|
420 'exponential', |
|
421 'frechet', |
|
422 'gamma', |
|
423 'gaussian_dlm_obs', |
|
424 'gumbel', |
|
425 'hypergeometric', |
|
426 'inv_chi_square', |
|
427 'inv_gamma', |
|
428 'inv_wishart', |
|
429 'lkj_corr', |
|
430 'lkj_corr_cholesky', |
|
431 'logistic', |
|
432 'lognormal', |
|
433 'multi_gp', |
|
434 'multi_gp_cholesky', |
|
435 'multi_normal', |
|
436 'multi_normal_cholesky', |
|
437 'multi_normal_prec', |
|
438 'multi_student_t', |
|
439 'multinomial', |
|
440 'neg_binomial', |
|
441 'neg_binomial_2', |
|
442 'neg_binomial_2_log', |
|
443 'normal', |
|
444 'ordered_logistic', |
|
445 'pareto', |
|
446 'pareto_type_2', |
|
447 'poisson', |
|
448 'poisson_log', |
|
449 'rayleigh', |
|
450 'scaled_inv_chi_square', |
|
451 'skew_normal', |
|
452 'student_t', |
|
453 'uniform', |
|
454 'von_mises', |
|
455 'weibull', |
|
456 'wiener', |
|
457 'wishart', |
|
458 ) |
|
459 |
|
460 RESERVED = ( |
|
461 'alignas', |
|
462 'alignof', |
|
463 'and', |
|
464 'and_eq', |
|
465 'asm', |
|
466 'auto', |
|
467 'bitand', |
|
468 'bitor', |
|
469 'bool', |
|
470 'break', |
|
471 'case', |
|
472 'catch', |
|
473 'char', |
|
474 'char16_t', |
|
475 'char32_t', |
|
476 'class', |
|
477 'compl', |
|
478 'const', |
|
479 'const_cast', |
|
480 'constexpr', |
|
481 'continue', |
|
482 'decltype', |
|
483 'default', |
|
484 'delete', |
|
485 'do', |
|
486 'double', |
|
487 'dynamic_cast', |
|
488 'else', |
|
489 'enum', |
|
490 'explicit', |
|
491 'export', |
|
492 'extern', |
|
493 'false', |
|
494 'float', |
|
495 'for', |
|
496 'friend', |
|
497 'fvar', |
|
498 'goto', |
|
499 'if', |
|
500 'in', |
|
501 'inline', |
|
502 'int', |
|
503 'long', |
|
504 'lp__', |
|
505 'mutable', |
|
506 'namespace', |
|
507 'new', |
|
508 'noexcept', |
|
509 'not', |
|
510 'not_eq', |
|
511 'nullptr', |
|
512 'operator', |
|
513 'or', |
|
514 'or_eq', |
|
515 'private', |
|
516 'protected', |
|
517 'public', |
|
518 'register', |
|
519 'reinterpret_cast', |
|
520 'repeat', |
|
521 'return', |
|
522 'short', |
|
523 'signed', |
|
524 'sizeof', |
|
525 'STAN_MAJOR', |
|
526 'STAN_MATH_MAJOR', |
|
527 'STAN_MATH_MINOR', |
|
528 'STAN_MATH_PATCH', |
|
529 'STAN_MINOR', |
|
530 'STAN_PATCH', |
|
531 'static', |
|
532 'static_assert', |
|
533 'static_cast', |
|
534 'struct', |
|
535 'switch', |
|
536 'template', |
|
537 'then', |
|
538 'this', |
|
539 'thread_local', |
|
540 'throw', |
|
541 'true', |
|
542 'try', |
|
543 'typedef', |
|
544 'typeid', |
|
545 'typename', |
|
546 'union', |
|
547 'unsigned', |
|
548 'until', |
|
549 'using', |
|
550 'var', |
|
551 'virtual', |
|
552 'void', |
|
553 'volatile', |
|
554 'wchar_t', |
|
555 'while', |
|
556 'xor', |
|
557 'xor_eq', |
|
558 ) |
|