| 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 |
|
|---|
| 17 | using namespace VMG;
|
|---|
| 18 |
|
|---|
| 19 | const 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.