array question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WStoreyII

    array question

    quick question

    i know that a two dimension array is like a chart
    basically (x columns, y rows)

    my question is though what would an array with more than two dimensions look
    like?

    would it represent more than one table?

    WStoreyII

    Thanks Again

    Happy Easter !!!!!


  • Rob Teixeira [MVP]

    #2
    Re: array question

    MyArray(x, y, z, ...etc)

    After 3 dimensions, which you can picture as something like a rubic's cube,
    it's best to stop visualizing the array, and just work with the fact that
    you have more indexe combinations.

    -Rob Teixeira [MVP]

    "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
    news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=blue]
    > quick question
    >
    > i know that a two dimension array is like a chart
    > basically (x columns, y rows)
    >
    > my question is though what would an array with more than two dimensions[/color]
    look[color=blue]
    > like?
    >
    > would it represent more than one table?
    >
    > WStoreyII
    >
    > Thanks Again
    >
    > Happy Easter !!!!!
    >
    >[/color]


    Comment

    • Rob Teixeira [MVP]

      #3
      Re: array question

      MyArray(x, y, z, ...etc)

      After 3 dimensions, which you can picture as something like a rubic's cube,
      it's best to stop visualizing the array, and just work with the fact that
      you have more indexe combinations.

      -Rob Teixeira [MVP]

      "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
      news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=blue]
      > quick question
      >
      > i know that a two dimension array is like a chart
      > basically (x columns, y rows)
      >
      > my question is though what would an array with more than two dimensions[/color]
      look[color=blue]
      > like?
      >
      > would it represent more than one table?
      >
      > WStoreyII
      >
      > Thanks Again
      >
      > Happy Easter !!!!!
      >
      >[/color]


      Comment

      • WStoreyII

        #4
        Re: array question

        ok i am sure you are right there
        but like how would i use it

        i cant use an array if i dont understand what each index does

        WStoreyII

        "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
        news:esYvAUCIEH A.3444@TK2MSFTN GP11.phx.gbl...[color=blue]
        > MyArray(x, y, z, ...etc)
        >
        > After 3 dimensions, which you can picture as something like a rubic's[/color]
        cube,[color=blue]
        > it's best to stop visualizing the array, and just work with the fact that
        > you have more indexe combinations.
        >
        > -Rob Teixeira [MVP]
        >
        > "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
        > news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=green]
        > > quick question
        > >
        > > i know that a two dimension array is like a chart
        > > basically (x columns, y rows)
        > >
        > > my question is though what would an array with more than two dimensions[/color]
        > look[color=green]
        > > like?
        > >
        > > would it represent more than one table?
        > >
        > > WStoreyII
        > >
        > > Thanks Again
        > >
        > > Happy Easter !!!!!
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • WStoreyII

          #5
          Re: array question

          ok i am sure you are right there
          but like how would i use it

          i cant use an array if i dont understand what each index does

          WStoreyII

          "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
          news:esYvAUCIEH A.3444@TK2MSFTN GP11.phx.gbl...[color=blue]
          > MyArray(x, y, z, ...etc)
          >
          > After 3 dimensions, which you can picture as something like a rubic's[/color]
          cube,[color=blue]
          > it's best to stop visualizing the array, and just work with the fact that
          > you have more indexe combinations.
          >
          > -Rob Teixeira [MVP]
          >
          > "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
          > news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=green]
          > > quick question
          > >
          > > i know that a two dimension array is like a chart
          > > basically (x columns, y rows)
          > >
          > > my question is though what would an array with more than two dimensions[/color]
          > look[color=green]
          > > like?
          > >
          > > would it represent more than one table?
          > >
          > > WStoreyII
          > >
          > > Thanks Again
          > >
          > > Happy Easter !!!!!
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Cor Ligthert

            #6
            Re: array question

            Hi WS

            Your multidimensiona l Array is everytime an single Array from the lowest
            level

            I hope this helps?

            Cor


            Comment

            • Cor Ligthert

              #7
              Re: array question

              Hi WS

              Your multidimensiona l Array is everytime an single Array from the lowest
              level

              I hope this helps?

              Cor


              Comment

              • WStoreyII

                #8
                Re: array question

                huh

                you sort of lost me there cor

                WStoreyII

                "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
                news:%238csFQFI EHA.2128@TK2MSF TNGP11.phx.gbl. ..[color=blue]
                > Hi WS
                >
                > Your multidimensiona l Array is everytime an single Array from the lowest
                > level
                >
                > I hope this helps?
                >
                > Cor
                >
                >[/color]


                Comment

                • WStoreyII

                  #9
                  Re: array question

                  huh

                  you sort of lost me there cor

                  WStoreyII

                  "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
                  news:%238csFQFI EHA.2128@TK2MSF TNGP11.phx.gbl. ..[color=blue]
                  > Hi WS
                  >
                  > Your multidimensiona l Array is everytime an single Array from the lowest
                  > level
                  >
                  > I hope this helps?
                  >
                  > Cor
                  >
                  >[/color]


                  Comment

                  • Chris Dunaway

                    #10
                    Re: array question

                    On Mon, 12 Apr 2004 00:45:27 GMT, WStoreyII wrote:
                    [color=blue]
                    > ok i am sure you are right there
                    > but like how would i use it
                    >
                    > i cant use an array if i dont understand what each index does
                    >
                    > WStoreyII
                    >
                    > "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
                    > news:esYvAUCIEH A.3444@TK2MSFTN GP11.phx.gbl...[color=green]
                    >> MyArray(x, y, z, ...etc)
                    >>
                    >> After 3 dimensions, which you can picture as something like a rubic's[/color]
                    > cube,[color=green]
                    >> it's best to stop visualizing the array, and just work with the fact that
                    >> you have more indexe combinations.
                    >>
                    >> -Rob Teixeira [MVP]
                    >>
                    >> "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
                    >> news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=darkred]
                    >>> quick question
                    >>>
                    >>> i know that a two dimension array is like a chart
                    >>> basically (x columns, y rows)
                    >>>
                    >>> my question is though what would an array with more than two dimensions[/color]
                    >> look[color=darkred]
                    >>> like?
                    >>>
                    >>> would it represent more than one table?
                    >>>
                    >>> WStoreyII
                    >>>
                    >>> Thanks Again
                    >>>
                    >>> Happy Easter !!!!!
                    >>>
                    >>>[/color]
                    >>
                    >>[/color][/color]

                    Try thinking of a two dimensional array as an array of arrays
                    Try thinking of a three dimensional array as an array of 2 dimensional
                    arrays.

                    Or if you prefer, try thinking in terms of 3D space X, Y, and Z axes where
                    the X dimension is horizontal from left to right, Y axis is vertical up,
                    and down, and the Z axis if forward and backwards.

                    Does that help any?

                    --
                    Chris

                    To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
                    address.

                    Comment

                    • Chris Dunaway

                      #11
                      Re: array question

                      On Mon, 12 Apr 2004 00:45:27 GMT, WStoreyII wrote:
                      [color=blue]
                      > ok i am sure you are right there
                      > but like how would i use it
                      >
                      > i cant use an array if i dont understand what each index does
                      >
                      > WStoreyII
                      >
                      > "Rob Teixeira [MVP]" <RobTeixeira@@m sn.com> wrote in message
                      > news:esYvAUCIEH A.3444@TK2MSFTN GP11.phx.gbl...[color=green]
                      >> MyArray(x, y, z, ...etc)
                      >>
                      >> After 3 dimensions, which you can picture as something like a rubic's[/color]
                      > cube,[color=green]
                      >> it's best to stop visualizing the array, and just work with the fact that
                      >> you have more indexe combinations.
                      >>
                      >> -Rob Teixeira [MVP]
                      >>
                      >> "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
                      >> news:1Pkec.5057 1$MK1.33797@new ssvr25.news.pro digy.com...[color=darkred]
                      >>> quick question
                      >>>
                      >>> i know that a two dimension array is like a chart
                      >>> basically (x columns, y rows)
                      >>>
                      >>> my question is though what would an array with more than two dimensions[/color]
                      >> look[color=darkred]
                      >>> like?
                      >>>
                      >>> would it represent more than one table?
                      >>>
                      >>> WStoreyII
                      >>>
                      >>> Thanks Again
                      >>>
                      >>> Happy Easter !!!!!
                      >>>
                      >>>[/color]
                      >>
                      >>[/color][/color]

                      Try thinking of a two dimensional array as an array of arrays
                      Try thinking of a three dimensional array as an array of 2 dimensional
                      arrays.

                      Or if you prefer, try thinking in terms of 3D space X, Y, and Z axes where
                      the X dimension is horizontal from left to right, Y axis is vertical up,
                      and down, and the Z axis if forward and backwards.

                      Does that help any?

                      --
                      Chris

                      To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
                      address.

                      Comment

                      • Cor Ligthert

                        #12
                        Re: array question

                        Better

                        Your multidimensiona l Array is everytime a single Array from the lower level

                        v(w,x,y,z)
                        -------------------
                        v(ArrayW)
                        w(ArrayX)
                        x(ArrayY)
                        y(ArrayZ)

                        Cor


                        Comment

                        • Cor Ligthert

                          #13
                          Re: array question

                          Better

                          Your multidimensiona l Array is everytime a single Array from the lower level

                          v(w,x,y,z)
                          -------------------
                          v(ArrayW)
                          w(ArrayX)
                          x(ArrayY)
                          y(ArrayZ)

                          Cor


                          Comment

                          • Sin

                            #14
                            Re: array question

                            > ok i am sure you are right there[color=blue]
                            > but like how would i use it
                            >
                            > i cant use an array if i dont understand what each index does[/color]

                            YOU define what each index does.

                            For example :

                            Dim data(4, 11, 30, 11, 59, 59) as Long

                            Index per apperance : Year index (from 2000), month, day, hour, minute,
                            second

                            This array would have one Long in memory for each second elapsed from 2000
                            to 2005 (plus a couple extras since months dont always have 31 days, hour
                            change, etc). Don't actually try to allocate it for testing purposes, it
                            would take over 300 megs of memory...

                            Once you've passed 3 dimensions, you can't really picture it like other
                            arrays. In fact, in memory it's just a 1 dimension flat chunk of data
                            anyhow... hehe...

                            In fact you could switch dimensions and as long as you switch indexing
                            you'll always end up on the right element. In my example, it doesnt matter
                            if minutes are first or last, you'll get one slot of indexable memory for
                            each element anyhow. Your data would be reprensented differently in memory
                            though...

                            Alex.


                            Comment

                            • Cor Ligthert

                              #15
                              Re: array question

                              Hi Sin,

                              This is a great answer, however start next time with telling "Think on the
                              dates and times".

                              However the answer is great and I will try to remember it me when someone
                              ask it again.

                              Cor


                              Comment

                              Working...