From 69c04c9380fb5a2f8f57311d8d8b19470ac4ebfd Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Tue, 30 Sep 2003 20:23:27 +0000 Subject: [PATCH] synced to HEAD --- check/exam_indexed.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/check/exam_indexed.cpp b/check/exam_indexed.cpp index 82a2539f..df66b6a3 100644 --- a/check/exam_indexed.cpp +++ b/check/exam_indexed.cpp @@ -241,19 +241,17 @@ static unsigned edyn_check(void) // Lorentz transformation matrix (boost along x axis) matrix L(4, 4); - 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; + L = gamma, -beta*gamma, 0, 0, + -beta*gamma, gamma, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1; // Electromagnetic field tensor - matrix F(4, 4, lst( - 0, -Ex, -Ey, -Ez, + matrix F(4, 4); + F = 0, -Ex, -Ey, -Ez, Ex, 0, -Bz, By, Ey, Bz, 0, -Bx, - Ez, -By, Bx, 0 - )); + Ez, -By, Bx, 0; // Indices symbol s_mu("mu"), s_nu("nu"), s_rho("rho"), s_sigma("sigma"); -- 2.49.0