Loading...
Searching...
No Matches
gpr::AtomsPositionAndType Struct Reference

Structure of atoms positions and types. More...

#include <structures/Structures.h>

Public Member Functions

void resize (const Index_t num_atoms)
void clear ()

Public Attributes

Coord positions
FieldMatrixIdx type

Detailed Description

Structure of atoms positions and types.

Definition at line 810 of file Structures.h.

Member Function Documentation

◆ clear()

void gpr::AtomsPositionAndType::clear ( )
inline

Definition at line 822 of file Structures.h.

823 {
824 positions.resize(0, 0);
825 type.resize(0, 0);
826 }

◆ resize()

void gpr::AtomsPositionAndType::resize ( const Index_t num_atoms)
inline

Definition at line 814 of file Structures.h.

815 {
816 positions.resize(1, num_atoms * 3);
817 positions.setZero();
818 type.resize(1, num_atoms);
819 type.setZero();
820 }

Member Data Documentation

◆ positions

Coord gpr::AtomsPositionAndType::positions

Definition at line 811 of file Structures.h.

◆ type

FieldMatrixIdx gpr::AtomsPositionAndType::type

Definition at line 812 of file Structures.h.


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