Add transposeConjugate function for Complex and Double (conjugates are not cached). Minor refactoring of MatrixContext and API reference changes #183
@ -93,6 +93,7 @@ public fun <T : Any> Matrix<T>.transpose(): Matrix<T> = getFeature<TransposedFea
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@JvmName("transposeConjugateDouble")
|
||||||
public fun Matrix<Double>.transposeConjugate(): Matrix<Double> = transpose()
|
public fun Matrix<Double>.transposeConjugate(): Matrix<Double> = transpose()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -100,6 +101,7 @@ public fun Matrix<Double>.transposeConjugate(): Matrix<Double> = transpose()
|
|||||||
*
|
*
|
||||||
* @return the Hermitian conjugate of this matrix.
|
* @return the Hermitian conjugate of this matrix.
|
||||||
*/
|
*/
|
||||||
|
@JvmName("transposeConjugateComplex")
|
||||||
public fun Matrix<Complex>.transposeConjugate(): Matrix<Complex> {
|
public fun Matrix<Complex>.transposeConjugate(): Matrix<Complex> {
|
||||||
val t = transpose()
|
val t = transpose()
|
||||||
return VirtualMatrix(t.rowNum, t.colNum) { i, j -> t[i,j].conjugate }
|
return VirtualMatrix(t.rowNum, t.colNum) { i, j -> t[i,j].conjugate }
|
||||||
|
Loading…
Reference in New Issue
Block a user