git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6818fc2
)
using () operator for setting matrix elements
author
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Thu, 7 Jun 2001 20:07:44 +0000
(20:07 +0000)
committer
Christian Bauer
<Christian.Bauer@uni-mainz.de>
Thu, 7 Jun 2001 20:07:44 +0000
(20:07 +0000)
check/exam_indexed.cpp
patch
|
blob
|
history
diff --git
a/check/exam_indexed.cpp
b/check/exam_indexed.cpp
index 75a99e513a509410e4fb7c6826bf5d86f451deb9..e4da3f8721500de83e86a363303fb0fb3a054346 100644
(file)
--- a/
check/exam_indexed.cpp
+++ b/
check/exam_indexed.cpp
@@
-212,18
+212,18
@@
static unsigned edyn_check(void)
// Lorentz transformation matrix (boost along x axis)
matrix L(4, 4);
- L
.set(0, 0, gamma)
;
- L
.set(0, 1, -beta*gamma)
;
- L
.set(1, 0, -beta*gamma)
;
- L
.set(1, 1, gamma)
;
- L
.set(2, 2, 1); L.set(3, 3, 1)
;
+ L
(0, 0) = gamma
;
+ L
(0, 1) = -beta*gamma
;
+ L
(1, 0) = -beta*gamma
;
+ L
(1, 1) = gamma
;
+ L
(2, 2) = 1; L(3, 3) = 1
;
// Electromagnetic field tensor
matrix F(4, 4, lst(
0, -Ex, -Ey, -Ez,
Ex, 0, -Bz, By,
Ey, Bz, 0, -Bx,
- Ez, -By, Bx
//
0
+ Ez, -By, Bx
,
0
));
// Indices