matrix-display
v1.0.9
Published
A CLI tool for matrix opertaions visualization.
Downloads
10
Readme
MatrixDisplay
This is a simple command-line tool designed for quick and easy matrix operations. It allows users to add, subtract, and multiply matrices, generate sample matrices, and control the operation delay for better visualization.
Commands -
ADD
npx matrix-display --size "[2,3]" --add "[1,2,3,4,5,6,7,8,9,10,11,12]"
Note: --size specifies the matrix dimensions as [rows, cols].
SUBTRACT
npx matrix-display --size "[2,3]" --subtract "[1,2,3,4,5,6,7,8,9,10,11,12]"
Note: --size specifies the matrix dimensions as [rows, cols].
MULTIPLY
npx matrix-display --size "[2,3,3,2]" --multiply "[1,2,3,4,5,6,7,8,9,10,11,12]"
Note: For multiplication, --size denotes [rows1, cols1, rows2, cols2] for the two matrices.
USE SAMPLES
npx matrix-display --size "[2,3]" --add --sample
npx matrix-display --size "[3,5]" --subtract --sample
npx matrix-display --size "[2,3,3,2]" --multiply --sample
NOTE: Sample matrices could directly be used with the operation commands.
GENERATE SAMPLES
npx matrix-display --size "[2,2]" --sample
npx matrix-display --size "[2,3,3,2]" --sample
NOTE: Sample matrices could be generated to be later used as inputs.
DELAY OPERATIONS
npx matrix-display --size "[2,3]" --add --sample --delay 200
npx matrix-display --size "[2,3,3,2]" --multiply --sample --delay 250
NOTE: Delay time is in micro seconds and defaults to 200ms.