Ignore:
Timestamp:
Jan 6, 2007, 6:04:54 PM (16 years ago)
Author:
Peter
Message:

added vector*matrix and matrix*vector operators. fixes #18

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/utility.h

    r687 r734  
    77  Copyright (C) 2005 Jari Häkkinen, Peter Johansson, Markus Ringnér
    88  Copyright (C) 2006 Jari Häkkinen
     9  Copyright (C) 2007 Peter Johansson
    910
    1011  This file is part of the yat library, http://lev.thep.lu.se/trac/yat
     
    3233///
    3334
     35#include "vector.h"
     36
    3437#include <string>
    3538#include <utility>
     
    4043namespace utility {
    4144
    42   class vector;
     45  class matrix;
    4346
    4447  ///
     
    8285  void shuffle(vector& invec);
    8386
     87
     88  /**
     89     @brief matrix vector multiplication
     90   */
     91  vector operator*(const matrix&, const vector&);
     92
     93
     94  /**
     95     @brief matrix vector multiplication
     96   */
     97  vector operator*(const vector&, const matrix&);
     98
    8499}}} // of namespace utility, yat, and theplu
    85100
Note: See TracChangeset for help on using the changeset viewer.