|
GraphGo 0.1 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
CBVector( int order, int value[] )
|
|
CBVector( int order )
|
Method Summary | |
int |
abs()
Count elements that values are 1 in binary vector |
int |
abs( void )
|
CBVector |
and( CBVector bv2 )
Logical and with binary vector object bv2 |
void |
clear( void )
|
void |
clear()
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 |
getValue( int i )
Method to get element i of binary vector |
CBVector |
inv( void )
|
CBVector |
inv()
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 |
void |
setValue( int i, int value )
Method to set value 0 or 1 to element i of binary vector object |
string |
toString()
Convert binary vector object to string |
string |
toString( void )
|
CBVector |
xor( CBVector bv2 )
Exclusive or with binary vector object bv2 |
Constructor Detail |
public CBVector( int order, int value[] );
public CBVector( int order );
Method Detail |
int abs();
public int abs( void );
public CBVector and( CBVector bv2 );
{BVector}
- bv2 second operand for logical andpublic void clear( void );
void clear();
public CBVector diff( CBVector bv2 );
{CBVector}
- bv2 second operand for logical differencepublic int dot( CBVector bv2 );
{CBVector}
- bv2 second operand for dot productpublic bool equals( CBVector bv2 );
bv2
- comparison target binary vectorpublic int getValue( int i );
{int}
- i element numberpublic CBVector inv( void );
CBVector inv();
public CBVector mul( int b2 );
{int}
- b2 second operand for productpublic void operator=( CBVector& bv );
{CBVector
- &} bv source bianary vectorpublic CBVector or( CBVector bv2 );
{CBVector}
- bv2 second operand for logical orpublic void setValue( int i, int value );
{int}
- i element number
{int}
- value value to setstring toString();
public string toString( void );
public CBVector xor( CBVector bv2 );
{CBVector}
- bv2 second operand for exclusive or
|
GraphGo 0.1 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |