28#ifndef _INTERFACE_DOC_HPP_
29#define _INTERFACE_DOC_HPP_
38inline namespace matrix {
66Matrix<C>::Matrix<C>();
73explicit Matrix<C>::Matrix<C>(
const comm_type& comm);
82Matrix<C>::Matrix<C>(
size_t n_row,
size_t n_col);
91Matrix<C>::Matrix<C>(
const comm_type& comm,
size_t n_row,
size_t n_col);
const comm_type & get_comm() const
Return the MPI communicator.
int get_comm_rank() const
Return the MPI rank.
std::vector< C > flatten()
Return the flattened vector.
void prep_local_to_global() const
Preprocess for fast conversion from local index to global one.
C allreduce_sum(C value) const
Return the summation of a scalar. Every processes returns the same value.
void prep_global_to_local() const
Preprocess for fast conversion from local index to global one.
const C & operator[](size_t i) const
Const array subscript operator.
int get_comm_size() const
Return the size of the MPI communicator.
size_t local_size() const
Return the number of elements in this process.
void barrier() const
Wrapper of MPI_Barrier.
int comm_type
Set MPI_Comm for MPI program.
Definition interface.hpp:44
void bcast(D *buffer, int count, int root) const
Wrapper of MPI_Bcast.
mptensor::complex complex
Definition matrix_lapack.cc:36
double min_abs(const Matrix< C > &a)
Return the minimum of the absolute value of elements.
int matrix_solve(Matrix< C > &a, Matrix< C > &b)
Solve linear equation .
int matrix_eigh(Matrix< C > &a, std::vector< double > &s, Matrix< C > &u)
double min(const Matrix< C > &a)
Return the minimum element.
double max_abs(const Matrix< C > &a)
Return the maximum of the absolute value of elements.
double max(const Matrix< C > &a)
Return the maximum element.
Definition complex.hpp:34