Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Matrix_element_transpose

-- Option variable: matrix_element_transpose Default value: `false`

`matrix_element_transpose` is the operation applied to each element of a matrix when it is transposed. `matrix_element_mult` can be assigned any unary operator. The assigned value may be the name of an operator enclosed in quote marks, the name of a function, or a lambda expression.

When `matrix_element_transpose` equals `transpose`, the `transpose` function is applied to every element. When `matrix_element_transpose` equals `nonscalars`, the `transpose` function is applied to every nonscalar element. If some element is an atom, the `nonscalars` option applies `transpose` only if the atom is declared nonscalar, while the `transpose` option always applies `transpose`.

The default value, `false`, means no operation is applied.

See also `matrix_element_add` and `matrix_element_mult`.

Examples:

```          (%i1) declare (a, nonscalar)\$
(%i2) transpose ([a, b]);
[ transpose(a) ]
(%o2)                   [              ]
[      b       ]
(%i3) matrix_element_transpose: nonscalars\$
(%i4) transpose ([a, b]);
[ transpose(a) ]
(%o4)                   [              ]
[      b       ]
(%i5) matrix_element_transpose: transpose\$
(%i6) transpose ([a, b]);
[ transpose(a) ]
(%o6)                   [              ]
[ transpose(b) ]
(%i7) matrix_element_transpose: lambda ([x], realpart(x)
- %i*imagpart(x))\$
(%i8) m: matrix ([1 + 5*%i, 3 - 2*%i], [7*%i, 11]);
[ 5 %i + 1  3 - 2 %i ]
(%o8)                [                    ]
[   7 %i       11    ]
(%i9) transpose (m);
[ 1 - 5 %i  - 7 %i ]
(%o9)                 [                  ]
[ 2 %i + 3    11   ]```

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

### Related Examples

##### transpose

D:matrix[[0,-1,1],[2,...

I;

matrix[[1,0],[0,1]];

Calculate

v1:[-1,0-1];

v2:[0,1,-1];

v3:[4,-2,-1];

Calculate

##### transpose

[a,b] . transpose([a,...

Calculate

##### transpose

? ? matrix.transpose;

Calculate

##### transpose

A: matrix [ [1, 0], [...

B: matrix [ [-1, 2], ...

A+transpose(B);

Calculate

##### transpose

Term:[x^2-8*x+7,x^2-1...

g:Term=0;

[transpose(Term),tran...

Calculate

##### transpose

/* Definintion von zw...

b:[false,false,true,t...

/* Definition einer V...

Calculate

##### transpose

B: matrix [ [-1, 2], ...

transpose(B);

Calculate

##### transpose

D:matrix[[0,-1,1],[2,...

I:matrix[[1,0],[0,1]];

transpose(D);

Calculate

##### matrix_element_transpose-transpose

? matrix_element_tran...

Calculate 