/* Created on: 15 feb. 2019 Author: Daniel Mårtensson Take the diagonal of matrix A and insert it into into vector B. A size row x column and B size column x 1  */
void mdiag(double *A, double *B, int row, int column)
/* Created on: 15 feb. 2019 Author: Daniel Mårtensson Take the diagonal of matrix A and insert it into into vector B. A size row x column and B size column x 1  */
void mdiag(double *A, double *B, int row, int column)
{
		for(int j = 0; j < column; j++){
			if(i == j){
				*B = *A;
				B++;
				A++;
			}else{
				A++;
			}
		}
	}
}