Octopus 16.0
real-space, real-time, TDDFT code
vectors.h File Reference
#include <config.h>
Include dependency graph for vectors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VEC_SIZE   1
 
#define VEC_TYPE   double
 
#define VEC_LD(addr)   (addr)[0]
 
#define VEC_LDU(addr)   VEC_LD(addr)
 
#define VEC_ST(addr, vec)   (addr)[0] = vec
 
#define VEC_STU(addr, vec)   VEC_ST(addr, vec)
 
#define VEC_FMA(aa, bb, cc)   aa *bb + cc
 
#define VEC_SCAL(aa)   aa
 
#define VEC_ZERO   0.0
 
#define DEPTH   8
 
#define max1(x)   (((x) > 0) ? (x) : 1)
 

Macro Definition Documentation

◆ VEC_SIZE

#define VEC_SIZE   1

◆ VEC_TYPE

#define VEC_TYPE   double

◆ VEC_LD

#define VEC_LD (   addr)    (addr)[0]

◆ VEC_LDU

#define VEC_LDU (   addr)    VEC_LD(addr)

◆ VEC_ST

#define VEC_ST (   addr,
  vec 
)    (addr)[0] = vec

◆ VEC_STU

#define VEC_STU (   addr,
  vec 
)    VEC_ST(addr, vec)

◆ VEC_FMA

#define VEC_FMA (   aa,
  bb,
  cc 
)    aa *bb + cc

◆ VEC_SCAL

#define VEC_SCAL (   aa)    aa

◆ VEC_ZERO

#define VEC_ZERO   0.0

◆ DEPTH

#define DEPTH   8

◆ max1

#define max1 (   x)    (((x) > 0) ? (x) : 1)