ARTS  2.2.66
test_matpack.cc File Reference
#include <cmath>
#include <iostream>
#include <cstdlib>
#include "matpackVII.h"
#include "exceptions.h"
#include "array.h"
#include "make_array.h"
#include "mystring.h"
#include "make_vector.h"
#include "math_funcs.h"
#include "describe.h"
#include "matpackII.h"
#include "rational.h"
#include "logic.h"
#include "wigner_functions.h"
Include dependency graph for test_matpack.cc:

Go to the source code of this file.

Macros

#define docheck(fn, val, expect)   cout << #fn << "(" << val << ") = " << fn(x) << " (expected " << #expect << ")" << std::endl;
 

Functions

Numeric by_reference (const Numeric &x)
 
Numeric by_value (Numeric x)
 
void fill_with_junk (VectorView x)
 
void fill_with_junk (MatrixView x)
 
int test1 ()
 
void test2 ()
 
void test4 ()
 
void test5 ()
 
void test6 ()
 
void test7 ()
 
void test8 ()
 
void test9 ()
 
void test10 ()
 
void test11 ()
 
void test12 ()
 
void test13 ()
 
void test14 ()
 
void test15 ()
 
void test17 ()
 
void test18 ()
 
void test19 ()
 
void test20 ()
 
void test21 ()
 
void test22 ()
 
void test23 ()
 
void test24 ()
 
void test25 ()
 
void test26 ()
 
void test27 ()
 
void test28 ()
 
void test29 ()
 
void test30 ()
 
void test31 ()
 
void test32 ()
 
void test33 ()
 
void junk4 (Tensor4View a)
 
void junk2 (ConstVectorView a)
 
void test34 ()
 
void test35 ()
 
void test36 ()
 
void test37 (const Index &i)
 
void test38 ()
 
void test39 ()
 
void test40 ()
 
void test41 ()
 
void test42 ()
 
void test43 ()
 
void test44 ()
 
void test45 ()
 
int main ()
 

Macro Definition Documentation

◆ docheck

#define docheck (   fn,
  val,
  expect 
)    cout << #fn << "(" << val << ") = " << fn(x) << " (expected " << #expect << ")" << std::endl;

Referenced by test44().

Function Documentation

◆ by_reference()

Numeric by_reference ( const Numeric x)

Definition at line 39 of file test_matpack.cc.

Referenced by test21().

◆ by_value()

Numeric by_value ( Numeric  x)

Definition at line 44 of file test_matpack.cc.

Referenced by test22().

◆ fill_with_junk() [1/2]

void fill_with_junk ( VectorView  x)

Definition at line 49 of file test_matpack.cc.

Referenced by test1().

◆ fill_with_junk() [2/2]

void fill_with_junk ( MatrixView  x)

Definition at line 54 of file test_matpack.cc.

◆ junk2()

void junk2 ( ConstVectorView  a)

Definition at line 675 of file test_matpack.cc.

References describe().

Referenced by test34().

◆ junk4()

void junk4 ( Tensor4View  a)

Definition at line 670 of file test_matpack.cc.

References describe().

Referenced by test34().

◆ main()

int main ( void  )

Definition at line 954 of file test_matpack.cc.

References test45().

◆ test1()

◆ test10()

void test10 ( )

Definition at line 255 of file test_matpack.cc.

References M.

◆ test11()

void test11 ( )

Definition at line 266 of file test_matpack.cc.

References M, and ConstVectorView::nelem().

◆ test12()

void test12 ( )

Definition at line 278 of file test_matpack.cc.

References Array< base >::nelem().

◆ test13()

void test13 ( )

Definition at line 297 of file test_matpack.cc.

References M.

◆ test14()

void test14 ( )

Definition at line 308 of file test_matpack.cc.

◆ test15()

void test15 ( )

Definition at line 319 of file test_matpack.cc.

◆ test17()

void test17 ( )

Definition at line 342 of file test_matpack.cc.

References ConstVectorView::sum().

◆ test18()

void test18 ( )

Definition at line 349 of file test_matpack.cc.

◆ test19()

void test19 ( )

Definition at line 357 of file test_matpack.cc.

◆ test2()

void test2 ( )

Definition at line 143 of file test_matpack.cc.

References ConstVectorView::nelem().

◆ test20()

void test20 ( )

Definition at line 369 of file test_matpack.cc.

◆ test21()

void test21 ( )

Definition at line 376 of file test_matpack.cc.

References by_reference().

◆ test22()

void test22 ( )

Definition at line 389 of file test_matpack.cc.

References by_value().

◆ test23()

void test23 ( )

Definition at line 402 of file test_matpack.cc.

◆ test24()

void test24 ( )

Definition at line 411 of file test_matpack.cc.

◆ test25()

void test25 ( )

Definition at line 426 of file test_matpack.cc.

References max, and min.

◆ test26()

void test26 ( )

Definition at line 433 of file test_matpack.cc.

◆ test27()

void test27 ( )

Definition at line 440 of file test_matpack.cc.

◆ test28()

void test28 ( )

Definition at line 449 of file test_matpack.cc.

◆ test29()

void test29 ( )

Definition at line 457 of file test_matpack.cc.

References Matrix::resize().

◆ test30()

void test30 ( )

◆ test31()

◆ test32()

void test32 ( )

Definition at line 575 of file test_matpack.cc.

References mult().

◆ test33()

void test33 ( )

Definition at line 599 of file test_matpack.cc.

References describe(), and transpose().

◆ test34()

void test34 ( )

Definition at line 680 of file test_matpack.cc.

References junk2(), and junk4().

◆ test35()

void test35 ( )

Definition at line 691 of file test_matpack.cc.

◆ test36()

void test36 ( )

Definition at line 711 of file test_matpack.cc.

References joker.

◆ test37()

void test37 ( const Index i)

Definition at line 720 of file test_matpack.cc.

◆ test38()

void test38 ( )

◆ test39()

void test39 ( )

Definition at line 762 of file test_matpack.cc.

◆ test4()

void test4 ( )

Definition at line 158 of file test_matpack.cc.

References C, joker, mult(), and ConstVectorView::nelem().

◆ test40()

void test40 ( )

Definition at line 776 of file test_matpack.cc.

◆ test41()

void test41 ( )

Definition at line 785 of file test_matpack.cc.

◆ test42()

void test42 ( )

Definition at line 808 of file test_matpack.cc.

References joker.

◆ test43()

void test43 ( )

Definition at line 830 of file test_matpack.cc.

◆ test44()

void test44 ( )

Definition at line 841 of file test_matpack.cc.

References docheck, is_decreasing(), is_increasing(), and is_sorted().

◆ test45()

void test45 ( )

Definition at line 885 of file test_matpack.cc.

References ECS_wigner(), max, N, Array< base >::nelem(), Vector::resize(), Rational::toNumeric(), and wigner6j().

Referenced by main().

◆ test5()

void test5 ( )

Definition at line 187 of file test_matpack.cc.

References M, mult(), and transpose().

◆ test6()

void test6 ( )

Definition at line 208 of file test_matpack.cc.

References M, and transform().

◆ test7()

void test7 ( )

Definition at line 231 of file test_matpack.cc.

References max, min, ConstVectorView::nelem(), and transform().

◆ test8()

void test8 ( )

Definition at line 239 of file test_matpack.cc.

References ConstVectorView::nelem().

◆ test9()

void test9 ( )

Definition at line 247 of file test_matpack.cc.

References joker.