291
|
1 |
/*
|
|
2 |
* Portions Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* The original NIST Statistical Test Suite code is placed in public domain.
|
|
16 |
* (http://csrc.nist.gov/groups/ST/toolkit/rng/documentation_software.html)
|
|
17 |
*
|
|
18 |
* This software was developed at the National Institute of Standards and Technology by
|
|
19 |
* employees of the Federal Government in the course of their official duties. Pursuant
|
|
20 |
* to title 17 Section 105 of the United States Code this software is not subject to
|
|
21 |
* copyright protection and is in the public domain. The NIST Statistical Test Suite is
|
|
22 |
* an experimental system. NIST assumes no responsibility whatsoever for its use by other
|
|
23 |
* parties, and makes no guarantees, expressed or implied, about its quality, reliability,
|
|
24 |
* or any other characteristic. We would appreciate acknowledgment if the software is used.
|
|
25 |
*/
|
|
26 |
|
|
27 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
28 |
R A N K A L G O R I T H M F U N C T I O N P R O T O T Y P E S
|
|
29 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
30 |
#ifndef _MATRIX_H_
|
|
31 |
#define _MATRIX_H_
|
|
32 |
|
|
33 |
int computeRank(int M, int Q, BitSequence **matrix);
|
|
34 |
void perform_elementary_row_operations(int flag, int i, int M, int Q, BitSequence **A);
|
|
35 |
int find_unit_element_and_swap(int flag, int i, int M, int Q, BitSequence **A);
|
|
36 |
int swap_rows(int i, int index, int Q, BitSequence **A);
|
|
37 |
int determine_rank(int m, int M, int Q, BitSequence **A);
|
|
38 |
BitSequence** create_matrix(int M, int Q);
|
|
39 |
void display_matrix(int M, int Q, BitSequence **m);
|
|
40 |
void def_matrix(int M, int Q, BitSequence **m,int k);
|
|
41 |
void delete_matrix(int M, BitSequence **matrix);
|
|
42 |
|
|
43 |
#endif // _MATRIX_H_
|