@@ -499,9 +499,7 @@ public void Initialize(Matrix<Complex32> matrix)
499499 SwapColumns ( _upper , i , indexSorting [ 0 ] ) ;
500500
501501 // Update P
502- var temp = _pivots [ i ] ;
503- _pivots [ i ] = _pivots [ indexSorting [ 0 ] ] ;
504- _pivots [ indexSorting [ 0 ] ] = temp ;
502+ ( _pivots [ i ] , _pivots [ indexSorting [ 0 ] ] ) = ( _pivots [ indexSorting [ 0 ] ] , _pivots [ i ] ) ;
505503 }
506504 }
507505
@@ -531,9 +529,7 @@ void PivotRow(Vector<Complex32> row)
531529 // store the pivots in the hashtable
532530 knownPivots . Add ( _pivots [ i ] , i ) ;
533531
534- var t = row [ i ] ;
535- row [ i ] = row [ _pivots [ i ] ] ;
536- row [ _pivots [ i ] ] = t ;
532+ ( row [ i ] , row [ _pivots [ i ] ] ) = ( row [ _pivots [ i ] ] , row [ i ] ) ;
537533 }
538534 }
539535 }
@@ -575,9 +571,7 @@ static void SwapColumns(Matrix<Complex32> matrix, int firstColumn, int secondCol
575571 {
576572 for ( var i = 0 ; i < matrix . RowCount ; i ++ )
577573 {
578- var temp = matrix [ i , firstColumn ] ;
579- matrix [ i , firstColumn ] = matrix [ i , secondColumn ] ;
580- matrix [ i , secondColumn ] = temp ;
574+ ( matrix [ i , firstColumn ] , matrix [ i , secondColumn ] ) = ( matrix [ i , secondColumn ] , matrix [ i , firstColumn ] ) ;
581575 }
582576 }
583577
@@ -862,9 +856,7 @@ static void Sift(int[] values, int start, int count)
862856 /// <param name="second">Second value to exchange</param>
863857 static void Exchange ( int [ ] values , int first , int second )
864858 {
865- var t = values [ first ] ;
866- values [ first ] = values [ second ] ;
867- values [ second ] = t ;
859+ ( values [ first ] , values [ second ] ) = ( values [ second ] , values [ first ] ) ;
868860 }
869861 }
870862}
0 commit comments