A PostgreSQL extension for basic linear algebra operations.
Adds two matrices.
SELECT mAdd('[[1.0, 2.0], [3.0, 4.0]]', '[[5.0, 6.0], [7.0, 8.0]]', 2, 2);
Subtracts matrix2 from matrix1.
SELECT mSubtract('[[1.0, 2.0], [3.0, 4.0]]', '[[5.0, 6.0], [7.0, 8.0]]', 2, 2);
Multiplies two matrices.
SELECT mMultiply('[[1.0, 2.0], [3.0, 4.0]]', '[[5.0, 6.0], [7.0, 8.0]]', 2, 2);
Transposes a matrix.
SELECT mTranspose('[[1.0, 2.0], [3.0, 4.0]]', 2, 2);
Computes the Singular Value Decomposition of a matrix.
SELECT mSvd('[[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]', 3, 2);