mptensor
v0.3.0
Parallel Library for Tensor Network Methods
|
Header file of helper functions for file io. More...
#include <fstream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include "mptensor/matrix.hpp"
Go to the source code of this file.
Namespaces | |
mptensor | |
mptensor::io_helper | |
Functions | |
std::string | mptensor::io_helper::binary_filename (const std::string &prefix, int comm_rank) |
std::string | mptensor::io_helper::index_filename (const std::string &prefix, int comm_rank) |
template<typename C > | |
void | mptensor::io_helper::load_binary (const std::string &prefix, int comm_rank, C *data_head, std::size_t local_size) |
template<template< typename > class Matrix, typename C > | |
void | mptensor::io_helper::load_local_files (const std::string &prefix, int comm_rank, size_t &local_size, std::vector< int > &dest_rank, std::vector< size_t > &local_idx, std::vector< C > &data, const Matrix< C > &mat) |
template<template< typename > class Matrix, typename C > | |
void | mptensor::io_helper::load_scalapack (const std::string &prefix, int loaded_comm_size, Matrix< C > &mat) |
Variables | |
constexpr bool | mptensor::io_helper::debug = true |
Header file of helper functions for file io.