Skip to content

passport90/matador

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matador

Matador is a CLI tool designed to perform matrix operations. It provides a command-line interface for easy manipulation and processing of matrices.

Instructions

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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.

Installing

First, clone the repository to your local machine:

git clone https://github.com/passport90/matador.git
cd matador

Then, install the dependencies using Yarn:

yarn install

Testing

To run the tests for the application to ensure everything is working as expected:

yarn test

This will run the Jest test suites and provide a coverage report.

Building the Application

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 build

This script cleans the dist folder and rebuilds the project.

Running the Application

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.

Author

Marhadiasha Kusumawardhana

License

This project is licensed under the ISC License.

About

A versatile CLI tool for performing matrix operations. Seamlessly handle matrix addition, subtraction, and multiplication with ease.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors