|
tatami
C++ API for different matrix representations
|
Extract an element of the target dimension in dense form without an oracle. More...
#include <Extractor.hpp>
Public Member Functions | |
| virtual const Value_ * | fetch (Index_ i, Value_ *buffer)=0 |
Extract an element of the target dimension in dense form without an oracle.
| Value_ | Data value type, should be numeric. |
| Index_ | Row/column index type, should be integer. |
|
pure virtual |
buffer may not necessarily be filled upon extraction if a pointer can be returned to the underlying data store. This can be checked by comparing the returned pointer to buffer; if they are the same, buffer has been filled.
| i | Index of the target dimension element, i.e., the row or column index. | |
| [out] | buffer | Pointer to an array of length no less than N, where N is defined as:
|
i-th dimension element. This is guaranteed to hold N values.