Matador is a CLI tool designed to perform matrix operations. It provides a command-line interface for easy manipulation and processing of matrices.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have Node.js and Yarn installed on your system. You can download and install Node.js from Node.js official site and Yarn from Yarn official site.
First, clone the repository to your local machine:
git clone https://github.com/passport90/matador.git
cd matadorThen, install the dependencies using Yarn:
yarn installTo run the tests for the application to ensure everything is working as expected:
yarn testThis will run the Jest test suites and provide a coverage report.
To build the application, you can run the following command which will compile the TypeScript files and generate the necessary JavaScript files in the dist directory:
yarn buildThis script cleans the dist folder and rebuilds the project.
After building the application, you can run it by using the start script from the command line. Here is an example of how to use the Matador CLI to perform a matrix addition:
yarn start "[[1,2],[3,4]]" + "[[5,6],[7,8]]"This command will execute the addition operation between two matrices. The matrices should be specified in JSON format. You can replace + with - for subtraction or * for multiplication, depending on the operation you want to perform.
Ensure the matrices are properly formatted and the operators are correctly placed between them as shown.
Marhadiasha Kusumawardhana
This project is licensed under the ISC License.