mptensor  v0.3.0
Parallel Library for Tensor Network Methods
matrix_scalapack_impl.hpp File Reference

Implementation of scalapack::Matrix class. More...

#include <algorithm>
#include <cassert>
#include <cfloat>
#include <complex>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <mpi.h>
#include "../complex.hpp"
#include "../mpi_wrapper.hpp"
#include "blacsgrid.hpp"

Go to the source code of this file.

Namespaces

 mptensor
 
 mptensor::scalapack
 Namespace for the distributed Matrix class with ScaLAPACK, PBLAS, and BLACS.
 

Functions

int numroc_ (int *M, int *MB, int *prow, int *irsrc, int *nprow)
 
void descinit_ (int desca[], int *M, int *N, int *MB, int *NB, int *irsrc, int *icsrc, int *ictxt, int *lld, int *info)
 
Matrix operations
template<typename C >
void mptensor::scalapack::replace_matrix_data (const Matrix< C > &M, const std::vector< int > &dest_rank, const std::vector< size_t > &local_position, Matrix< C > &M_new)
 
template<typename C >
void mptensor::scalapack::replace_matrix_data (const std::vector< C > &V, const std::vector< int > &dest_rank, const std::vector< size_t > &local_position, Matrix< C > &M_new)
 
template<typename C >
void mptensor::scalapack::sum_matrix_data (const Matrix< C > &M, const std::vector< int > &dest_rank, const std::vector< size_t > &local_position, Matrix< C > &M_new)
 
template<typename C >
double mptensor::scalapack::max_abs (const Matrix< C > &a)
 
template<typename C >
double mptensor::scalapack::min_abs (const Matrix< C > &a)
 

Detailed Description

Implementation of scalapack::Matrix class.

Author
Satoshi Morita morit.nosp@m.a@is.nosp@m.sp.u-.nosp@m.toky.nosp@m.o.ac..nosp@m.jp
Date
Jan 29 2015

Function Documentation

◆ descinit_()

void descinit_ ( int  desca[],
int *  M,
int *  N,
int *  MB,
int *  NB,
int *  irsrc,
int *  icsrc,
int *  ictxt,
int *  lld,
int *  info 
)

◆ numroc_()

int numroc_ ( int *  M,
int *  MB,
int *  prow,
int *  irsrc,
int *  nprow 
)