Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Fastest way to check inequality

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91376] Re: Fastest way to check inequality
  • From: Ray Koopman <koopman at sfu.ca>
  • Date: Tue, 19 Aug 2008 07:14:17 -0400 (EDT)
  • References: <g8b8st$8pi$1@smc.vnet.net>

On Aug 18, 12:38 am, Ravi Balasubramanian <br... at cs.washington.edu>
wrote:
> 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

See the discussion '"short circuiting" And and Or', Oct 20-21, 2006:
http://groups.google.ca/group/comp.soft-sys.math.mathematica/browse_frm/thread/966d232547bae196/


  • Prev by Date: Re: Incorrect integral in Mathematica
  • Next by Date: Re: Equations system with zero
  • Previous by thread: Fastest way to check inequality
  • Next by thread: Re: Fastest way to check inequality