1, 2], [3,4]]) matrix([[
'1234'
Compute a text represenation of matrix
matrix (matrix:Union[list,numpy.ndarray], decimal_sep_replacement:Optional[bool]='_')
Type | Default | Details | |
---|---|---|---|
matrix | Union | Input | |
decimal_sep_replacement | Optional | _ | Decimal point separator |
Returns | str | Text representation |
It can be used on lists,
or arrays
Decimal separators are by default replaced.
/home/manu/Sync/git/py2gift/.venv/lib/python3.12/site-packages/numpy/lib/_function_base_impl.py:2605: RuntimeWarning: invalid value encountered in str (vectorized)
outputs = ufunc(*inputs)
'1_12_23_34_4'
Lists are also fine.
Compute a text represenation of number
number (number:Union[float,numpy.float64], decimal_sep_replacement:Optional[bool]='_')
Type | Default | Details | |
---|---|---|---|
number | Union | Input | |
decimal_sep_replacement | Optional | _ | Decimal point separator |
Returns | str | Text representation |
From this post: a function to hash any arbitray string.
string (s:str)
Type | Details | |
---|---|---|
s | str | Input |
Returns | str | Text representation |