~knarkles/pyeigen/trunk

« back to all changes in this revision

Viewing changes to source/rowvector/rowvector2f.h

  • Committer: Jussi Lepistö
  • Date: 2010-05-15 20:09:03 UTC
  • Revision ID: jussi.lepisto@iki.fi-20100515200903-104h5fzi0v4fnee3
Completely restructure the code, moving header files to the include directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2010 Jussi Lepisto
2
 
 
3
 
#ifndef ROWVECTOR2F_H
4
 
#define ROWVECTOR2F_H
5
 
 
6
 
#include "templates/matrix.h"
7
 
 
8
 
#define ROWVECTOR2F_TEMPLATE float, 1, 2
9
 
 
10
 
typedef Matrix<ROWVECTOR2F_TEMPLATE>    RowVector2f;
11
 
extern PyTypeObject                                             RowVector2fType;
12
 
 
13
 
// Helpers
14
 
template<> inline PyTypeObject* Matrix_GetType<ROWVECTOR2F_TEMPLATE>()
15
 
{
16
 
        return &RowVector2fType;
17
 
}
18
 
 
19
 
// Type methods
20
 
PyObject* RowVector2f_repr(RowVector2f* self);
21
 
 
22
 
#endif