Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I have a list of vectors and I want to calculate the dot product of all the possible combinations just once. For example, if x1*x2 is calculated, I don't want to have x2*x1 again in the results, which is what happens if I graft one of the inputs.  Is there a simple way to do this?

Thanks!

Views: 331

Replies to This Discussion

How do you want the output to be structured? The easiest solution is to use the [Cross Reference] component with LowerTriangleStrict matching, which will only do pairs once and will not operate on the same vectors.

That works great! Thanks!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service