(matrix, t)
| 227 | is_even = _math_ops.cast(1 - (fft_length[-1] % 2), _dtypes.complex64) |
| 228 | |
| 229 | def _tile_for_broadcasting(matrix, t): |
| 230 | expanded = _array_ops.reshape( |
| 231 | matrix, |
| 232 | _array_ops.concat([ |
| 233 | _array_ops.ones([_array_ops.rank(t) - 2], _dtypes.int32), |
| 234 | _array_ops.shape(matrix) |
| 235 | ], 0)) |
| 236 | return _array_ops.tile( |
| 237 | expanded, _array_ops.concat([_array_ops.shape(t)[:-2], [1, 1]], 0)) |
| 238 | |
| 239 | def _mask_matrix(length): |
| 240 | """Computes t_n = exp(sqrt(-1) * pi * n^2 / line_len).""" |