UNPKG

902 BMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function ctranspose
4
5Transpose and complex conjugate a matrix. All values of the matrix are
6reflected over its main diagonal and then the complex conjugate is
7taken. This is equivalent to complex conjugation for scalars and
8vectors.
9
10
11## Syntax
12
13```js
14math.ctranspose(x)
15```
16
17### Parameters
18
19Parameter | Type | Description
20--------- | ---- | -----------
21`x` | Array &#124; Matrix | Matrix to be ctransposed
22
23### Returns
24
25Type | Description
26---- | -----------
27Array &#124; Matrix | The ctransposed matrix
28
29
30## Examples
31
32```js
33const A = [[1, 2, 3], [4, 5, math.complex(6,7)]]
34math.ctranspose(A) // returns [[1, 4], [2, 5], [3, {re:6,im:7}]]
35```
36
37
38## See also
39
40[transpose](transpose.md),
41[diag](diag.md),
42[inv](inv.md),
43[subset](subset.md),
44[squeeze](squeeze.md)