Appendix K
The Library Modules
On this page
Module basic (imported by default)
- ' +
- !=
- !==
- :=
- <
- <=
- =
- =<
- =:=
- =' =
- ==
- >
- >=
- @<
- @<=
- @=<
- @>
- @>=
- =..
- ++ =
- [ : in , ] =
- .. =
- .. .. =
- - =
- + =
- + =
- - =
- * =
- / =
- // =
- div =
- /< =
- /> =
- ** =
- mod =
- rem =
- ~ =
- ' / =
- /' =
- ^ =
- << =
- >> =
- [,,]
- ,
- &&
- ;
- ||
- acyclic_term()
- and_to_list() =
- append(, , ) (nondet)
- append(, , , ) (nondet)
- apply(, , , ) =
- arg(, , )
- arity() =
- array()
- ascii_alpha()
- ascii_alpha_digit()
- ascii_digit()
- ascii_lowercase()
- ascii_uppercase()
- atom()
- atom_chars() =
- atom_codes() =
- atomic()
- attr_var()
- avg() =
- between(, , ) (nondet)
- between(, , , ) (nondet)
- bigint()
- bind_vars(, )
- bool_dvar()
- call(, , , )
- call_cleanup(, )
- catch(, , )
- char()
- chr() =
- clear()
- compare_terms(, ) =
- compound()
- copy_term() =
- copy_term_shallow() =
- count_all() =
- del(, )
- delete(, ) =
- delete_all(, ) =
- different_terms(, )
- digit()
- dvar()
- dvar_or_int()
- fail
- false
- find_all(, ) =
- findall(, ) =
- first() =
- flatten() =
- float()
- fold(, , ) =
- freeze(, )
- functor(, , )
- get(, ) =
- get(, , ) =
- get_attr(, ) =
- get_attr(, , ) =
- get_global_map() =
- get_global_map() =
- get_heap_map() =
- get_heap_map() =
- get_table_map() =
- get_table_map() =
- ground()
- has_key(, )
- hash_code() =
- head() =
- heap_is_empty()
- heap_pop() =
- heap_push(, )
- heap_size() =
- heap_to_list() =
- heap_top() =
- insert(, , ) =
- insert_all(, , ) =
- insert_ordered(, ) =
- insert_ordered_down(, ) =
- int()
- integer()
- is(, )
- keys() =
- last() =
- len() =
- length() =
- list()
- list_to_and() =
- lowercase()
- map(, , ) =
- map(, ) =
- map()
- map_to_list() =
- max() =
- max(, ) =
- maxint_small() =
- maxof(, )
- maxof(, , )
- maxof_inc(, )
- maxof_inc(, , )
- membchk(, )
- member(, ) (nondet)
- min() =
- min(, ) =
- minint_small() =
- minof(, )
- minof(, , )
- minof_inc(, )
- minof_inc(, , )
- name() =
- new_array(, , ) =
- new_list() =
- new_list(, ) =
- new_map() =
- new_map() =
- new_map(, ) =
- new_max_heap() =
- new_min_heap() =
- new_set() =
- new_set(, ) =
- new_set() =
- new_struct(, ) =
- nonvar()
- not
- nth(, , ) (nondet)
- number()
- number_chars() =
- number_codes() =
- number_vars()
- number_vars(, ) =
- once
- ord() =
- parse_radix_string(, ) =
- parse_term() =
- parse_term(, , )
- post_event(, )
- post_event_any(, )
- post_event_bound()
- post_event_dom(, )
- post_event_ins()
- prod() =
- put(, )
- put(, , )
- put_attr(, )
- put_attr(, , )
- real()
- reduce(, ) =
- reduce(, , ) =
- remove_dups() =
- repeat (nondet)
- reverse() =
- second() =
- select(, , ) (nondet)
- size() =
- slice(, ) =
- slice(, , ) =
- sort() =
- sort(, ) =
- sort_down() =
- sort_down(, ) =
- sort_down_remove_dups() =
- sort_down_remove_dups(, ) =
- sort_remove_dups() =
- sort_remove_dups(, ) =
- sorted()
- sorted_down()
- string()
- struct()
- subsumes(, )
- sum() =
- tail() =
- throw()
- to_array() =
- to_atom() =
- to_binary_string() =
- to_codes() =
- to_float() =
- to_fstring(, ) =
- to_hex_string() =
- to_int() =
- to_integer() =
- to_list() =
- to_lowercase() =
- to_number() =
- to_oct_string() =
- to_radix_string(, ) =
- to_real() =
- to_string() =
- to_uppercase() =
- true
- uppercase()
- values() =
- var()
- variant(, )
- vars() =
- zip(, ) =
- zip(, , ) =
- zip(, , , ) =
Module math (imported by default)
- abs() =
- acos() =
- acosh() =
- acot() =
- acoth() =
- acsc() =
- acsch() =
- asec() =
- asech() =
- asin() =
- asinh() =
- atan() =
- atan2(, ) =
- atanh() =
- binom(, ) =
- ceiling() =
- cos() =
- cosh() =
- cot() =
- coth() =
- csc() =
- csch() =
- e() = 2.71828182845904523536
- even()
- exp() =
- floor() =
- frand() =
- frand(, ) =
- gcd(, ) =
- log() =
- log(B, ) =
- log10() =
- log2() =
- modf() = (, )
- odd()
- pi() = 3.14159265358979323846
- pow(, ) =
- pow_mod(, , ) =
- prime()
- primes() =
- rand_max() =
- random() =
- random(, ) =
- random() =
- random2() =
- round() =
- sec() =
- sech() =
- sign() =
- sin() =
- sinh() =
- sqrt() =
- tan() =
- tanh() =
- to_degrees() =
- to_radians() =
- truncate() =
Module io (imported by default)
- at_end_of_stream()
- close()
- flush()
- nl()
- nl()
- open() =
- open(, ) =
- peek_byte() =
- peek_char() =
- print(, )
- print()
- printf(, , )
- println(, )
- println()
- read_atom() =
- read_atom() =
- read_byte() =
- read_byte(, ) =
- read_byte() =
- read_char() =
- read_char(, ) =
- read_char() =
- read_char_code() =
- read_char_code(, ) =
- read_char_code() =
- read_file_bytes() =
- read_file_bytes() =
- read_file_chars() =
- read_file_chars() =
- read_file_codes() =
- read_file_codes() =
- read_file_lines() =
- read_file_lines() =
- read_file_terms() =
- read_file_terms() =
- read_int() =
- read_int() =
- read_line() =
- read_line() =
- read_number() =
- read_number() =
- read_picat_token() =
- read_picat_token(, , )
- read_picat_token(, )
- read_picat_token() =
- read_real() =
- read_real() =
- read_term() =
- read_term() =
- readln() =
- readln() =
- write(, )
- write()
- write_byte()
- write_byte(, )
- write_char()
- write_char(, )
- write_char_code()
- write_char_code(, )
- writef(, , )
- writeln(, )
- writeln()
Module ordset
- delete(, ) =
- disjoint(, )
- insert(, ) =
- intersection(, ) =
- new_ordset() =
- ordset()
- subset(, )
- subtract(, ) =
- union(, ) =
Module os
- cd()
- chdir()
- cp(, )
- cwd() =
- directory()
- dir
- env_exists()
- executable()
- exists()
- file()
- file_base_name() =
- file_directory_name() =
- file_exists()
- getenv() =
- listdir() =
- ls
- mkdir()
- pwd() =
- readable()
- rename(, )
- rm()
- rmdir()
- separator() =
- size() =
- writable()
Modules cp, mip, sat, and smt
- #~
- #!=
- #/'
- #<
- #<=
- #<=>
- #=
- #=<
- #=>
- #>
- #>=
- #' /
- #^
- ::
- notin
- acyclic(, )
- acyclic_d(, )
- all_different()
- all_different_except_0()
- all_distinct()
- assignment(, )
- at_least(, , )
- at_most(, , )
- bv_add(, , ) (sat only)
- bv_and(, , ) (sat only)
- bv_div(, , ) (sat only)
- bv_drop(, ) = (sat only)
- bv_eq(, ) (sat only)
- bv_ge(, ) (sat only)
- bv_gt(, ) (sat only)
- bv_le(, ) (sat only)
- bv_lt(, ) (sat only)
- bv_mod(, , ) (sat only)
- bv_mul(, , ) (sat only)
- bv_neq(, ) (sat only)
- bv_or(, , ) (sat only)
- bv_pow(, , ) (sat only)
- bv_sum(, ) (sat only)
- bv_take(, ) = (sat only)
- bv_to_int() = (sat only)
- bv_xor(, , ) (sat only)
- circuit()
- count(, , )
- count(, , , )
- cumulative(, , , )
- decreasing()
- decreasing_strict()
- diffn()
- disjunctive_tasks() (cp only)
- element(, , )
- element0(, , )
- exactly(, , )
- fd_degree() = (cp only)
- fd_disjoint(, )
- fd_dom() =
- fd_false(, )
- fd_max() =
- fd_min() =
- fd_min_max(, , )
- fd_next(, ) =
- fd_prev(, ) =
- fd_set_false(, ) (cp only)
- fd_size() =
- fd_true(, )
- fd_vector_min_max(, )
- global_cardinality(, )
- hcp(, )
- hcp(, , )
- hcp_grid()
- hcp_grid(, )
- hcp_grid(, , )
- increasing()
- increasing_strict()
- indomain() (nondet) (cp only)
- indomain_down() (nondet) (cp only)
- int_to_bv() = (sat only)
- lex_le(, )
- lex_lt(, )
- matrix_element(, , , )
- matrix_element0(, , , )
- neqs() (cp only)
- new_bv() = (sat only)
- new_dvar() =
- nvalue(, )
- path(, , , )
- path_d(, , , )
- regular(, , , , , )
- reset_store
- scalar_product(, , )
- scalar_product(, , , )
- scc(, )
- scc(, , )
- scc_d(, )
- scc_d(, , )
- scc_grid()
- scc_grid(, )
- serialized(, )
- solve(, ) (nondet)
- solve() (nondet)
- solve_all(, ) =
- solve_all() =
- solve_suspended() (cp only)
- solve_suspended(cp only)
- subcircuit()
- subcircuit_grid()
- subcircuit_grid(, )
- table_in(, )
- table_notin(, )
- tree(, )
- tree(, , )
Module planner
- best_plan(, , )
- best_plan(, , , )
- best_plan(, )
- best_plan(, , )
- best_plan_bb(, , )
- best_plan_bb(, , , )
- best_plan_bb(, )
- best_plan_bb(, , )
- best_plan_bin(, , )
- best_plan_bin(, , , )
- best_plan_bin(, )
- best_plan_bin(, , )
- best_plan_nondet(, , ) (nondet)
- best_plan_nondet(, , , ) (nondet)
- best_plan_nondet(, ) (nondet)
- best_plan_nondet(, , ) (nondet)
- best_plan_unbounded(, , )
- best_plan_unbounded(, , , )
- best_plan_unbounded(, )
- best_plan_unbounded(, , )
- current_plan() =
- current_resource() =
- current_resource_plan_cost(, , )
- is_tabled_state()
- plan(, , )
- plan(, , , )
- plan(, )
- plan(, , )
- plan_unbounded(, , )
- plan_unbounded(, , , )
- plan_unbounded(, )
- plan_unbounded(, , )
Module nn (Neural Networks)
- new_nn() =
- new_sparse_nn() =
- new_sparse_nn(, ) =
- new_standard_nn() =
- nn_destroy()
- nn_destroy_all
- nn_load() =
- nn_print()
- nn_run(, ) =
- nn_run(, , ) =
- nn_save(, )
- nn_set_activation_function_hidden(, )
- nn_set_activation_function_layer(, , )
- nn_set_activation_function_output(, )
- nn_set_activation_steepness_hidden(, )
- nn_set_activation_steepness_layer(, , )
- nn_set_activation_steepness_output(, )
- nn_train(, )
- nn_train(, , )
- nn_train_data_get(, ) =
- nn_train_data_load() =
- nn_train_data_save(, )
- nn_train_data_size() =
Module datetime
- current_date() =
- current_datetime() =
- current_day() =
- current_time() =
Module sys (imported by default)
- abort
- cl
- cl()
- cl_facts()
- cl_facts(, )
- cl_facts_table()
- cl_facts_table(, )
- command() =
- compile()
- compile_bp()
- debug
- exit
- garbage_collect
- garbage_collect(Size)
- halt
- help
- initialize_table
- load()
- loaded_modules() =
- nodebug
- nolog
- nospy
- notrace
- picat_path() =
- spy
- statistics
- statistics(, ) (nondet)
- statistics_all() =
- time()
- time2()
- time_out(, , )
- trace
Module util
- array_matrix_to_list() =
- array_matrix_to_list_matrix() =
- chunks_of(, ) =
- columns() =
- diagonal1() =
- diagonal2() =
- drop(, ) =
- find(, , , ) (nondet)
- find_first_of(, ) =
- find_ignore_case(, , , ) (nondet)
- find_last_of(, ) =
- join() =
- join(, ) =
- list_matrix_to_array_matrix() =
- lstrip() =
- lstrip(, ) =
- matrix_multi(, ) =
- nextto(, , ) (nondet)
- permutation(, ) (nondet)
- permutations() =
- power_set() =
- replace(, , ) =
- replace_at(, , ) =
- rows() =
- rstrip() =
- rstrip(, ) =
- split() =
- split(, ) =
- strip() =
- strip(, ) =
- take(, ) =
- transpose() =