Skip to content

Commit f0ae0f3

Browse files
authored
fix: add missing type definitions for ctranspose (#3545)
1 parent 4ec99fc commit f0ae0f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

types/index.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,6 +1898,14 @@ export interface MathJsInstance extends MathJsFactory {
18981898
*/
18991899
cross(x: MathCollection, y: MathCollection): MathCollection
19001900

1901+
/**
1902+
* Transpose and complex conjugate a matrix. All values of the matrix are
1903+
* reflected over its main diagonal and then the complex conjugate is taken.
1904+
* This is equivalent to complex conjugation for scalars and vectors.
1905+
* @param x Matrix to be ctransposed
1906+
*/
1907+
ctranspose(x: MathCollection): MathCollection
1908+
19011909
/**
19021910
* Calculate the determinant of a matrix.
19031911
* @param x A Matrix
@@ -5816,6 +5824,13 @@ export interface MathJsChain<TValue> {
58165824
y: MathCollection
58175825
): MathJsChain<MathCollection>
58185826

5827+
/**
5828+
* Transpose and complex conjugate a matrix. All values of the matrix are
5829+
* reflected over its main diagonal and then the complex conjugate is taken.
5830+
* This is equivalent to complex conjugation for scalars and vectors.
5831+
*/
5832+
ctranspose(this: MathJsChain<MathCollection>): MathJsChain<MathCollection>
5833+
58195834
/**
58205835
* Calculate the difference between adjacent elements of the chained matrix or array.
58215836
* @param dim The dimension to apply the difference on.
@@ -7302,6 +7317,7 @@ export const {
73027317
apply, // @deprecated prior name of mapSlices
73037318
concat,
73047319
cross,
7320+
ctranspose,
73057321
det,
73067322
diag,
73077323
dot,

0 commit comments

Comments
 (0)