picos.tools¶
Backwards compatibility version of an older module.
Functions
-
picos.tools.
ball
()¶
-
picos.tools.
detrootn
()¶
-
picos.tools.
eval_dict
(dict_of_variables)[source]¶ Evaluate all values of a dictionary.
- Parameters
dict_of_variables (dict) – A dictionary mapping arbitrary keys to PICOS objects that have a
value
attribute, such as variables.- Returns
Another dictionary with the original dicitonary’s values replaced by the value of their
value
attribute.
Deprecated since version 2.0: Write ‘{k: v.value for k, v in x.items()}’ instead.
-
picos.tools.
expcone
()¶
-
picos.tools.
geomean
()¶
-
picos.tools.
kullback_leibler
()¶
-
picos.tools.
logsumexp
()¶
-
picos.tools.
lse
()¶
-
picos.tools.
norm
()¶
-
picos.tools.
retrieve_matrix
(mat, exSize=None)[source]¶ Legacy wrapper around
load_data
.Deprecated since version 2.0: Use
picos.expressions.data.load_data
instead.
-
picos.tools.
sumexp
()¶
Objects
-
picos.tools.
builtin_sum
¶ Return the sum of a ‘start’ value (default: 0) plus an iterable of numbers
When the iterable is empty, return the start value. This function is intended specifically for use with numeric values and may reject non-numeric types.
- Default value
<built-in function sum>