Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

hyp.math.matrix.h

00001 /*
00002 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00003  Ephydryne Components.
00004  Ephydryne is a part of the Hyperion Project.
00005 ----------------------------------------------------------
00006  Copyright (c) 2001 Pierre Rebours.
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  
00017  See hyp.license.txt file for more information about the license.
00018  
00019  Web: http://lagrandeporte.multimania.com/hyperion
00020  Email: pierre_rebours@yahoo.com
00021 ----------------------------------------------------------
00022  CVS
00023  $Log$
00024 
00025  Creation 22/03/01 P.Naves
00026  Add 29/03/01 Pierre Rebours
00027 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00028 */
00029 
00030 #ifndef _hyp_math_matrix_h_
00031 #define _hyp_math_matrix_h_
00032 
00033 #ifndef hypfem_INSIDE_INTERN
00034 #error Inclusion not allowed (include hyp.fem.intern.h instead)
00035 #endif
00036 
00049 class CMatrix :
00050 #ifdef hypfem_IDENTIFY_CONSTRUCTION_ON
00051 protected CIDClass,
00052 #endif
00053 public IMatrix,
00054 public hyp_ker::CUnknown
00055 {
00056 public:
00058         CMatrix(hyp_ker::IUnknown*);
00059         virtual ~CMatrix();
00060         hyp_DECLARE_IUNKNOWN
00061         virtual hyp_ker::com_result NondelegatingQueryInterface(const hyp_ker::hypIID&,void**);
00062         static hyp_ker::com_result CreateInstance(hyp_ker::IUnknown* pUnknownOuter,hyp_ker::CUnknown**);
00063         hyp_ker::com_result Init(void); 
00064         void FinalRelease(void);
00066 
00070         virtual void Transpose(IMatrix*);
00071         virtual void SetMatrix(IMatrix*);
00072         virtual void Multiply (const IMatrix* ,IMatrix*);
00073         virtual void Extract (const t_size& ,const t_size& ,const t_size& , const t_size& ,IMatrix* );
00074         virtual void IncrValue(const t_size& ,const t_size& ,const t_real& );
00075         virtual void SetDim(const t_size& , const t_size& , const t_real& );
00076         virtual void SetValue(const t_size& , const t_size& , const t_real& );
00077         virtual t_real GetValue(const t_size& ,const t_size& ) const;
00078         virtual void SetMatrix(const t_real& );
00079         virtual t_size GetNbRow() const;
00080         virtual t_size GetNbColumn() const;
00081         virtual void Multiply(const t_real& );
00082         virtual void Substract(const IMatrix* );
00083         virtual void Invert();
00084         virtual void Add(const IMatrix* );
00085         virtual bool IsSymmetrical();
00086         virtual void EraseRow(const t_size& );
00087         virtual void EraseColumn(const t_size& );
00088         virtual void EraseRowsAndColumns(const t_mask_array&, const t_mask_array&);
00090 
00091 private:
00092         t_LibraryMatrix Matrix_biblio;
00093         void _CopyMatrixFromComposant( const IMatrix* ,t_LibraryMatrix& ) const;
00094         void _CopyMatrixFromImpl(const t_LibraryMatrix& ,IMatrix* );
00095         void _CopyVectorFromComposant(const IMatrix* ,t_LibraryVector& ) const;
00096         void _CopyVectorFromImpl(const t_LibraryVector& ,IMatrix* );
00097 
00098 };
00099 
00100 
00101 #endif

Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.