X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn_network.h;h=8e6d4929d767afc149a0bce24bbbfd288a81b0d1;hp=f56e3ca288b0f0034b7e33f8c32be4b15f8825fc;hb=1e765313eb44b5707ea9cdc3429ce5da48cfbcd3;hpb=c43a45975e025cb5005f46b4c930b0888806ed97 diff --git a/src/sn_network.h b/src/sn_network.h index f56e3ca..8e6d492 100644 --- a/src/sn_network.h +++ b/src/sn_network.h @@ -26,7 +26,6 @@ * \endverbatim **/ - #ifndef SN_NETWORK_H #define SN_NETWORK_H 1 @@ -211,6 +210,16 @@ int sn_network_compress (sn_network_t *n); int sn_network_normalize (sn_network_t *n); /** + * Removes an input and all comparators touching that input from the comparator + * network. + * + * \param n The network to modify. + * \param input The zero-based index of the input to remove. + * \return Zero on success, non-zero on failure. + */ +int sn_network_remove_input (sn_network_t *n, int input); + +/** * Removes an inputs from a comparator network by assuming positive or negative * infinity to be supplied to a given input. The value will take a * deterministic way through the comparator network. After removing the path @@ -226,6 +235,9 @@ int sn_network_normalize (sn_network_t *n); */ int sn_network_cut_at (sn_network_t *n, int input, enum sn_network_cut_dir_e dir); +/* FIXME: Documentation */ +int sn_network_cut (sn_network_t *n, int *mask); + /** * An alias for sn_network_combine_odd_even_merge(). */