Contact

MMULT Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Multiply matrices with Apache OpenOffice MMULT. Check inner dimensions, row-column products, noncommuting examples and selected inverse-product components.

Verification status: Eight ordinary scalar or INDEX-selected reference formulas were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, through generated native ODF and GUI hard recalculation. Saved identities, inputs and results were checked. How formula examples are checked

Quick answer: =INDEX(MMULT(F2:G3;I2:J3);1;1) returned 2 in the tested Apache OpenOffice 4.1.16 build. Use the numeric worksheet setup below for these range addresses.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this is a verified release, not a final supported version.
  • Scope: Desktop Calc, English function names and semicolon-separated formulas.
  • Checked: October 14, 2026. Eight ordinary scalar or INDEX-selected reference formulas were recalculated from generated ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent arithmetic were checked.

What MMULT returns

MMULT performs matrix multiplication. Each output entry is the dot product of one row of Array1 with one column of Array2. It is different from multiplying corresponding cells and different from PRODUCT’s multiplication of a list of factors. Release implementation.

Syntax and arguments

MMULT(Array1;Array2)
  • Array1: first numeric matrix, with r rows and k columns.
  • Array2: second numeric matrix, with k rows and c columns.
  • The result has r rows and c columns. The inner dimensions must match; both arrays are required.

Numeric worksheet setup

Enter these matrices as ordinary numeric cells, keeping their rows and columns in order:

Matrix Range First row Second row Third row
A F2:G3 1, 2 3, 5 —
B I2:J3 2, 1 0, 3 —
C L2:N4 1, 2, 3 0, 1, 4 5, 6, 0
D P2:Q3 2, 0 0, 4 —

Eight reproducible examples

The native column contains saved 4.1.16 results; independent references use high-precision arithmetic and the stated source rules. Values are shown to twelve decimal places where needed. The range examples use the numeric setup above.

Formula Native 4.1.16 result Independent reference
=INDEX(MMULT(F2:G3;I2:J3);1;1) 2 2
=INDEX(MMULT(F2:G3;I2:J3);1;2) 7 7
=INDEX(MMULT(F2:G3;I2:J3);2;1) 6 6
=INDEX(MMULT(F2:G3;I2:J3);2;2) 18 18
=INDEX(MMULT(I2:J3;F2:G3);1;1) 5 5
=INDEX(MMULT(I2:J3;F2:G3);2;2) 15 15
=INDEX(MMULT(F2:G3;MINVERSE(F2:G3));1;1) 1 1
=INDEX(MMULT(F2:G3;MINVERSE(F2:G3));1;2) 0 0

Practical worksheet

For A=[[1,2],[3,5]] and B=[[2,1],[0,3]], A×B is [[2,7],[6,18]]. For example, the top-right entry is 1×1+2×3=7. The first four examples extract this matrix’s entries with INDEX.

Reversing the order changes the result: B×A=[[5,9],[9,15]]. Its top-left and bottom-right entries are 5 and 15, rather than 2 and 18. Matrix multiplication is generally not commutative, even when both orders are dimensionally valid.

Advanced interpretation and checks

A×A⁻¹ should be the identity matrix in exact arithmetic. The two native component checks extract the top-left and top-right of that product; their displayed values are 1 and 0 at the stated precision. Retained small residuals must not be interpreted as proof that every computed inverse gives an exact identity.

For square matrices, determinants satisfy det(A×B)=det(A)det(B). Here that gives −6. These are independent algebra checks of the stated inputs, not a general accuracy certificate for poorly conditioned or extremely large matrices.

Boundaries and troubleshooting

The release requires numeric matrix inputs and checks that Array1’s column count equals Array2’s row count. It then builds the result by summing row-column products. Nonnumeric cells, shape mismatches and extreme dimensions were not executed in this fixture.

Use INDEX to reproduce the listed scalar component checks. They establish the matrix-calculation path and those positions; they do not test whole-array placement or automatic expansion in the GUI. Keep input ranges separate from outputs to avoid introducing circular references.

Official evidence and checking scope

The generated ODF produced the informational load warning “Not all attributes could be read.” The sheet was hard-recalculated and saved separately. All eight ordinary formula identities, inputs and selected results were reconciled; a stale SUM cache changed from 999999 to 3 and an uncached SUM returned 7. This establishes the stated examples, not every workbook style, invalid input or GUI whole-array entry. INDEX wrappers select individual returned components. Other explanatory identities are independent calculations. The authoring-tool XLSX was not executed in OpenOffice, and its preview values are not the native results reported here.