MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / setElementWithUnity

Function setElementWithUnity

src/tests/include/blas-random.h:781–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779
780template <typename T>
781static void
782setElementWithUnity(T *p, int vectorLength)
783{
784 p[0] = (T)1.0;
785 if ( vectorLength == 2)
786 {
787 p[1] = 0.0f;
788 }
789}
790
791
792template <typename T>

Callers 2

doPopulateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected