|
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 |
| 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 be filled with N values.If the returned pointer is equal to buffer, this means that buffer has been filled with the contents of the i-th dimension element.
If the returned pointer is not equal to buffer, it should refer to another array of length N. This array should be valid for the lifetime of the Matrix object used to construct this MyopicDenseExtractor. Similarly, the contents should not change for the lifetime of the Matrix. In this situation, no guarantees are provided for the contents of buffer.