df89e09b2e
* NEW: '_operators' interface has been renamed as '_operator'. * NEW: Arithmetic operators now can be applied on two objects with different classes. One at least must implement the '_operator' interface. * NEW: Each class that implements the '_operator' interface has now an automatic priority that follows the load order. When a binary operator has two objects that implement two different '_operator' interface, the one having the highest priority is used. * NEW: Implementing all methods in the '_operators' interface is not mandatory anymore. If one method is not implemented, then it is replaced by a function that raises a 'Type mismatch' error. [GB.GSL] * NEW: Matrix arithmetic has been implemented. * NEW: Matrix.Determinant() method. * NEW: Matrix.Invert() method. * NEW: Matrix.Transpose() method. * NEW: Matrix _call special method multiplies a matrix by a vector. * NEW: Vector <-> Array conversion. git-svn-id: svn://localhost/gambas/trunk@4946 867c0c6c-44f3-4631-809d-bfa615b0a4ec
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
/***************************************************************************
|
|
|
|
main.h
|
|
|
|
gb.gsl component
|
|
|
|
(c) 2012 Randall Morgan <rmorgan62@gmail.com>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 1, or (at your option)
|
|
any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
MA 02110-1301, USA.
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef __MAIN_H
|
|
#define __MAIN_H
|
|
|
|
#include "gambas.h"
|
|
#include "gb_common.h"
|
|
|
|
#include <gsl/gsl_math.h>
|
|
#include <gsl/gsl_blas.h>
|
|
#include <gsl/gsl_cblas.h>
|
|
#include <gsl/gsl_complex.h>
|
|
#include <gsl/gsl_vector.h>
|
|
#include <gsl/gsl_complex_math.h>
|
|
#include <gsl/gsl_linalg.h>
|
|
#include <gsl/gsl_matrix.h>
|
|
|
|
#ifndef __MAIN_C
|
|
extern GB_INTERFACE GB;
|
|
extern GB_CLASS CLASS_Array;
|
|
extern GB_CLASS CLASS_Complex;
|
|
extern GB_CLASS CLASS_Vector;
|
|
extern GB_CLASS CLASS_Matrix;
|
|
extern GB_CLASS CLASS_Polynomial;
|
|
#endif
|
|
|
|
#endif /* __MAIN_H */
|