55 int ci = 0.5 * ain.cols() + 1;
56 int cf = ain.cols() - ci;
58 aout.block( 0, 0, ain.rows(), ci ) = ain.block( 0, 0, ain.rows(), ci );
59 aout.block( 0, aout.cols() - cf, ain.rows(), cf ) = ain.block( 0, ain.cols() - cf, ain.rows(), cf );
80 int ri = 0.5 * ain.rows() + 1;
81 int ci = 0.5 * ain.cols() + 1;
83 int rf = ain.rows() - ri;
84 int cf = ain.cols() - ci;
86 aout.topLeftCorner( ri, ci ) = ain.topLeftCorner( ri, ci );
87 aout.bottomLeftCorner( rf, ci ) = ain.bottomLeftCorner( rf, ci );
88 aout.topRightCorner( ri, cf ) = ain.topRightCorner( ri, cf );
89 aout.bottomRightCorner( rf, cf ) = ain.bottomRightCorner( rf, cf );
108 int padRows = aout.rows() - ain.rows();
109 int padCols = aout.cols() - ain.cols();
114 int c1 = 0.5 * ain.cols() + 1;
116 int r2 = aout.rows() - ( r1 + padRows );
117 int c2 = aout.cols() - ( c1 + padCols );
119 aout.block( 0, 0, r1, c1 ) = ain.block( 0, 0, r1, c1 );
121 aout.block( 0, c1 + padCols, r1, c2 ) = ain.block( 0, c1, r1, c2 );
124 for(
int cc = 1; cc < c1 - 1; ++cc )
126 for(
int rr = 1; rr < r1 - 1; ++rr )
128 aout( aout.rows() - rr, aout.cols() - cc ) = conj( ain( rr, cc ) );
133 for(
int rr = 1; rr < ain.rows() - 1; ++rr )
135 aout( aout.rows() - rr, 0 ) = conj( ain( rr, 0 ) );
138 aout.block( aout.rows() - rr, 1, 1, aout.cols() - padCols - c1 + 1 ) =
139 conj( ain.block( rr, c1 - 1, 1, ain.cols() - c1 + 1 ).reverse() );