public static DMatrix5x5 transpose( DMatrix5x5 input , DMatrix5x5 output ) {
        if( input == null )
            input = new DMatrix5x5();

        output.a11 = input.a11;
        output.a12 = input.a21;
        output.a13 = input.a31;
        output.a14 = input.a41;
        output.a15 = input.a51;
        output.a21 = input.a12;
        output.a22 = input.a22;
        output.a23 = input.a32;
        output.a24 = input.a42;
        output.a25 = input.a52;
        output.a31 = input.a13;
        output.a32 = input.a23;
        output.a33 = input.a33;
        output.a34 = input.a43;
        output.a35 = input.a53;
        output.a41 = input.a14;
        output.a42 = input.a24;
        output.a43 = input.a34;
        output.a44 = input.a44;
        output.a45 = input.a54;
        output.a51 = input.a15;
        output.a52 = input.a25;
        output.a53 = input.a35;
        output.a54 = input.a45;
        output.a55 = input.a55;

        return output;
    }
public static DMatrix5x5 transpose ( DMatrix5x5 input , DMatrix5x5 output ) { if ( input == null ) input = new DMatrix5x5 ( ) ; output . a11 = input . a11 ; output . a12 = input . a21 ; output . a13 = input . a31 ; output . a14 = input . a41 ; output . a15 = input . a51 ; output . a21 = input . a12 ; output . a22 = input . a22 ; output . a23 = input . a32 ; output . a24 = input . a42 ; output . a25 = input . a52 ; output . a31 = input . a13 ; output . a32 = input . a23 ; output . a33 = input . a33 ; output . a34 = input . a43 ; output . a35 = input . a53 ; output . a41 = input . a14 ; output . a42 = input . a24 ; output . a43 = input . a34 ; output . a44 = input . a44 ; output . a45 = input . a54 ; output . a51 = input . a15 ; output . a52 = input . a25 ; output . a53 = input . a35 ; output . a54 = input . a45 ; output . a55 = input . a55 ; return output ; }
<p>
Transposes matrix 'a' and stores the results in 'b':<br>
<br>
b<sub>ij</sub> = a<sub>ji</sub><br>
where 'b' is the transpose of 'a'.
</p>

@param input The original matrix.  Not modified.
@param output Where the transpose is stored. If null a new matrix is created. Modified.
@return The transposed matrix.