source: src/base/matrix.cpp@ 2fad0e0

Last change on this file since 2fad0e0 was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@847 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 553 bytes
Line 
1/**
2 * @file matrix.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:20:22 2011
5 *
6 * @brief Source file for the class VMG::Matrix, which represents a 3x3 matrix
7 * and defines some useful operations.
8 *
9 */
10
11#ifdef HAVE_CONFIG_H
12#include <config.h>
13#endif
14
15#include "base/matrix.hpp"
16
17using namespace VMG;
18
19const Matrix abT(const Vector lhs, const Vector rhs)
20{
21 Matrix matrix;
22
23 for (int i=0; i<3; i++)
24 for (int j=0; j<3; j++)
25 matrix(i,j) = lhs.vec()[i] * rhs.vec()[j];
26
27 return matrix;
28}
Note: See TracBrowser for help on using the repository browser.