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

Inherits nlcglib::ScalarBaseZ.

Public Member Functions

 Scalar (std::vector< double > const &data__, std::vector< kindex_t > const &indices__, MPI_Comm mpi_comm=MPI_COMM_SELF)
 
 Scalar (std::vector< double > &&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< double > data
 
std::vector< kindex_t > indices
 
MPI_Comm mpi_comm
 

Detailed Description

Definition at line 136 of file adaptor.hpp.

Constructor & Destructor Documentation

◆ Scalar() [1/2]

sirius::Scalar::Scalar ( std::vector< double > const &  data__,
std::vector< kindex_t > const &  indices__,
MPI_Comm  mpi_comm = MPI_COMM_SELF 
)
inline

Definition at line 139 of file adaptor.hpp.

◆ Scalar() [2/2]

sirius::Scalar::Scalar ( std::vector< double > &&  data__,
std::vector< kindex_t > &&  indices__,
MPI_Comm  mpi_comm = MPI_COMM_SELF 
)
inline

Definition at line 146 of file adaptor.hpp.

Member Function Documentation

◆ get() [1/2]

buffer_t sirius::Scalar::get ( int  i)
inlineoverride

Definition at line 153 of file adaptor.hpp.

◆ get() [2/2]

const buffer_t sirius::Scalar::get ( int  i) const
inlineoverride

Definition at line 158 of file adaptor.hpp.

◆ size()

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

Definition at line 163 of file adaptor.hpp.

◆ mpicomm() [1/2]

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

Definition at line 168 of file adaptor.hpp.

◆ mpicomm() [2/2]

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

Definition at line 174 of file adaptor.hpp.

◆ kpoint_index()

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

Definition at line 179 of file adaptor.hpp.

Member Data Documentation

◆ data

std::vector<double> sirius::Scalar::data
private

Definition at line 185 of file adaptor.hpp.

◆ indices

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

Definition at line 186 of file adaptor.hpp.

◆ mpi_comm

MPI_Comm sirius::Scalar::mpi_comm
private

Definition at line 187 of file adaptor.hpp.


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