[Gambas-user] [Gambas Bug Tracker] Bug #886: Operations with numeric vectors/arrays

bugtracker at ...3416... bugtracker at ...3416...
Tue Jan 19 14:03:10 CET 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.886&from=L21haW4-

Martin CRISTIA reported a new bug.

Summary
-------

Operations with numeric vectors/arrays

Type             : Request
Priority         : Low
Gambas version   : Unknown
Product          : Language


Description
-----------

Basic math operations with vectors:

Dim vec1 as Float[], vec2 as Float[]

vec1 = [1.0, 2.2, 4.5]
vec2 = [4.5, 5.6, 6.7]

vec1 = vec1 + vec2 ---> vec1[0] = vec1[0] + vec2[0] and so on

vec2 *= 3.5  ---> vec2[0] *= 3.5 ; vec2[1] *=3.5 ......








More information about the User mailing list