aglowav::BiClNode00< F > Class Template Reference

Binary node for the cluster and Haar wavelet agglomeration algorithm. More...

#include <tree.hh>

Classes

union  NE
 Node -> rght, leaf -> elm. More...
 

Public Types

typedef F CF
 Type of element (Real || Cmplx) More...
 

Public Member Functions

 BiClNode00 (const concepts::Element< F > &elm, const cluster::BBall< F > &ball, BiClNode00< F > *lft)
 Constructor 1 (for a list of leafs, next leaf = left child) More...
 
 BiClNode00 (uint idx, BiClNode00< F > &lft, BiClNode00< F > &rght, const concepts::Real3d &c, concepts::Real r, uint nleaf=0)
 Constructor 2 (new node, no leaf) More...
 
const concepts::Real3dcenter () const
 Cluster center. More...
 
BiClNode00< F > * child (uint j) const
 j-th child of the node More...
 
const bem::Constant3d001< F > * element () const
 Element of the node. More...
 
uint index () const
 Cluster number. More...
 
BiClNode00< F > *& lft ()
 
BiClNode00< F > * lft () const
 Left child of the node. More...
 
uint nleaf () const
 Number of leafs in the subtree of the node. More...
 
concepts::Real radius () const
 Cluster radius. More...
 
BiClNode00< F > * rght () const
 Right child of the node. More...
 

Private Attributes

concepts::Real3d c_
 Cluster center. More...
 
uint idx_
 Node number. More...
 
BiClNode00< F > * lft_
 Left child of the node. More...
 
NE ne_
 Right child or element of the node. More...
 
uint nlf_
 Number of leafs in the subtree of the node. More...
 
concepts::Real r_
 Cluster radius. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const BiClNode00< F > &nd)
 Output. More...
 

Detailed Description

template<class F>
class aglowav::BiClNode00< F >

Binary node for the cluster and Haar wavelet agglomeration algorithm.

Definition at line 124 of file tree.hh.

Member Typedef Documentation

◆ CF

template<class F >
typedef F aglowav::BiClNode00< F >::CF

Type of element (Real || Cmplx)

Definition at line 143 of file tree.hh.

Constructor & Destructor Documentation

◆ BiClNode00() [1/2]

template<class F >
aglowav::BiClNode00< F >::BiClNode00 ( const concepts::Element< F > &  elm,
const cluster::BBall< F > &  ball,
BiClNode00< F > *  lft 
)

Constructor 1 (for a list of leafs, next leaf = left child)

Exceptions
MissingFeature
Parameters
elmElement
ballBounding ball for a element
chldlftLeft child (-> degenerate tree, list, only left child used)

◆ BiClNode00() [2/2]

template<class F >
aglowav::BiClNode00< F >::BiClNode00 ( uint  idx,
BiClNode00< F > &  lft,
BiClNode00< F > &  rght,
const concepts::Real3d c,
concepts::Real  r,
uint  nleaf = 0 
)

Constructor 2 (new node, no leaf)

Parameters
idxNode number
chldlftLeft child
chldrghtRight child
cCluster center
rCluster radius
nleafNumber of leafs

Member Function Documentation

◆ center()

template<class F >
const concepts::Real3d& aglowav::BiClNode00< F >::center ( ) const
inline

Cluster center.

Definition at line 175 of file tree.hh.

◆ child()

template<class F >
BiClNode00< F > * aglowav::BiClNode00< F >::child ( uint  j) const
inline

j-th child of the node

Definition at line 205 of file tree.hh.

◆ element()

template<class F >
const bem::Constant3d001< F > * aglowav::BiClNode00< F >::element
inline

Element of the node.

Definition at line 210 of file tree.hh.

◆ index()

template<class F >
uint aglowav::BiClNode00< F >::index ( ) const
inline

Cluster number.

Definition at line 181 of file tree.hh.

◆ lft() [1/2]

template<class F >
BiClNode00<F>*& aglowav::BiClNode00< F >::lft ( )
inline

Definition at line 169 of file tree.hh.

◆ lft() [2/2]

template<class F >
BiClNode00<F>* aglowav::BiClNode00< F >::lft ( ) const
inline

Left child of the node.

Definition at line 168 of file tree.hh.

◆ nleaf()

template<class F >
uint aglowav::BiClNode00< F >::nleaf ( ) const
inline

Number of leafs in the subtree of the node.

Definition at line 177 of file tree.hh.

◆ radius()

template<class F >
concepts::Real aglowav::BiClNode00< F >::radius ( ) const
inline

Cluster radius.

Definition at line 179 of file tree.hh.

◆ rght()

template<class F >
BiClNode00<F>* aglowav::BiClNode00< F >::rght ( ) const
inline

Right child of the node.

Definition at line 171 of file tree.hh.

Friends And Related Function Documentation

◆ operator<<

template<class F >
std::ostream& operator<< ( std::ostream &  os,
const BiClNode00< F > &  nd 
)
friend

Output.

Definition at line 127 of file tree.hh.

Member Data Documentation

◆ c_

template<class F >
concepts::Real3d aglowav::BiClNode00< F >::c_
private

Cluster center.

Definition at line 199 of file tree.hh.

◆ idx_

template<class F >
uint aglowav::BiClNode00< F >::idx_
private

Node number.

Definition at line 195 of file tree.hh.

◆ lft_

template<class F >
BiClNode00<F>* aglowav::BiClNode00< F >::lft_
private

Left child of the node.

Definition at line 191 of file tree.hh.

◆ ne_

template<class F >
NE aglowav::BiClNode00< F >::ne_
private

Right child or element of the node.

Definition at line 193 of file tree.hh.

◆ nlf_

template<class F >
uint aglowav::BiClNode00< F >::nlf_
private

Number of leafs in the subtree of the node.

Definition at line 197 of file tree.hh.

◆ r_

template<class F >
concepts::Real aglowav::BiClNode00< F >::r_
private

Cluster radius.

Definition at line 201 of file tree.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich