function splitRealAndImagArrays(complex) {
	  var real = new Float32Array(complex.length / 2);
	  var imag = new Float32Array(complex.length / 2);

	  for (var i = 0; i < complex.length; i += 2) {
	    real[i / 2] = complex[i];
	    imag[i / 2] = complex[i + 1];
	  }

	  return {
	    real: real,
	    imag: imag
	  };
	}
Splits a complex Float32Array into real and imag parts.

The memory layout is interleaved as follows:
complex: [r0, i0, r1, i1, r2, i2]
real: [r0, r1, r2]
imag: [i0, i1, i2]

This is the inverse of mergeRealAndImagArrays.

@param complex The complex tensor values.
@returns An object with real and imag Float32Array components of the complex
    tensor.