Dear Erel,
It would be immensely useful to have operations on entire arrays or sub-arrays with a single statement.
Example 1
Dim y(5) As Double ' say y=[0 1.1 2.2 3.3 4.4]
Dim x(2) as Double
x=y(3:4) ' should give me x=[3.3 4.4]
Example 2
Dim y(2,4) As Double ' say y=[0 1.1 2.2 3.3] ---first row and y=[4.4 5.5 6.6 7.7]---second row then
Dim x(2,2) as Double
x=y(*:*,3:4) 'should give me x=[2.2 3.3] ---first row and x=[6.6 7.7]---second row
Thanks and regards,
It would be immensely useful to have operations on entire arrays or sub-arrays with a single statement.
Example 1
Dim y(5) As Double ' say y=[0 1.1 2.2 3.3 4.4]
Dim x(2) as Double
x=y(3:4) ' should give me x=[3.3 4.4]
Example 2
Dim y(2,4) As Double ' say y=[0 1.1 2.2 3.3] ---first row and y=[4.4 5.5 6.6 7.7]---second row then
Dim x(2,2) as Double
x=y(*:*,3:4) 'should give me x=[2.2 3.3] ---first row and x=[6.6 7.7]---second row
Thanks and regards,