|
GraphGo 0.2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
CBVector( int order, string name )
Constructor for CBVector class. |
|
CBVector( int order, int value[], string name )
Constructor for CBVector class. |
|
CBVector( void )
Constructor for CBVector class. |
|
~CBVector( void )
Constructor for CBVector class. |
Method Summary | |
int |
abs( void )
Count elements that values are 1 in binary vector |
CBVector |
and( CBVector bv2 )
Logical and with binary vector object bv2 |
void |
clear( void )
Clear binary vector |
CBVector |
diff( CBVector bv2 )
Logical difference with binary vector object bv2 |
int |
dot( CBVector bv2 )
Dot product with binary vector object bv2 |
bool |
equals( CBVector bv2 )
Returns true if two vectors are equal. |
int |
getOrder( void )
Get order of binary vector |
int |
getValue( int i )
Get element i of binary vector |
CBVector |
inv( void )
Returns inverted binary vector |
CBVector |
mul( int b2 )
Product with scalar (0 or 1) |
void |
operator=( CBVector& bv )
Copy operator for binary vectors |
CBVector |
or( CBVector bv2 )
Logical or with binary vector object bv2 |
static void |
releaseMem( void )
Release memories for bits |
void |
setValue( int i, int value )
Set value 0 or 1 to element i of binary vector object |
string |
toString( void )
Convert binary vector object to string |
CBVector |
xor( CBVector bv2 )
Exclusive or with binary vector object bv2 |
Constructor Detail |
public CBVector( int order, string name );
order
- order of the vectorpublic CBVector( int order, int value[], string name );
order
- order of the vector
value[]
- array of valuespublic CBVector( void );
public ~CBVector( void );
order
- order of the vector
value[]
- array of valuesMethod Detail |
public int abs( void );
public CBVector and( CBVector bv2 );
bv2
- second operand for logical andpublic void clear( void );
public CBVector diff( CBVector bv2 );
bv2
- second operand for logical differencepublic int dot( CBVector bv2 );
bv2
- second operand for dot productpublic bool equals( CBVector bv2 );
bv2
- comparison target binary vectorpublic int getOrder( void );
public int getValue( int i );
i
- element number (1 origin)public CBVector inv( void );
public CBVector mul( int b2 );
b2
- second operand for productpublic void operator=( CBVector& bv );
bv
- source bianary vectorpublic CBVector or( CBVector bv2 );
bv2
- second operand for logical orpublic static void releaseMem( void );
public void setValue( int i, int value );
i
- element number (1 origin)
value
- value to setpublic string toString( void );
public CBVector xor( CBVector bv2 );
bv2
- second operand for exclusive or
|
GraphGo 0.2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |