mptensor  v0.3.0
Parallel Library for Tensor Network Methods
mptensor::io_helper Namespace Reference

Functions

std::string binary_filename (const std::string &prefix, int comm_rank)
 
std::string index_filename (const std::string &prefix, int comm_rank)
 
template<typename C >
void 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 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 load_scalapack (const std::string &prefix, int loaded_comm_size, Matrix< C > &mat)
 

Variables

constexpr bool debug = true
 

Function Documentation

◆ binary_filename()

std::string mptensor::io_helper::binary_filename ( const std::string &  prefix,
int  comm_rank 
)
inline

◆ index_filename()

std::string mptensor::io_helper::index_filename ( const std::string &  prefix,
int  comm_rank 
)
inline

◆ load_binary()

template<typename C >
void mptensor::io_helper::load_binary ( const std::string &  prefix,
int  comm_rank,
C *  data_head,
std::size_t  local_size 
)

◆ load_local_files()

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 
)

◆ load_scalapack()

template<template< typename > class Matrix, typename C >
void mptensor::io_helper::load_scalapack ( const std::string &  prefix,
int  loaded_comm_size,
Matrix< C > &  mat 
)

Variable Documentation

◆ debug

constexpr bool mptensor::io_helper::debug = true
constexpr