|
[Sponsors] |
October 9, 2013, 11:12 |
How to use List< List<vector> >
|
#1 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13 |
Hi,
== 1 == I defined the following list of the list of vectors. Code:
List< List<vector> > example(...); I populate this with a number of lists of vectors. e.g. list1, list2, list3 ... etc. == 3 == The question is that how I can reach one of the vectors inside example? For example, I can reach the 3rd vector inside a "List<vector> other_example" like that: Code:
Info << other_example[2] << endl; == 4 == In the end, I would like to use this example list of lists in for loops so that I can do some algeabraic operation with them. Many thanks for any help in advance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? | will.logie | OpenFOAM Programming & Development | 1 | February 16, 2011 20:52 |
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? | will.logie | OpenFOAM | 0 | December 16, 2010 07:08 |
CAD -> gMsh -> enGrid -> OpenFOAM Problem | AlGates | OpenFOAM | 7 | August 6, 2010 12:46 |
[Netgen] Geometry > Netgen > OpenFOAM | ericnutsch | OpenFOAM Meshing & Mesh Conversion | 9 | February 22, 2010 07:39 |
convection......-> conduction......-> convection | madasu | FLUENT | 3 | November 24, 2002 01:15 |