summaryrefslogtreecommitdiff
path: root/src/matrixOperations/transpose
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/transpose')
-rw-r--r--src/matrixOperations/transpose/ctransposea.c4
-rw-r--r--src/matrixOperations/transpose/testMatrixTranspose.c4
-rw-r--r--src/matrixOperations/transpose/ztransposea.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/matrixOperations/transpose/ctransposea.c b/src/matrixOperations/transpose/ctransposea.c
index 74291cf9..ed4c34bc 100644
--- a/src/matrixOperations/transpose/ctransposea.c
+++ b/src/matrixOperations/transpose/ctransposea.c
@@ -21,8 +21,8 @@ void ctransposea ( floatComplex* in , int lines1 , int column1, floatComplex* ou
for(index = 0 ; index < lines1 * column1 ; index++)
{
newCoord = index % column1 * lines1 + ( index / column1);
- /* Hermitian transpose*/
- out[newCoord] = FloatComplex ( creals( in[index]) , -cimags ( in[index]));
+
+ out[newCoord] = FloatComplex ( creals( in[index]) , cimags ( in[index]));
}
}
diff --git a/src/matrixOperations/transpose/testMatrixTranspose.c b/src/matrixOperations/transpose/testMatrixTranspose.c
index 0413455f..790b3a4f 100644
--- a/src/matrixOperations/transpose/testMatrixTranspose.c
+++ b/src/matrixOperations/transpose/testMatrixTranspose.c
@@ -345,7 +345,7 @@ static void ctranspaTest (void ) {
for ( i = 0 ; i < LINE*COLUMN ; i++ )
{
in[i] = FloatComplex ( Pin[i] , Pin[i] ) ;
- Result[i] = FloatComplex ( PResult[i] , - PResult[i] ) ;
+ Result[i] = FloatComplex ( PResult[i] , PResult[i] ) ;
}
@@ -474,7 +474,7 @@ static void ztranspaTest (void ) {
for ( i = 0 ; i < LINE*COLUMN ; i++ )
{
in[i] = DoubleComplex ( Pin[i] , Pin[i] ) ;
- Result[i] = DoubleComplex ( PResult[i] , - PResult[i] ) ;
+ Result[i] = DoubleComplex ( PResult[i] , PResult[i] ) ;
}
diff --git a/src/matrixOperations/transpose/ztransposea.c b/src/matrixOperations/transpose/ztransposea.c
index 54aeaf1c..5d78c5f6 100644
--- a/src/matrixOperations/transpose/ztransposea.c
+++ b/src/matrixOperations/transpose/ztransposea.c
@@ -19,8 +19,8 @@ void ztransposea ( doubleComplex* in , int lines1 , int column1, doubleComplex*
for(index = 0 ; index < lines1 * column1 ; index++)
{
newCoord = index % column1 * lines1 + ( index / column1);
- /* Hermitian transpose*/
- out[newCoord] = DoubleComplex ( zreals( in[index]) , -zimags ( in[index]));
+
+ out[newCoord] = DoubleComplex ( zreals( in[index]) , zimags ( in[index]));
}