On this page:
top
up

7.7Basic OperationsπŸ”— i

procedure

( matrix-conjugate M)(Matrix Number )

Wikipedia: Conjugate Returns a matrix where each entry of the given matrix is conjugated.

Example:
> (matrix-conjugate (matrix ([10+1i][-12+1i])))

(array #[#[1 0-1i] #[-1 2-1i]])

procedure

( matrix-transpose M)(Matrix A)

M:(Matrix A)

procedure

( matrix-hermitian M)(Matrix Number )

Wikipedia: Transpose, Hermitian Returns the transpose or the hermitian of the matrix. The hermitian of a matrix is the conjugate of the transposed matrix. For a real matrix these operations return the the same result.

Examples:
> (matrix-transpose (matrix ([11][22][33])))

(array #[#[1 2 3] #[1 2 3]])

> (matrix-hermitian (matrix ([10+1i][20+2i][30+3i])))

(array #[#[1 2 3] #[0-1i 0-2i 0-3i]])

procedure

( matrix-trace M)Number

Wikipedia: Trace Returns the trace of the square matrix. The trace of matrix is the the sum of the diagonal entries.

Example:
> (matrix-trace (matrix ([12][34])))

5

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /