Header file for adp-xor-fi.cc:
More...
Go to the source code of this file.
#define ADP_XOR_FI_COLSUM 2 |
Sum of non-zero elements in one column of the matrices.
#define ADP_XOR_FI_ISTATE 2 |
Initial state for computing the S-function.
#define ADP_XOR_FI_MSIZE 4 |
Number of state values in the S-function.
#define ADP_XOR_FI_NINPUTS 2 |
Number of inputs to the XOR operation.
#define ADP_XOR_FI_NMATRIX 8 |
Number of matrices.
Normalization factor for the matrices.
double adp_xor_fixed_input |
( |
gsl_matrix * |
A[2][2][2], |
|
|
uint32_t |
a, |
|
|
uint32_t |
db, |
|
|
uint32_t |
dc |
|
) |
| |
void adp_xor_fixed_input_alloc_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
double adp_xor_fixed_input_exper |
( |
const uint32_t |
a, |
|
|
const uint32_t |
db, |
|
|
const uint32_t |
dc |
|
) |
| |
void adp_xor_fixed_input_free_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Free memory reserved by a previous call to adp_xor_fixed_input_alloc_matrices.
- Parameters
-
A | transition probability matrices for . |
void adp_xor_fixed_input_normalize_matrices |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Transform the elements of A into probabilities.
- Parameters
-
A | transition probability matrices for . |
void adp_xor_fixed_input_print_matrices_sage |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
Print the matrices for in a format readable by the computer algebra system Sage (http://www.sagemath.org/).
- Parameters
-
A | transition probability matrices for . |
void adp_xor_fixed_input_sf |
( |
gsl_matrix * |
A[2][2][2] | ) |
|
S-function for : .
- Parameters
-
A | zero-initialized set of matrices. |
- Returns
- Transition probability matrices A.
A[2][2][2] = A[a[i]][db[i]][dc[i]], where
- a[i] : the i-th bit of the fixed input.
- db[i] : the i-th bit of the input difference.
- dc[i] : the i-th bit of the output difference.