Back to packages

matrixMultiplication

A Mosaic package

Latest version
0.1.2

Documentation

matrixMultiplication

Description

Written in base lua, should work in all lua projects.

Originally designed for polytoria.

Multiplies 2 matricies of any size, as long as math permits it.

Usage

-- IN POLYTOPIA SCRIPT
local MatrixMultiplication = require(game["ScriptService"]["matrixMultiplication"])
-- declare matrices
local mat1 = {
    {1,2},
    {3,4}
}
local matrix2 = {
    {5,6},
    {7,8}
}
-- multiply them
local result = MatrixMultiplication(mat1,mat2)

Additional info

Github Repo

Discord - Gokselgnujd

License

MIT - license

Install

$ mosaic install matrixMultiplication@0.1.2

Or add to your mosaic.toml manually:

[dependencies]
matrixMultiplication = "0.1.2"

Usage

-- In your Polytoria script
local MatrixMultiplication = require(game["ScriptService"]["matrixMultiplication"])

Dependencies

No dependencies.

Version History

  • v0.1.2
    Feb 12, 2026
    Latest
  • v0.1.1
    Feb 12, 2026
  • v0.1.0
    Feb 12, 2026

Author

Goksel

License

None

Downloads

1