Bachelor's degree final project  v1.0
Faculty of Mathematics, University of Barcelona
Functions
src/include/permutation.h File Reference

Permutation basic function header file. More...

#include "utils.h"
+ Include dependency graph for permutation.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void permutation_init (size_t n, size_t *const p)
 Initialize a identity vector permutation.
void permutation_vector (size_t n, size_t *const p, double *const x, double *const px)
 Permute the values of the vector x into px based on the vector permutation p.
void swap_bit (size_t i, size_t j, size_t *const x, size_t *const y)
 Swap two values from vector x to y.

Detailed Description

Permutation basic function header file.

Author:
Joan Gimeno
Date:
20/01/2014 (start)
Version:
1.0

This file contains the header for basic operation and function of permutations