Closed BacchusX1 closed 4 months ago
Hi @BacchusX1, your scripts are valid. On the current main branch of DAPHNE they pass successfully, i.e., when doing print(c_numpy)
, the first script prints 6
, the second one 0.0
. Support for abs()
on DaphneLib matrices was added in 2c1b7013dfea7e7ad839b40a93bbb10cb6edd9b2 in Sep 2023. Could it be that you use an outdated version of DAPHNE, e.g., the v0.2 release? If so, please try using the current state of the main branch, e.g., by following the quickstart guide for developers.
Yes that was the issue
I would like to calculate the L1 norm in daphne-lib like that:
Output:
For my understanding https://github.com/daphne-eu/daphne/blob/main/doc/DaphneLib/APIRef.md abs() should be available.
So I tried:
Output:
Any suggestions how to do that?
LG Bernhard