Basic implementation of the LUT interface.
More...
#include <Lut.h>
Basic implementation of the LUT interface.
Definition at line 39 of file Lut.h.
Constructor: initializes a LUT which can contain num_values values of data_type type.
- Parameters
-
[in] | num_elements | Number of elements of the LUT. |
[in] | data_type | Data type of each element. |
Return a pointer to the lut's allocator.
- Returns
- A pointer to the lut's allocator
uint8_t* buffer |
( |
| ) |
const |
|
overridevirtual |
Returns a pointer to the start of the LUT.
Other elements of the LUT can be accessed using buffer()[idx] for 0 <= idx < num_elements().
- Returns
- Pointer to the start of the lut.
Implements ILut.
Clears the LUT by setting every element to zero.
Implements ILut.
uint32_t index_offset |
( |
| ) |
const |
|
overridevirtual |
Indicates the offset that needs to be applied to the raw index before performing a lookup in the LUT.
- Returns
- The normalization offset.
Implements ILut.
size_t num_elements |
( |
| ) |
const |
|
overridevirtual |
Returns the total number of elements in the LUT.
- Returns
- Total number of elements.
Implements ILut.
size_t size_in_bytes |
( |
| ) |
const |
|
overridevirtual |
Returns the total size in bytes of the LUT.
- Returns
- Total size of the LUT in bytes.
Implements ILut.
Returns the type of the LUT.
- Returns
- The type of the LUT.
Implements ILut.
The documentation for this class was generated from the following file:
- arm_compute/runtime/Lut.h