mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
45 lines (29 loc) • 902 B
Markdown
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
Transpose and complex conjugate a matrix. All values of the matrix are
reflected over its main diagonal and then the complex conjugate is
taken. This is equivalent to complex conjugation for scalars and
vectors.
```js
math.ctranspose(x)
```
Parameter | Type | Description
--------- | ---- | -----------
`x` | Array &
Type | Description
---- | -----------
Array &
```js
const A = [[1, 2, 3], [4, 5, math.complex(6,7)]]
math.ctranspose(A) // returns [[1, 4], [2, 5], [3, {re:6,im:7}]]
```
[ ](transpose.md),
[ ](diag.md),
[ ](inv.md),
[ ](subset.md),
[ ](squeeze.md)