forked from etmc/tmLQCD
-
Notifications
You must be signed in to change notification settings - Fork 1
/
linalg_eo.c
60 lines (39 loc) · 998 Bytes
/
linalg_eo.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* $Id$ */
/*******************************************************************************
*
* File linalg.c
*
* Linear combination and norm of spinor fields
*
* The externally accessible function are
*
* void assign_add_mul_r(double c,int k,int l)
* Adds c*psi[k] to psi[l]
*
* double square_norm(int k)
* Returns the square norm of psi[k]
*
* Based on
* Version: 2.0
* Author: Martin Luescher <luscher@mail.desy.de>
* Date: 21.03.2001
* Present version: M.Hasenbusch Thu Oct 25 10:58:45 METDST 2001
* Extended and adapted for even-odd precondtioning
*******************************************************************************/
#ifdef HAVE_CONFIG_H
# include<config.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#ifdef MPI
# include <mpi.h>
#endif
#include "global.h"
#include "sse.h"
#include "su3.h"
#include "su3adj.h"
#include "linalg_eo.h"
/* j output k input , l input */
/* j, k input, l output */
/* j output k input , l input */