flavour
std Namespace Reference

Classes

class  Matrix
 
class  multivector
 A vector of vectors of vectors of... (N times) of class T objects. More...
 
class  multivector< T, 1 >
 Specialization template class of multivector<T,N> for N=1. More...
 

Functions

Matrix operator* (const Matrix &m1, const Matrix &m2)
 computes the matrix product More...
 
Matrix operator+ (const Matrix &m1, const Matrix &m2)
 computes the matrix sum More...
 

Function Documentation

Matrix std::operator* ( const Matrix m1,
const Matrix m2 
)

computes the matrix product

Definition at line 136 of file multivector.h.

136  {
137  Matrix res;
138  for(uint i=0;i<3;i++)
139  for(uint j=0;j<3;j++)
140  for(uint k=0;k<3;k++)
141  res[i][j]=res[i][j]+m1[i][k]*m2[k][j];
142  return res;
143 }
unsigned int uint
Definition: script.cpp:4
Matrix std::operator+ ( const Matrix m1,
const Matrix m2 
)

computes the matrix sum

Definition at line 146 of file multivector.h.

146  {
147  Matrix res;
148  for(uint i=0;i<3;i++)
149  for(uint j=0;j<3;j++)
150  res[i][j]=m1[i][j]+m2[i][j];
151  return res;
152 }
unsigned int uint
Definition: script.cpp:4