fmatvec.h
00001 /* Copyright (C) 2003-2005  Martin Förg
00002 
00003  * This library is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU Lesser General Public
00005  * License as published by the Free Software Foundation; either
00006  * version 2.1 of the License, or (at your option) any later version.
00007  * 
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00016  *
00017  * Contact:
00018  *   martin.o.foerg@googlemail.com
00019  *
00020  */
00021 
00022 #ifndef fmatrixvector_h
00023 #define fmatrixvector_h
00024 
00025 #include "linear_algebra.h"
00026 #include "linear_algebra_double.h"
00027 
00028 namespace fmatvec {
00029 
00035   typedef Matrix<General, Ref, Ref, double> Mat;
00036 
00042   typedef Vector<Ref, double> Vec;
00043 
00049   typedef RowVector<Ref, double> RowVec;
00050 
00056   typedef SquareMatrix<Ref, double> SqrMat;
00057 
00063   typedef Matrix<Diagonal, Ref, Ref, double> DiagMat;
00064 
00070   typedef Matrix<Symmetric, Ref, Ref, double> SymMat;
00071 
00077   typedef Matrix<GeneralBand, Ref, Ref, double> BandMat;
00078 
00079   typedef Matrix<Sparse, Ref, Ref, double> SparseMat;
00080 
00081   typedef Vector<Ref, int> VecInt;
00082 
00083   /* Typedefs for Fixed types */
00084 
00085   //Column Vectors
00086   typedef Vector<Fixed<1>, double> Vec1;
00087   typedef Vector<Fixed<2>, double> Vec2;
00088   typedef Vector<Fixed<3>, double> Vec3;
00089   typedef Vector<Fixed<4>, double> Vec4;
00090 
00091   typedef Vector<Fixed<11>, double> Vec11;
00092   typedef Vector<Fixed<16>, double> Vec16;
00093 
00094   //Row Vectors
00095   typedef RowVector<Fixed<1>, double> RowVec1;
00096   typedef RowVector<Fixed<2>, double> RowVec2;
00097   typedef RowVector<Fixed<3>, double> RowVec3;
00098   typedef RowVector<Fixed<4>, double> RowVec4;
00099 
00100   typedef RowVector<Fixed<11>, double> RowVec11;
00101   typedef RowVector<Fixed<16>, double> RowVec16;
00102 
00103   //General Matrices
00104   typedef Matrix<General, Fixed<3>, Fixed<3>, double> Mat3x3;
00105   typedef Matrix<General, Fixed<3>, Fixed<2>, double> Mat3x2;
00106   typedef Matrix<General, Fixed<3>, Fixed<11>, double> Mat3x11;
00107   typedef Matrix<General, Fixed<3>, Fixed<16>, double> Mat3x16;
00108 
00109   typedef Matrix<General, Fixed<4>, Fixed<16>, double> Mat4x16;
00110 
00111   typedef Matrix<General, Fixed<16>, Fixed<3>, double> Mat16x3;
00112   typedef Matrix<General, Fixed<16>, Fixed<4>, double> Mat16x4;
00113 
00114   //Square Matrices
00115   typedef SquareMatrix<Fixed<1>, double> SqrMat1;
00116   typedef SquareMatrix<Fixed<2>, double> SqrMat2;
00117   typedef SquareMatrix<Fixed<3>, double> SqrMat3;
00118   typedef SquareMatrix<Fixed<11>, double> SqrMat11;
00119   typedef SquareMatrix<Fixed<16>, double> SqrMat16;
00120 
00121   //Symmetric Matrices
00122   typedef Matrix<Symmetric, Fixed<3>, Fixed<3>, double> SymMat3;
00123   typedef Matrix<Symmetric, Fixed<4>, Fixed<4>, double> SymMat4;
00124 
00125   typedef Matrix<Symmetric, Var, Var, double> SymMatV;
00126 
00127   typedef Matrix<General, Var, Var, double> MatV;
00128 
00129   typedef SquareMatrix<Var, double> SqrMatV;
00130 
00131   typedef Vector<Var, double> VecV;
00132 
00133   typedef RowVector<Var, double> RowVecV;
00134 
00135   //Rotation Matrices
00136   typedef Matrix<Rotation, Fixed<3>, Fixed<3>, double> RotMat3;
00137 
00138   /*Typedefs for mixed size */
00139 
00140   typedef Matrix<General, Fixed<3>, Var, double> Mat3xV;
00141 
00142   typedef Matrix<General, Var, Fixed<3>, double> MatVx3;
00143 }
00144 
00145 #endif
00146