OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
comb< 0 > Struct Reference

Detailed Description

brief specialization of comb in case of dim 0

Definition at line 397 of file comb.hpp.

#include <comb.hpp>

Public Member Functions

bool isValid ()
 check if it is a valid combination
 
bool isSub (comb< 0 > cmb)
 Check if the combination is a sub-element.
 
void zero ()
 Set all the elements to zero.
 
bool operator!= (const comb< 0 > &t) const
 Compare two combination.
 
bool operator== (const comb< 0 > &t) const
 Compare two combination.
 
signed char operator[] (int i)
 Get the i combination coefficient.
 
signed char * getComb ()
 get the combination array pointer
 
signed char value (int i) const
 get the index i of the combination
 
int n_zero ()
 
size_t lin ()
 

Data Fields

signed char c [0]
 FIX.
 

Member Function Documentation

◆ getComb()

signed char * comb< 0 >::getComb ( )
inline

get the combination array pointer

Returns
an array of char representing the combination

Definition at line 481 of file comb.hpp.

◆ isSub()

bool comb< 0 >::isSub ( comb< 0 >  cmb)
inline

Check if the combination is a sub-element.

Parameters
cmbcombination to check if it is sub-element
Returns
true if cmb is a sub-element of this combination

Definition at line 421 of file comb.hpp.

◆ isValid()

bool comb< 0 >::isValid ( )
inline

check if it is a valid combination

Returns
true if it is valid

Definition at line 408 of file comb.hpp.

◆ lin()

size_t comb< 0 >::lin ( )
inline

Definition at line 516 of file comb.hpp.

◆ n_zero()

int comb< 0 >::n_zero ( )
inline

Definition at line 506 of file comb.hpp.

◆ operator!=()

bool comb< 0 >::operator!= ( const comb< 0 > &  t) const
inline

Compare two combination.

check if they match

Parameters
tcombination to check
Returns
true if the two combination match, false otherwise

Definition at line 443 of file comb.hpp.

◆ operator==()

bool comb< 0 >::operator== ( const comb< 0 > &  t) const
inline

Compare two combination.

check if they match

Parameters
tcombination to check
Returns
true if the two combination match, false otherwise

Definition at line 458 of file comb.hpp.

◆ operator[]()

signed char comb< 0 >::operator[] ( int  i)
inline

Get the i combination coefficient.

Parameters
icoefficent
Returns
the coefficent of the combination at position i

Definition at line 470 of file comb.hpp.

◆ value()

signed char comb< 0 >::value ( int  i) const
inline

get the index i of the combination

NOTE: used on expression template

Parameters
iindex
Returns
value of the i index

Definition at line 495 of file comb.hpp.

◆ zero()

void comb< 0 >::zero ( )
inline

Set all the elements to zero.

Definition at line 430 of file comb.hpp.

Field Documentation

◆ c

signed char comb< 0 >::c[0]

FIX.

Definition at line 400 of file comb.hpp.


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