12 template <
typename IndexType =
int,
typename ValueType =
float>
23 inline void add_entry(IndexType index, ValueType value)
41 explicit Mille(std::string_view outFileName,
bool asBinary =
true,
bool writeZero =
false);
45 void special(
const std::vector<std::pair<int, float>>& special_data);
std::vector< ValueType > value_buffer_
void add_entry(IndexType index, ValueType value)
auto get_indices() -> const auto &
auto get_current_size() -> std::size_t
auto get_values() -> const auto &
std::vector< IndexType > index_buffer_
void write_to_non_binary()
void mille(const MilleDataPoint &data_point)
void check_buffer_size(std::size_t nLocal, std::size_t nGlobal)
Mille(std::string_view outFileName, bool asBinary=true, bool writeZero=false)
std::ofstream output_file_
static constexpr unsigned int max_label_size_
std::size_t max_buffer_size_
void set_buffer_size(std::size_t buffer_size)
MilleBuffer< int, float > buffer_
void special(const std::vector< std::pair< int, float > > &special_data)
constexpr auto DEFAULT_BUFFER_SIZE