MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SmallVector.h File Reference
#include "GeneralDefine.h"
#include "Logger.h"
#include <cmath>
#include <algorithm>
#include <numeric>
#include <array>

Go to the source code of this file.

Classes

class  SmallVector< numberOfRows >
 Implementation of a 3D vector (by Vitaliy). More...
 

Functions

template<unsigned int numberOfRows>
SmallVector< numberOfRows > operator* (const Mdouble &left, const SmallVector< numberOfRows > &right)
 
template<unsigned int numberOfRows>
std::ostream & operator<< (std::ostream &os, const SmallVector< numberOfRows > &A)
 

Function Documentation

template<unsigned int numberOfRows>
SmallVector<numberOfRows> operator* ( const Mdouble left,
const SmallVector< numberOfRows > &  right 
)

Definition at line 275 of file SmallVector.h.

276 {
277  return right * left;
278 }
template<unsigned int numberOfRows>
std::ostream& operator<< ( std::ostream &  os,
const SmallVector< numberOfRows > &  A 
)

Definition at line 281 of file SmallVector.h.

References A, and constants::i.

282 {
283  os << "(";
284  for (std::size_t i = 0; i < numberOfRows; ++i)
285  {
286  os << A[i] << " ";
287  }
288  os << ")";
289  return os;
290 }
const std::complex< Mdouble > i
Definition: ExtendedMath.h:50