LibrpaOpticalResult Struct Reference

LibrpaOpticalResult Struct Reference#

LibRPA: LibrpaOpticalResult Struct Reference
LibRPA
LibrpaOpticalResult Struct Reference

#include <librpa_compute.h>

Public Attributes

int n_spins
 
int n_kpoints
 
int n_states
 
int n_frequencies
 
int head_rows
 
int head_columns
 
int wing_rows
 
int wing_columns
 
const double * velocity_ri
 
const double * frequencies_ha
 
const double * head_ri
 
const double * wing_ri
 

Detailed Description

Independently owned, rank-local snapshot of numerical optical outputs. Obtain this structure with librpa_get_optical_result and release it only with librpa_delete_optical_result. Do not modify its fields, free its arrays, or pass a copied structure to the deletion function. All arrays are read-only and remain valid until that original result is deleted, including after the handler is changed or destroyed. Empty arrays have null pointers.

Complex arrays are row-major, interleaved [real,imag]. Velocity is [n_spins][n_kpoints][3][n_states][n_states][2], in Hartree*Bohr; frequencies_ha contains n_frequencies imaginary-frequency nodes in Hartree. Head and wing are [n_frequencies][rows][columns][2], with their respective dimensions below. Head is dimensionless; the auxiliary-basis wing uses LibRPA's Coulomb-normalized response convention. No MPI gathering is done.


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