/* Created on: 16 feb. 2019 Author: Daniel Mårtensson Find the maximum value of vector A with size row x 1, return maximum value and the index of that maximum value  */
void maxvector(double *A, int row, double *val, int *index)
/* Created on: 16 feb. 2019 Author: Daniel Mårtensson Find the maximum value of vector A with size row x 1, return maximum value and the index of that maximum value  */
void maxvector(double *A, int row, double *val, int *index)
{
		if (*(A + i) > past_val) {
			past_val = *(A + i);
			*val = *(A + i);
			*index = i;
		}
	}
}