SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Private Attributes | List of all members
sirius::Matrix Class Reference

Inherits nlcglib::MatrixBaseZ.

Public Member Functions

 Matrix (std::vector< buffer_t > const &data, std::vector< kindex_t > const &indices, MPI_Comm mpi_comm=MPI_COMM_SELF)
 
 Matrix (std::vector< buffer_t > &&data, std::vector< kindex_t > &&indices, MPI_Comm mpi_comm=MPI_COMM_SELF)
 
buffer_t get (int i) override
 
const buffer_t get (int i) const override
 
int size () const override
 
MPI_Comm mpicomm (int i) const override
 
MPI_Comm mpicomm () const override
 
kindex_t kpoint_index (int i) const override
 

Private Attributes

std::vector< buffer_t > data
 
std::vector< kindex_t > indices
 
MPI_Comm mpi_comm
 

Detailed Description

Definition at line 40 of file adaptor.hpp.

Constructor & Destructor Documentation

◆ Matrix() [1/2]

sirius::Matrix::Matrix ( std::vector< buffer_t > const &  data,
std::vector< kindex_t > const &  indices,
MPI_Comm  mpi_comm = MPI_COMM_SELF 
)
inline

Definition at line 43 of file adaptor.hpp.

◆ Matrix() [2/2]

sirius::Matrix::Matrix ( std::vector< buffer_t > &&  data,
std::vector< kindex_t > &&  indices,
MPI_Comm  mpi_comm = MPI_COMM_SELF 
)
inline

Definition at line 50 of file adaptor.hpp.

Member Function Documentation

◆ size()

int sirius::Matrix::size ( ) const
inlineoverride

Definition at line 60 of file adaptor.hpp.

◆ mpicomm() [1/2]

MPI_Comm sirius::Matrix::mpicomm ( int  i) const
inlineoverride

Definition at line 65 of file adaptor.hpp.

◆ mpicomm() [2/2]

MPI_Comm sirius::Matrix::mpicomm ( ) const
inlineoverride

Definition at line 70 of file adaptor.hpp.

◆ kpoint_index()

kindex_t sirius::Matrix::kpoint_index ( int  i) const
inlineoverride

Definition at line 75 of file adaptor.hpp.

Member Data Documentation

◆ data

std::vector<buffer_t> sirius::Matrix::data
private

Definition at line 81 of file adaptor.hpp.

◆ indices

std::vector<kindex_t> sirius::Matrix::indices
private

Definition at line 82 of file adaptor.hpp.

◆ mpi_comm

MPI_Comm sirius::Matrix::mpi_comm
private

Definition at line 83 of file adaptor.hpp.


The documentation for this class was generated from the following file: