Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
ASTERIX Namespace Reference

Classes

struct  VCoords
struct  OrderedVDF
struct  UnorderedVDF
class  PhaseSpaceUnion

Functions

void compress_vdfs (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< CellID > &local_cells, P::ASTERIX_COMPRESSION_METHODS method, bool update_weights, std::vector< std::vector< char > > &mpl_bytes, uint32_t downsampling_factor=1)
void compress_vdfs_transfer_learning (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid)
std::size_t probe_network_size_in_bytes (dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, size_t number_of_spatial_cells)
std::vector< double > decompressArrayDouble (char *compressedData, size_t compressedSize, size_t arraySize, double tol)
std::vector< float > decompressArrayFloat (char *compressedData, size_t compressedSize, size_t arraySize, float tol)
auto extract_pop_vdf_from_spatial_cell (spatial_cell::SpatialCell *sc, uint popID) -> UnorderedVDF
auto extract_pop_vdf_from_spatial_cell_ordered_min_bbox_zoomed (spatial_cell::SpatialCell *sc, uint popID, int zoom) -> OrderedVDF
constexpr auto isPow2 (std::unsigned_integral auto val) -> bool
auto overwrite_pop_spatial_cell_vdf (spatial_cell::SpatialCell *sc, uint popID, const std::vector< Realf > &new_vspace) -> void
auto overwrite_pop_spatial_cell_vdf (spatial_cell::SpatialCell *sc, uint popID, const OrderedVDF &vdf) -> void
auto overwrite_cellids_vdfs (const std::span< const CellID > cids, uint popID, dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid, const std::vector< std::array< Real, 3 > > &vcoords, const std::vector< Realf > &vspace_union, const std::unordered_map< vmesh::LocalID, std::size_t > &map_exists_id) -> void
auto dump_vdf_to_binary_file (const char *filename, CellID cid) -> void
auto dump_vdf_to_binary_file (const char *filename, CellID cid, dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid) -> void
template<typename T>
auto shannon_entropy (const std::vector< T > &data) -> T
template<typename T>
auto theoritical_lossless_compression_ratio (const std::vector< T > &data, std::size_t bits) -> T
template<typename NetworkType>
auto calculate_total_size_bytes (const std::vector< std::size_t > &architecture, std::size_t fourier_order, std::size_t output_dim) -> std::size_t
template<typename NetworkType>
auto calculate_hidden_neurons (std::size_t N_input, std::size_t N_output, std::size_t num_hidden_layers, std::size_t target_size) -> std::vector< std::size_t >
Real get_Non_MaxWellianity (const spatial_cell::SpatialCell *cell, uint popID)
template<typename T>
void overwrite_cellids_vdf_single_cell (const std::span< const CellID > cids, uint popID, spatial_cell::SpatialCell *sc, size_t cc, const std::vector< std::array< T, 3 > > &vcoords, const std::vector< T > &vspace_union, const std::unordered_map< vmesh::LocalID, std::size_t > &map_exists_id)

Function Documentation

◆ calculate_hidden_neurons()

template<typename NetworkType>
auto ASTERIX::calculate_hidden_neurons ( std::size_t N_input,
std::size_t N_output,
std::size_t num_hidden_layers,
std::size_t target_size ) -> std::vector< std::size_t >

Definition at line 539 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_total_size_bytes()

template<typename NetworkType>
auto ASTERIX::calculate_total_size_bytes ( const std::vector< std::size_t > & architecture,
std::size_t fourier_order,
std::size_t output_dim ) -> std::size_t

Definition at line 517 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compress_vdfs()

void ASTERIX::compress_vdfs ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< CellID > & local_cells,
P::ASTERIX_COMPRESSION_METHODS method,
bool update_weights,
std::vector< std::vector< char > > & mpl_bytes,
uint32_t downsampling_factor = 1 )

Definition at line 102 of file compression.cpp.

Here is the caller graph for this function:

◆ compress_vdfs_transfer_learning()

void ASTERIX::compress_vdfs_transfer_learning ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid)

◆ decompressArrayDouble()

std::vector< double > ASTERIX::decompressArrayDouble ( char * compressedData,
size_t compressedSize,
size_t arraySize,
double tol )

◆ decompressArrayFloat()

std::vector< float > ASTERIX::decompressArrayFloat ( char * compressedData,
size_t compressedSize,
size_t arraySize,
float tol )

◆ dump_vdf_to_binary_file() [1/2]

auto ASTERIX::dump_vdf_to_binary_file ( const char * filename,
CellID cid ) -> void
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_vdf_to_binary_file() [2/2]

void ASTERIX::dump_vdf_to_binary_file ( const char * filename,
CellID cid,
dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid ) -> void

Definition at line 307 of file compression_tools.cpp.

Here is the call graph for this function:

◆ extract_pop_vdf_from_spatial_cell()

ASTERIX::UnorderedVDF ASTERIX::extract_pop_vdf_from_spatial_cell ( spatial_cell::SpatialCell * sc,
uint popID ) -> UnorderedVDF

Definition at line 33 of file compression_tools.cpp.

Here is the call graph for this function:

◆ extract_pop_vdf_from_spatial_cell_ordered_min_bbox_zoomed()

ASTERIX::OrderedVDF ASTERIX::extract_pop_vdf_from_spatial_cell_ordered_min_bbox_zoomed ( spatial_cell::SpatialCell * sc,
uint popID,
int zoom ) -> OrderedVDF

Definition at line 148 of file compression_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_Non_MaxWellianity()

Real ASTERIX::get_Non_MaxWellianity ( const spatial_cell::SpatialCell * cell,
uint popID )

Definition at line 317 of file compression_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPow2()

auto ASTERIX::isPow2 ( std::unsigned_integral auto val) -> bool
constexpr

Definition at line 471 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ overwrite_cellids_vdf_single_cell()

template<typename T>
void ASTERIX::overwrite_cellids_vdf_single_cell ( const std::span< const CellID > cids,
uint popID,
spatial_cell::SpatialCell * sc,
size_t cc,
const std::vector< std::array< T, 3 > > & vcoords,
const std::vector< T > & vspace_union,
const std::unordered_map< vmesh::LocalID, std::size_t > & map_exists_id )

Definition at line 589 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ overwrite_cellids_vdfs()

void ASTERIX::overwrite_cellids_vdfs ( const std::span< const CellID > cids,
uint popID,
dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
const std::vector< std::array< Real, 3 > > & vcoords,
const std::vector< Realf > & vspace_union,
const std::unordered_map< vmesh::LocalID, std::size_t > & map_exists_id ) -> void

Definition at line 262 of file compression_tools.cpp.

Here is the call graph for this function:

◆ overwrite_pop_spatial_cell_vdf() [1/2]

void ASTERIX::overwrite_pop_spatial_cell_vdf ( spatial_cell::SpatialCell * sc,
uint popID,
const OrderedVDF & vdf ) -> void

Definition at line 109 of file compression_tools.cpp.

Here is the call graph for this function:

◆ overwrite_pop_spatial_cell_vdf() [2/2]

void ASTERIX::overwrite_pop_spatial_cell_vdf ( spatial_cell::SpatialCell * sc,
uint popID,
const std::vector< Realf > & new_vspace ) -> void

Definition at line 81 of file compression_tools.cpp.

Here is the call graph for this function:

◆ probe_network_size_in_bytes()

std::size_t ASTERIX::probe_network_size_in_bytes ( dccrg::Dccrg< SpatialCell, dccrg::Cartesian_Geometry > & mpiGrid,
size_t number_of_spatial_cells )

◆ shannon_entropy()

template<typename T>
auto ASTERIX::shannon_entropy ( const std::vector< T > & data) -> T

Definition at line 489 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ theoritical_lossless_compression_ratio()

template<typename T>
auto ASTERIX::theoritical_lossless_compression_ratio ( const std::vector< T > & data,
std::size_t bits ) -> T

Definition at line 510 of file compression_tools.h.

Here is the call graph for this function:
Here is the caller graph for this function: