X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fexam_indexed.cpp;h=96f6faa2e4157f4f64bb8a0b2b472e013e434a95;hb=4f71d7035d32e8f74d9b13e0d6a9c0ab4a58062d;hp=cf58ac7fbe7ded16cb5f78ca97d92bad3f010ce1;hpb=8f283de519668b70b2e675a7055c7f1bf7ba197c;p=ginac.git diff --git a/check/exam_indexed.cpp b/check/exam_indexed.cpp index cf58ac7f..96f6faa2 100644 --- a/check/exam_indexed.cpp +++ b/check/exam_indexed.cpp @@ -3,7 +3,7 @@ * Here we test manipulations on GiNaC's indexed objects. */ /* - * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -244,18 +244,16 @@ static unsigned edyn_check() symbol Bx("Bx"), By("By"), Bz("Bz"); // Lorentz transformation matrix (boost along x axis) - matrix L(4, 4); - L = gamma, -beta*gamma, 0, 0, - -beta*gamma, gamma, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1; + matrix 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); - F = 0, -Ex, -Ey, -Ez, - Ex, 0, -Bz, By, - Ey, Bz, 0, -Bx, - Ez, -By, Bx, 0; + matrix F = {{ 0, -Ex, -Ey, -Ez}, + {Ex, 0, -Bz, By}, + {Ey, Bz, 0, -Bx}, + {Ez, -By, Bx, 0}}; // Indices symbol s_mu("mu"), s_nu("nu"), s_rho("rho"), s_sigma("sigma");