Added this in-line with the firmware, so the runtime behavior can be somewhat replicated making it simpler when moving lib.rs
to artiq-zynq or artiq system. Will replace the exceptions with a…
For now, I have specified the numpy element type in linalg_externfns/src/lib.rs
to be f64
. We can extend this to support i32
or i64
type as well but will need dedicated functions to handle…
the current implementation is limited to 1D case
Why?
When performing dot product on 1D vectors, output is a single float while a 2D matrix needs to be allocated with 2D inputs. The…
Adds implementation of:
np_dot
: Unlikenumpy
where dot product can be used for multiplying matrices, the current implementation is limited to 1D casenp_linalg_matmul
: Same as…
Isn't that already implemented via the
@
operator?
Yes it's already implemented. I added this to test the macro calls. Will remove it from the final version.
Again, move this out of nac3core. This is only used by nac3standalone/demo and this is where it should go.
Will move it.
I also doubt that
clang xxy.so
works to link an executable against…
Why can't we just follow the numpy API and raise this exception on failure, instead of returning True/False?
The implementation of try_invert_to
in nalgebra::linalg
returns True/False…
If the purpose of the DSO is to make the lli tests work, I would just get rid of the latter. The lli tests increase complexity and AFAICT don't really help find bugs.
The DSO provides the…