Revision 270, 1.3 kB
(checked in by smidl, 16 years ago)
|
Changes in the very root classes!
* rv and rvc are no longer compulsory,
* samplecond does not return ll
* BM has drv
|
Line | |
---|
1 | # This file defines handy gdb macros for printing out ITPP types |
---|
2 | # To use it, add this line to your ~/.gdbinit : |
---|
3 | # source gdb_bdm |
---|
4 | |
---|
5 | define dm |
---|
6 | set $i=0 |
---|
7 | |
---|
8 | set $M = $arg0 |
---|
9 | set $rs = $M.no_rows |
---|
10 | set $col = $M.no_cols |
---|
11 | |
---|
12 | while $i < $rs |
---|
13 | set $j=0 |
---|
14 | printf "[" |
---|
15 | while $j< $col |
---|
16 | output $M.data[$j*$rs+$i] |
---|
17 | printf " " |
---|
18 | set $j++ |
---|
19 | end |
---|
20 | printf "]" |
---|
21 | printf "\n" |
---|
22 | set $i++ |
---|
23 | end |
---|
24 | end |
---|
25 | |
---|
26 | define dm2 |
---|
27 | set $i=0 |
---|
28 | |
---|
29 | set $M = $arg0 |
---|
30 | set $rs = $M.no_rows |
---|
31 | set $col = $M.no_cols |
---|
32 | |
---|
33 | while $i < $rs |
---|
34 | set $j=0 |
---|
35 | printf "[" |
---|
36 | while $j< $col |
---|
37 | printf "%2.2f,",$M.data[$j*$rs+$i] |
---|
38 | printf " " |
---|
39 | set $j++ |
---|
40 | end |
---|
41 | printf "]" |
---|
42 | printf "\n" |
---|
43 | set $i++ |
---|
44 | end |
---|
45 | end |
---|
46 | |
---|
47 | define dav |
---|
48 | set $i=0 |
---|
49 | printf "{" |
---|
50 | while $i < $arg0.ndata |
---|
51 | dv $arg0.data[$i] |
---|
52 | set $i++ |
---|
53 | end |
---|
54 | printf "}" |
---|
55 | end |
---|
56 | |
---|
57 | define dam |
---|
58 | set $i=0 |
---|
59 | printf "{" |
---|
60 | while $i < $arg0.ndata |
---|
61 | dm $arg0.data[$i] |
---|
62 | set $i++ |
---|
63 | end |
---|
64 | printf "}" |
---|
65 | end |
---|
66 | |
---|
67 | define das |
---|
68 | set $i=0 |
---|
69 | printf "{" |
---|
70 | while $i < $arg0.ndata |
---|
71 | p $arg0.data[$i] |
---|
72 | set $i++ |
---|
73 | end |
---|
74 | printf "}" |
---|
75 | end |
---|
76 | |
---|
77 | define dv |
---|
78 | if $arg0.datasize >0 |
---|
79 | output $arg0.data[0]@($arg0.datasize) |
---|
80 | else |
---|
81 | printf "{}" |
---|
82 | end |
---|
83 | end |
---|
84 | |
---|
85 | define dl |
---|
86 | dm $arg0.L |
---|
87 | dv $arg0.D |
---|
88 | end |
---|
89 | |
---|
90 | define drv |
---|
91 | dv $arg0.ids |
---|
92 | dv $arg0.times |
---|
93 | end |
---|