X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fexam_matrices.cpp;h=3e1c25e5de5ae6af233f23272763860432758c2b;hb=e0a84a395ab1bf84813eea95fde9c8a361dae9bc;hp=f4c84f973a96b88b1dcb4a37abc13e6b6b00b9dc;hpb=c3c748381bda4f81b68e50db2eed440c19f24b85;p=ginac.git diff --git a/check/exam_matrices.cpp b/check/exam_matrices.cpp index f4c84f97..3e1c25e5 100644 --- a/check/exam_matrices.cpp +++ b/check/exam_matrices.cpp @@ -3,7 +3,7 @@ * Here we examine manipulations on GiNaC's symbolic matrices. */ /* - * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2015 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 @@ -20,12 +20,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include "ginac.h" -using namespace std; using namespace GiNaC; +#include +#include +using namespace std; + static unsigned matrix_determinants() { unsigned result = 0; @@ -142,9 +143,9 @@ static unsigned matrix_invert2() ex det = m.determinant(); if ((normal(m_i(0,0)*det) != d) || - (normal(m_i(0,1)*det) != -b) || - (normal(m_i(1,0)*det) != -c) || - (normal(m_i(1,1)*det) != a)) { + (normal(m_i(0,1)*det) != -b) || + (normal(m_i(1,0)*det) != -c) || + (normal(m_i(1,1)*det) != a)) { clog << "inversion of 2x2 matrix " << m << " erroneously returned " << m_i << endl; ++result;