### The Maxima on-line user's manual

Algebra Calculator

#### Search:

-- Option variable: matrix_element_add Default value: `+`

`matrix_element_add` is the operation invoked in place of addition in a matrix multiplication. `matrix_element_add` can be assigned any n-ary operator (that is, a function which handles any number of arguments). The assigned value may be the name of an operator enclosed in quote marks, the name of a function, or a lambda expression.

See also `matrix_element_mult` and `matrix_element_transpose`.

Example:

```          (%i1) matrix_element_add: "*"\$
(%i2) matrix_element_mult: "^"\$
(%i3) aa: matrix ([a, b, c], [d, e, f]);
[ a  b  c ]
(%o3)                      [         ]
[ d  e  f ]
(%i4) bb: matrix ([u, v, w], [x, y, z]);
[ u  v  w ]
(%o4)                      [         ]
[ x  y  z ]
(%i5) aa . transpose (bb);
[  u  v  w   x  y  z ]
[ a  b  c   a  b  c  ]
(%o5)                [                    ]
[  u  v  w   x  y  z ]
[ d  e  f   d  e  f  ]```

```(%o1)                                true
(%i2) ```

### Related Examples

Calculate

matrix_element_mult:...

aa: matrix ([a, b, c...

Calculate

Calculate