ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Base_Mixing::Mixing_Data Class Reference

data for Mixing class More...

#include <mixing_data.h>

Collaboration diagram for Base_Mixing::Mixing_Data:

Public Member Functions

 Mixing_Data ()=default
 
 Mixing_Data (const int &ndim, const std::size_t &length, const size_t &type_size)
 Construct a new Mixing_Data object.
 
 ~Mixing_Data ()
 Destroy the Mixing_Data object.
 
void resize (const int &ndim, const std::size_t &length, const size_t &type_size)
 resize the data
 
template<typename FPTYPE >
void push (const FPTYPE *data_in)
 push data to the tensor
 
void reset ()
 reset mixing
 
int index_move (const int &n) const
 get the index of i-th vector
 

Public Attributes

void * data = nullptr
 
int ndim_tot = 0
 
std::size_t length = 0
 
int start = -1
 
int ndim_use = 0
 
int ndim_history = 0
 

Detailed Description

data for Mixing class

Constructor & Destructor Documentation

◆ Mixing_Data() [1/2]

Base_Mixing::Mixing_Data::Mixing_Data ( )
default

◆ Mixing_Data() [2/2]

Base_Mixing::Mixing_Data::Mixing_Data ( const int &  ndim,
const std::size_t &  length,
const size_t &  type_size 
)

Construct a new Mixing_Data object.

Parameters
ndimstore ndim vectors for mixing
lengththe length of each vector
type_sizesize of type

◆ ~Mixing_Data()

Base_Mixing::Mixing_Data::~Mixing_Data ( )

Destroy the Mixing_Data object.

Member Function Documentation

◆ index_move()

int Base_Mixing::Mixing_Data::index_move ( const int &  n) const
inline

get the index of i-th vector

Here is the caller graph for this function:

◆ push()

template<typename FPTYPE >
void Base_Mixing::Mixing_Data::push ( const FPTYPE *  data_in)
inline

push data to the tensor

Here is the caller graph for this function:

◆ reset()

void Base_Mixing::Mixing_Data::reset ( )
inline

reset mixing

Here is the caller graph for this function:

◆ resize()

void Base_Mixing::Mixing_Data::resize ( const int &  ndim,
const std::size_t &  length,
const size_t &  type_size 
)

resize the data

Parameters
ndimstore ndim vectors for mixing
lengththe length of each vector
type_sizesize of type
Here is the caller graph for this function:

Member Data Documentation

◆ data

void* Base_Mixing::Mixing_Data::data = nullptr

◆ length

std::size_t Base_Mixing::Mixing_Data::length = 0

◆ ndim_history

int Base_Mixing::Mixing_Data::ndim_history = 0

◆ ndim_tot

int Base_Mixing::Mixing_Data::ndim_tot = 0

◆ ndim_use

int Base_Mixing::Mixing_Data::ndim_use = 0

◆ start

int Base_Mixing::Mixing_Data::start = -1

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