docs: public static void magnitude(ZMatrixD1 input , DMatrixD1 output ) {
          if( input.numCols != output.numCols || input.numRows != output.numRows ) {
              throw new IllegalArgumentException("The matrices are not all the same dimension.");
          }
  
          final int length = input.getDataLength();
  
          for( int i = 0; i < length; i += 2 ) {
              double real = input.data[i];
              double imaginary = input.data[i+1];
  
              output.data[i/2] = Math.sqrt(real*real + imaginary*imaginary);
          }
      }