We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d222664 commit 3a79ee7Copy full SHA for 3a79ee7
src/arraytex/api.py
@@ -17,14 +17,14 @@ def to_matrix(
17
18
Args:
19
arr: the array to be converted
20
- style: a style formatter string, either "b" for "bmatrid" or "p" for "pmatrix"
+ style: a style formatter string, either "b" for "bmatrix" or "p" for "pmatrix"
21
num_format: a number formatter string, e.g. ".2f"
22
23
Returns:
24
the string representation of the array
25
"""
26
27
- def num_formatter(x: Union[int, float]) -> str:
+ def num_formatter(x: Union[np.int64, np.float64, np.float32]) -> str:
28
return f"%{num_format}" % x
29
30
environment = f"{style}matrix"
0 commit comments