A small ADA library for performing linear algebra operations with 2D, 3D, 4D matrices and vectors.
make build
The library uses adaunit
for unit tests, and the tests can be run by the following command. This assumes the relevant dependencies exist on your local machine.
make run-unit-tests
As all dependencies may not be installed, it may be better to test in a docker container. See the following section for dockerized build and test instructions.
To test or build the library in a dockerized environment with all dependnecies installed, you can use the following steps.
To build the docker image, run the following command.
make docker-build-image
Once the docker image has been built we can run tests in a docker container by the following command.
make docker-run-unit-tests
We can test a sample program that depends on adavec
library.
If your local machine doesn't have all dependencies, you can run in the docker container.
docker run -it --rm adavec:latest bash
> make build
> cd sample
> ./run.sh
> ./bin/sample_program