Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Calculate item from n-size cross product without creating product?

  1. Mar 7, 2014 #1
    Hi all,

    I'm trying to work out how I can get the set at specific index in a cross product without creating the whole product.

    For instance:

    I have array A of length 512

    I also have a number that specifies how many times that array needs to be 'cross-producted' against itself.

    This gives me a potentially huge set of sets. I need to be able to work out what the set is at a particular point, without iterating through the entire cross product creation procedure.

    Anyone have any advice?
     
  2. jcsd
  3. Mar 7, 2014 #2

    mathman

    User Avatar
    Science Advisor
    Gold Member

    What doew "cross product" mean in this context?
     
  4. Mar 7, 2014 #3
    Hi Mathman,

    As an example:

    A = [1, 2, 3, 4]

    gives:
    1,1
    1,2
    1,3
    1,4
    2,1
    2,2
    2,3
    2,4
    3,1
    3,2
    3,3
    3,4
    4,1
    4,2
    4,3
    4,4

    I've just noticed that I meant to say Cartesian product, sorry!
     
    Last edited: Mar 7, 2014
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Calculate item from n-size cross product without creating product?
  1. Infinite Product (Replies: 7)

Loading...