RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
combinatorics.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
3
* 2020 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser General
6
* Public License v2.1. See the file LICENSE in the top level directory for more
7
* details.
8
*/
9
23
#ifndef COMBINATORICS_H_
24
#define COMBINATORICS_H_
25
26
#include<stdint.h>
27
31
#define COMBI_ERROR -1
32
36
#define COMBI_EMPTY 0
37
41
#define COMBI_SUCCESS 1
42
46
#define COMBI_END 2
47
48
61
uint8_t
combinatorics_init
(uint8_t n, uint8_t k, uint8_t comb_arr[]);
62
74
uint8_t
combinatorics_get_next_without_rep
(uint8_t n, uint8_t k, uint8_t comb_arr[]);
75
76
77
#endif
/*COMBINATORICS_H_ */
combinatorics_get_next_without_rep
uint8_t combinatorics_get_next_without_rep(uint8_t n, uint8_t k, uint8_t comb_arr[])
Generate the next combination.
Definition:
combinatorics.c:48
combinatorics_init
uint8_t combinatorics_init(uint8_t n, uint8_t k, uint8_t comb_arr[])
Initialize the combinations generator.
Definition:
combinatorics.c:29
linear_algebra
utilities
include
combinatorics.h
Generated by
1.8.16