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

TODO: Array1d owns data... More...

#include <adaptor.hpp>

Inherits nlcglib::VectorBaseZ.

Public Member Functions

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

Detailed Description

TODO: Array1d owns data...

Definition at line 87 of file adaptor.hpp.

Constructor & Destructor Documentation

◆ Array1d() [1/2]

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

Definition at line 90 of file adaptor.hpp.

◆ Array1d() [2/2]

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

Definition at line 98 of file adaptor.hpp.

Member Function Documentation

◆ size()

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

Definition at line 108 of file adaptor.hpp.

◆ mpicomm() [1/2]

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

Definition at line 113 of file adaptor.hpp.

◆ mpicomm() [2/2]

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

Definition at line 119 of file adaptor.hpp.

◆ kpoint_index()

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

Definition at line 124 of file adaptor.hpp.

Member Data Documentation

◆ data

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

Definition at line 131 of file adaptor.hpp.

◆ indices

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

Definition at line 132 of file adaptor.hpp.

◆ mpi_comm

MPI_Comm sirius::Array1d::mpi_comm
private

Definition at line 133 of file adaptor.hpp.


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