|
GraphGo 0.5 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
CBMatrix( int n, int m )
Constructor for CBMatrix class. |
Method Summary | |
int |
abs( void )
Count elements that values are 1 in binary matrix |
CBMatrix |
and( CBMatrix bm2 )
Logical and with binary matrix object bm2 |
void |
clear( void )
Clear binary matrix |
CBMatrix |
diff( CBMatrix bm2 )
Logical difference with binary matrix object bm2 |
bool |
equals( CBMatrix bm2 )
Returns true if two matrixes are equal. |
int |
getValue( int i, int j )
Get value of element i, j in binary matrix object |
CBMatrix |
inv( void )
Returns inverted binary matrix |
CBMatrix |
mul( CBMatrix bm2 )
Product with binary matrix object bm2 |
CBVector |
mul( CBVector bv2 )
Product with binary vector object bv2 |
void |
operator=( CBMatrix& bm )
Copy operator for binary matrix |
CBMatrix |
or( CBMatrix bm2 )
Logical or with binary matrix object bm2 |
CBVector |
row( int i )
Returns transposed binary vector |
void |
setValue( int i, int j, int value )
Set value 0 or 1 to element i, j of binary matrix object |
string |
to_string( void )
Logical difference with binary matrix object bm2 |
CBMatrix |
tran( void )
Returns transposed binary matrix |
CBVector |
tran1( void )
Returns transposed binary vector |
CBMatrix |
xor( CBMatrix bm2 )
Logical xor with binary matrix object bm2 |
Constructor Detail |
public CBMatrix( int n, int m );
n
- number of rows of the matrix
m
- number of columns of the matrixMethod Detail |
public int abs( void );
public CBMatrix and( CBMatrix bm2 );
bm2
- second operand for logical andpublic void clear( void );
public CBMatrix diff( CBMatrix bm2 );
bm2
- second operand for logical differencepublic bool equals( CBMatrix bm2 );
bm2
- comparison target binary matrixpublic int getValue( int i, int j );
i
- element row number (1 origin)
j
- element column number (1 origin)public CBMatrix inv( void );
public CBMatrix mul( CBMatrix bm2 );
bm2
- second operand for productpublic CBVector mul( CBVector bv2 );
bv2
- second operand for productpublic void operator=( CBMatrix& bm );
bm
- source bianary matrixpublic CBMatrix or( CBMatrix bm2 );
bm2
- second operand for logical orpublic CBVector row( int i );
public void setValue( int i, int j, int value );
i
- element row number (1 origin)
j
- element column number (1 origin)
value
- value to setpublic string to_string( void );
bm2
- second operand for logical differencepublic CBMatrix tran( void );
binary
- matrixpublic CBVector tran1( void );
public CBMatrix xor( CBMatrix bm2 );
bm2
- second operand for logical xor
|
GraphGo 0.5 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |