Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::fast_multipole_embedder::LinearQuadtreeExpansion Class Reference

#include <ogdf/energybased/fast_multipole_embedder/LinearQuadtreeExpansion.h>

Public Member Functions

 LinearQuadtreeExpansion (uint32_t precision, const LinearQuadtree &tree)
 constructor
 
 ~LinearQuadtreeExpansion (void)
 destructor
 
void L2L (uint32_t source, uint32_t receiver)
 shifts the source local coefficient to the center of the receiver and adds them
 
void L2P (uint32_t source, uint32_t point, float &fx, float &fy)
 evaluates the derivate of the local expansion at the point and adds the forces to fx fy
 
doublelocalExp () const
 returns the array with local coefficients
 
void M2L (uint32_t source, uint32_t receiver)
 converts the source multipole coefficient in to a local coefficients at the center of the receiver and adds them
 
void M2M (uint32_t source, uint32_t receiver)
 shifts the source multipole coefficient to the center of the receiver and adds them
 
doublemultiExp () const
 returns the array with multipole coefficients
 
uint32_t numCoeff () const
 number of coefficients per expansions
 
void P2M (uint32_t point, uint32_t receiver)
 adds a point with the given charge to the receiver expansion
 
uint32_t sizeInBytes () const
 returns the size in bytes
 
const LinearQuadtreetree ()
 the quadtree
 

Public Attributes

BinCoeff< doublebinCoef
 
doublem_localExp
 the big local expansion coeff array
 
doublem_multiExp
 the big multipole expansione coeff array
 
uint32_t m_numCoeff
 the number of coeff per expansions
 
uint32_t m_numExp
 the number of multipole (locale) expansions
 

Private Member Functions

void allocate ()
 allocates the space for the coeffs
 
void deallocate ()
 releases the memory for the coeffs
 

Private Attributes

const LinearQuadtreem_tree
 the Quadtree reference
 

Detailed Description

Definition at line 39 of file LinearQuadtreeExpansion.h.

Constructor & Destructor Documentation

◆ LinearQuadtreeExpansion()

ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::LinearQuadtreeExpansion ( uint32_t  precision,
const LinearQuadtree tree 
)

constructor

◆ ~LinearQuadtreeExpansion()

ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::~LinearQuadtreeExpansion ( void  )

destructor

Member Function Documentation

◆ allocate()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::allocate ( )
private

allocates the space for the coeffs

◆ deallocate()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::deallocate ( )
private

releases the memory for the coeffs

◆ L2L()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::L2L ( uint32_t  source,
uint32_t  receiver 
)

shifts the source local coefficient to the center of the receiver and adds them

◆ L2P()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::L2P ( uint32_t  source,
uint32_t  point,
float fx,
float fy 
)

evaluates the derivate of the local expansion at the point and adds the forces to fx fy

◆ localExp()

double * ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::localExp ( ) const
inline

returns the array with local coefficients

Definition at line 69 of file LinearQuadtreeExpansion.h.

◆ M2L()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::M2L ( uint32_t  source,
uint32_t  receiver 
)

converts the source multipole coefficient in to a local coefficients at the center of the receiver and adds them

◆ M2M()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::M2M ( uint32_t  source,
uint32_t  receiver 
)

shifts the source multipole coefficient to the center of the receiver and adds them

◆ multiExp()

double * ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::multiExp ( ) const
inline

returns the array with multipole coefficients

Definition at line 66 of file LinearQuadtreeExpansion.h.

◆ numCoeff()

uint32_t ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::numCoeff ( ) const
inline

number of coefficients per expansions

Definition at line 72 of file LinearQuadtreeExpansion.h.

◆ P2M()

void ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::P2M ( uint32_t  point,
uint32_t  receiver 
)

adds a point with the given charge to the receiver expansion

◆ sizeInBytes()

uint32_t ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::sizeInBytes ( ) const
inline

returns the size in bytes

Definition at line 63 of file LinearQuadtreeExpansion.h.

◆ tree()

const LinearQuadtree & ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::tree ( )
inline

the quadtree

Definition at line 75 of file LinearQuadtreeExpansion.h.

Member Data Documentation

◆ binCoef

BinCoeff<double> ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::binCoef

Definition at line 101 of file LinearQuadtreeExpansion.h.

◆ m_localExp

double* ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::m_localExp

the big local expansion coeff array

Definition at line 92 of file LinearQuadtreeExpansion.h.

◆ m_multiExp

double* ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::m_multiExp

the big multipole expansione coeff array

Definition at line 89 of file LinearQuadtreeExpansion.h.

◆ m_numCoeff

uint32_t ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::m_numCoeff

the number of coeff per expansions

Definition at line 99 of file LinearQuadtreeExpansion.h.

◆ m_numExp

uint32_t ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::m_numExp

the number of multipole (locale) expansions

Definition at line 96 of file LinearQuadtreeExpansion.h.

◆ m_tree

const LinearQuadtree& ogdf::fast_multipole_embedder::LinearQuadtreeExpansion::m_tree
private

the Quadtree reference

Definition at line 85 of file LinearQuadtreeExpansion.h.


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