2402db91f0
* NEW: Support for imaginary number syntax. For example, using "3i" will automatically load the gb.gsl component, create the corresponding complex number and return it. [COMPILER] * NEW: Support for imaginary number syntax. [GB.EVAL] * NEW: Support for imaginary number syntax. [GB.GSL] * NEW: Support for imaginary number syntax. * NEW: Vector class is now generic, and has two child classes: FloatVector and ComplexVector, depending on the type of its elements. * BUG: Support for arithmetic operators on Vector class has been removed. It had too many problems. git-svn-id: svn://localhost/gambas/trunk@4918 867c0c6c-44f3-4631-809d-bfa615b0a4ec
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/***************************************************************************
|
|
|
|
c_vector.h
|
|
|
|
gb.gsl component
|
|
|
|
(c) 2012 Benoît Minisini <gambas@users.sourceforge.net>
|
|
|
|
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 __C_VECTOR_H
|
|
#define __C_VECTOR_H
|
|
|
|
#include "main.h"
|
|
|
|
#ifndef __C_VECTOR_C
|
|
extern GB_DESC VectorDesc[];
|
|
extern GB_DESC FloatVectorDesc[];
|
|
extern GB_DESC ComplexVectorDesc[];
|
|
#endif
|
|
|
|
typedef
|
|
struct
|
|
{
|
|
GB_BASE ob;
|
|
GB_TYPE type;
|
|
gsl_vector *vector;
|
|
}
|
|
GSLVECTOR;
|
|
|
|
#endif /* __C_VECTOR_H */
|