Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInspiral 5.0.3.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
InspiralBCVSpinBankTest.c
Go to the documentation of this file.
1/*
2* Copyright (C) 2007 Bernd Machenschalk, Chris Van Den Broeck
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20/**
21 * \author Van Den Broeck, C and Jones, G.
22 * \file
23 *
24 * \brief Tests InpsiralBCVSpinBankTest().
25 *
26 * ### Usage ###
27 *
28 * \code
29 * InspiralBCVSpinBankTest
30 * \endcode
31 *
32 * This program uses InspiralBCVSpinBank() to generate a template bank from
33 * command line parameter input.
34 *
35 * ### Command line options ###
36 *
37 *
38 * ### Notes ###
39 *
40 */
41
42/**\name Error Codes */ /** @{ */
43#define INSPIRALBCVSPINBANKTESTC_ENORM 0
44#define INSPIRALBCVSPINBANKTESTC_EMEM 1
45#define INSPIRALBCVSPINBANKTESTC_ESUB 2
46#define INSPIRALBCVSPINBANKTESTC_EFILE 4
47
48#define INSPIRALBCVSPINBANKTESTC_MSGENORM "Normal exit"
49#define INSPIRALBCVSPINBANKTESTC_MSGEMEM "Memory allocation error"
50#define INSPIRALBCVSPINBANKTESTC_MSGESUB "Subroutine error"
51#define INSPIRALBCVSPINBANKTESTC_MSGEFILE "File I/O error"
52/** @} */
53
54#include <stdio.h>
55#include <lal/LALStdlib.h>
56#include <lal/LALGSL.h>
57#include <gsl/gsl_matrix.h>
58
60
61int main (void)
62{
63 static LALStatus status;
65 return 0;
66}
67
69{
70 int i, j;
71 float x = 0;
72 gsl_matrix *m = NULL;
73
75 CALLGSL((m = gsl_matrix_alloc (10, 3)), status);
76 for (i = 0; i < 10; i++)
77 for (j = 0; j < 3; j++)
78 CALLGSL ( gsl_matrix_set (m, i, j, 0.23 + 100*i + j), status);
79
80 for (i = 0; i < 10; i++)
81 for (j = 0; j < 3; j++)
82{
83 CALLGSL((x = gsl_matrix_get (m, i, j)), status);
84 printf ("m(%d,%d) = %g\n", i, j, x);
85}
86
90 RETURN (status);
91}
int main(void)
void testfunction(LALStatus *status)
void REPORTSTATUS(LALStatus *status)
#define CALLGSL(statement, statusptr)
#define CHECKSTATUSPTR(statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define DETATCHSTATUSPTR(statusptr)
#define RETURN(statusptr)
double i
static const INT4 m
x