summaryrefslogtreecommitdiff
path: root/src/main/Complex.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-05 00:07:00 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-05 00:07:00 +0000
commitb78c70b7bf73f047d78cd9e066c513b7c003106d (patch)
treef2dda60e99b8f981b6146da8133554e06be2eb22 /src/main/Complex.c
parent90f754b042785e7acaaad5a4d40f12aa50cb26a9 (diff)
grdoc, style-guidelines, ...
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1854 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Complex.c')
-rw-r--r--src/main/Complex.c161
1 files changed, 161 insertions, 0 deletions
diff --git a/src/main/Complex.c b/src/main/Complex.c
index 9e04a334..0ff9653b 100644
--- a/src/main/Complex.c
+++ b/src/main/Complex.c
@@ -5,6 +5,7 @@
@desc
Complex variable stuff
@enddesc
+ @version $Header$
@@*/
#include <math.h>
@@ -17,6 +18,26 @@ static char *rcsid = "$Header$";
CCTK_FILEVERSION(main_Complex_c)
+/********************************************************************
+ ********************* Local Data Types ***********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Other Routine Prototypes *********************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* Local Data *****************************
+ ********************************************************************/
+
+/********************************************************************
+ ********************* External Routines **********************
+ ********************************************************************/
+
/*@@
@routine CCTK_Cmplx
@date Tue Dec 14 12:16:01 1999
@@ -29,7 +50,25 @@ CCTK_FILEVERSION(main_Complex_c)
@history
@endhistory
+ @var Re
+ @vdesc Real part
+ @vtype CCTK_REAL
+ @vio in
+ @vcomment
+
+ @endvar
+ @var Im
+ @vdesc Imaginary part
+ @vtype CCTK_REAL
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The complex number
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_Cmplx(CCTK_REAL Re, CCTK_REAL Im)
{
@@ -53,7 +92,18 @@ CCTK_COMPLEX CCTK_Cmplx(CCTK_REAL Re, CCTK_REAL Im)
@history
@endhistory
+ @var complex_number
+ @vdesc The complex number
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_REAL
+ @returndesc
+ The real part
+ @endreturndesc
@@*/
CCTK_REAL CCTK_CmplxReal(CCTK_COMPLEX complex_number)
{
@@ -72,7 +122,18 @@ CCTK_REAL CCTK_CmplxReal(CCTK_COMPLEX complex_number)
@history
@endhistory
+ @var complex_number
+ @vdesc The complex number
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_REAL
+ @returndesc
+ The imaginary part
+ @endreturndesc
@@*/
CCTK_REAL CCTK_CmplxImag(CCTK_COMPLEX complex_number)
{
@@ -91,7 +152,18 @@ CCTK_REAL CCTK_CmplxImag(CCTK_COMPLEX complex_number)
@history
@endhistory
+ @var in
+ @vdesc The complex number
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The complex conjugate
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_CmplxConjg(CCTK_COMPLEX in)
{
@@ -115,6 +187,18 @@ CCTK_COMPLEX CCTK_CmplxConjg(CCTK_COMPLEX in)
@history
@endhistory
+ @var in
+ @vdesc The complex number
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+
+ @returntype CCTK_REAL
+ @returndesc
+ The absolute value of the complex number
+ @endreturndesc
@@*/
CCTK_REAL CCTK_CmplxAbs(CCTK_COMPLEX in)
@@ -138,7 +222,25 @@ CCTK_REAL CCTK_CmplxAbs(CCTK_COMPLEX in)
@history
@endhistory
+ @var a
+ @vdesc First summand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @var b
+ @vdesc Second summand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The sum
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_CmplxAdd(CCTK_COMPLEX a,CCTK_COMPLEX b)
{
@@ -160,7 +262,25 @@ CCTK_COMPLEX CCTK_CmplxAdd(CCTK_COMPLEX a,CCTK_COMPLEX b)
@history
@endhistory
+ @var a
+ @vdesc First operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @var b
+ @vdesc Second operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The difference
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_CmplxSub(CCTK_COMPLEX a,CCTK_COMPLEX b)
{
@@ -182,7 +302,25 @@ CCTK_COMPLEX CCTK_CmplxSub(CCTK_COMPLEX a,CCTK_COMPLEX b)
@history
@endhistory
+ @var a
+ @vdesc First operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @var b
+ @vdesc Second operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The product
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_CmplxMul(CCTK_COMPLEX a,CCTK_COMPLEX b)
{
@@ -204,7 +342,25 @@ CCTK_COMPLEX CCTK_CmplxMul(CCTK_COMPLEX a,CCTK_COMPLEX b)
@history
@endhistory
+ @var a
+ @vdesc First operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @var b
+ @vdesc Second operand
+ @vtype CCTK_COMPLEX
+ @vio in
+ @vcomment
+
+ @endvar
+ @returntype CCTK_COMPLEX
+ @returndesc
+ The quotient
+ @endreturndesc
@@*/
CCTK_COMPLEX CCTK_CmplxDiv(CCTK_COMPLEX a,CCTK_COMPLEX b)
{
@@ -238,3 +394,8 @@ CCTK_CmplxLog
CCTK_CmplxExp
*/
+
+/********************************************************************
+ ********************* Local Routines *************************
+ ********************************************************************/
+