MCPcopy Create free account
hub / github.com/arrayfire/forge / fg_create_histogram

Function fg_create_histogram

src/api/c/histogram.cpp:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using forge::common::getHistogram;
18
19fg_err fg_create_histogram(fg_histogram *pHistogram,
20 const unsigned pNBins, const fg_dtype pType)
21{
22 try {
23 ARG_ASSERT(1, (pNBins>0));
24
25 *pHistogram = getHandle(new common::Histogram(pNBins, (forge::dtype)pType));
26 }
27 CATCHALL
28
29 return FG_ERR_NONE;
30}
31
32fg_err fg_retain_histogram(fg_histogram* pOut, fg_histogram pIn)
33{

Callers 1

HistogramMethod · 0.85

Calls 1

getHandleFunction · 0.85

Tested by

no test coverage detected