MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / complex

Method complex

src/tests/buffer.h:847–858  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

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()

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected