ents will do or which components will be available.
My problem arises because I want to obtain a list such as the following:
{{6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6}, {5, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5}, {4, 5, 6, 5, 4, 3, 2, 1, 2, 3, 4}, {3, 4, 5, 6, 5, 4, 3, 2, 1, 2, 3}, {2, 3, 4, 5, 6, 5, 4, 3, 2, 1, 2}, {1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1}}
Which displayed as a matrix is:
If it were possible to combine GH operations (series, shift list, replace string...) with matrices I think it would be quite powerful. A matrix to list component like those available on scientific calculators, would then translate the matrix to list.
For me, matrices come in handy when dealing with surface patterns.
…
Added by Jesus Galvez at 6:46am on November 26, 2012
Integer = 0 To 9
val *= 2
lst.Add(val)
Next
Since val is a ValueType, when we assign it to the list we actually put a copy of val into the list. Thus, the list contains the following memory layout:
[0] = 2
[1] = 4
[2] = 8
[3] = 16
[4] = 32
[5] = 64
[6] = 128
[7] = 256
[8] = 512
[9] = 1024
Now let's assume we do the same, but with OnLines:
Dim ln As New OnLine(A, B)
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
ln.Transform(xform)
lst.Add(ln)
Next
When we declare ln on line 1, it is assigned an address in memory, say "24 Bell Ave." Then we modify that one line over and over, and keep on adding the same address to lst. Thus, the memory layout of lst is now:
[0] = "24 Bell Ave."
[1] = "24 Bell Ave."
[2] = "24 Bell Ave."
[3] = "24 Bell Ave."
[4] = "24 Bell Ave."
[5] = "24 Bell Ave."
[6] = "24 Bell Ave."
[7] = "24 Bell Ave."
[8] = "24 Bell Ave."
[9] = "24 Bell Ave."
To do this properly, we need to create a unique line for every element in lst:
Dim lst As New List(Of OnLine)
For i As Integer = 0 To 9
Dim ln As New OnLine(A, B)
ln.Transform(xform)
lst.Add(ln)
Next
Now, ln is constructed not just once, but whenever the loop runs. And every time it is constructed, a new piece of memory is reserved for it and a new address is created. So now the list memory layout is:
[0] = "24 Bell Ave."
[1] = "12 Pike St."
[2] = "377 The Pines"
[3] = "3670 Woodland Park Ave."
[4] = "99 Zoo Ln."
[5] = "13a District Rd."
[6] = "2 Penny Lane"
[7] = "10 Broadway"
[8] = "225 Franklin Ave."
[9] = "420 Paper St."
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 6:26am on September 9, 2010
ts, a value for each point.This script is wrinting in C#, not C++. And of course, can be done with standard components, perhaps someone else help you with that.…
1+2+3+4+5+6 = 21
1+2+3+4+5+6+7 = 28
1+2+3+4+5+6+7+8 = 36
1+2+3+4+5+6+7+8+9 = 45
Is there a tool, that can do me that job?
How do I get this List {1,3,6,10,15,21,28,36,45}?…
Added by Ahmed Hossam at 2:19pm on September 22, 2013
une 7 at Madison Square Garden. Promoted by Miguel Cotto Promotions, Top Rank®, DiBella Entertainment and Sampson Boxing, in association with Maravilla Box, Tecate and Madison Square Garden.Fight Tickets and PPV InfoCotto vs Martinez tickets are now available for purchase online at Ticketnetwork. To charge by phone with a major credit card, call Buy Tickets Center at (855) 859-4045. The fight will be produced and distributed live by HBO Pay-Per-View®, beginning at 9:00 p.m. ET/6:00 p.m. PT.Hall of Fame trainer Freddie Roach is devising a cunning and effective strategy to, badger, outfox, and hound WBC middleweight champion Sergio “Maravilla” Martinez (51-2-2, 28KOs) into a brush with defeat, on June 7th at Madison Square Garden. Roach is training former three division world champion Miguel Cotto (38-4, 31KOs) for the match.“We have seen Martinez fights. I observed him closely when I was in Julio Cesar Chavez Jr’s corner, and he’s very fast. But…like all opponents he can be outboxed. If Miguel focuses on his body, Martinez will loose his speed and that’s when we will knock him out,” Roach mused.Cotto (38-4, 31 KO) and Martinez (51-2-2, 28 KO) will meet for Martinez’s WBC middleweight title and The Ring Magazine championship at Madison Square Garden, promoted by Top Rank, DiBella Entertainment, and Miguel Cotto Promotions.“Face Off” will premiere on Saturday, May 24 at Midnight EDT (so technically, the first minutes of Sunday, May 25, technically), after the May 24 HBO Boxing After Dark card, featuring Bryant Jennings vs Mike Perez, Daniel Geale vs Matthew Macklin, and Edwin Rodriguez vs Marcus Johnson.Other air times:HBO air times include: May 24 (12:00 a.m.), 25 (10:00 a.m.), 27 (3:15 p.m. & 2:30 a.m.), 28 (12:30 a.m.), 29 (5:30 p.m.), 30 (10:30 a.m.), 31 (7:00 p.m.) and June 3 (12:30 p.m. & 3:30 a.m.), 5 (1:15 a.m.), 6 (6:45 p.m.) and 7 (10:45 a.m.).HBO2 air times include: May 25 (5:30 p.m.), 26 (10:45 a.m. & 3:30 a.m.) 30 (4:00 p.m.) and 31 (11:30 p.m.).…