Template Function trx::with_trx_reader
Defined in File trx.h
Function Documentation
-
template<typename Fn>
auto trx::with_trx_reader(const std::string &path, Fn &&fn) -> decltype(fn(std::declval<TrxReader<float>&>(), TrxScalarType::Float32)) Load a TRX reader based on detected positions dtype.
- Template Parameters:
Fn – Callable invoked with (TrxReader<T>&, TrxScalarType).
- Parameters:
path – Path to TRX archive or directory.
fn – Callable for the loaded reader.
- Returns:
The return value of fn.