/
| 845 | |
| 846 | /*****************************************************/ |
| 847 | std::complex<T> complex( const size_t x, const size_t y=0, const size_t z=0, const size_t batch=0 ) |
| 848 | { |
| 849 | if( is_real() ) |
| 850 | throw std::runtime_error( "complex() is not available for this real buffer" ); |
| 851 | else if( is_complex() || is_hermitian() ) |
| 852 | { |
| 853 | std::complex<T> this_complex( real( x, y, z, batch ), imag( x, y, z, batch ) ); |
| 854 | return this_complex; |
| 855 | } |
| 856 | else |
| 857 | throw std::runtime_error( "invalid layout type in complex()" ); |
| 858 | } |
| 859 | |
| 860 | /*****************************************************/ |
| 861 | size_t number_of_dimensions() |