Fastest way to check inequality
- To: mathgroup at smc.vnet.net
- Subject: [mg91361] Fastest way to check inequality
- From: Ravi Balasubramanian <bravi at cs.washington.edu>
- Date: Mon, 18 Aug 2008 03:36:52 -0400 (EDT)
Hello Math-groupers,
I need to test the inequality
A . x <= 0, where
x is a three-D vector.
A is a 35000x3 matrix.
I need to test this for 20000 points.
So I set this up as follows:
A = RandomReal[{0,1},{35000,3}];
x = RandomReal[{0,1},{20000,3}];
(And @@ NonPositive[constrMat . # ]) & /@ x;
Is this the fastest way?
Ravi
The University of Washington
Seattle, WA