Re: vector difference
- From: e p chandler <epc8@xxxxxxxx>
- Date: Wed, 6 Aug 2008 14:59:44 -0700 (PDT)
On Aug 6, 4:31 pm, glen herrmannsfeldt <g...@xxxxxxxxxxxxxxxx> wrote:
Gordon Sande wrote:
On 2008-08-06 15:36:01 -0300, nos...@xxxxxxxxxxxxx (Richard Maine) said:(snip)
utab <umut.ta...@xxxxxxxxx> wrote:
real :: a(4) = (/1.,2.,3.,4./)
real :: b(1) = (/2., 3./)
result is to beI'd say that "pack" and "any" are your friends. I'd probably do
res = (/1., 4./)
I wondered if there is a quick way to accomplish
this through intrinsic functions?
something like
(snip of actual code using PACK and ANY)
As well as being hard to read they have the
disadvantage that the algorithms
being suggested are quadratic for a well/over researched problem that has
linear (and a bit) solutions.
[snip]
With linear traversal through two sorted lists one can
choose to remove all matching element, or only one in
list A for each match to list B.
Just find a COBOL programmer to modify his program for the "balance
line algorithm" (aka "three way merge"). Updating a "master
file" (large list) based on a "transaction file" (small list) is a
Jurassic problem in business d.p.!
- e
.
- References:
- vector difference
- From: utab
- Re: vector difference
- From: Richard Maine
- Re: vector difference
- From: Gordon Sande
- Re: vector difference
- From: glen herrmannsfeldt
- vector difference
- Prev by Date: Re: Fortran vs. Matlab on linear algebra
- Next by Date: Re: Fortran vs. Matlab on linear algebra
- Previous by thread: Re: vector difference
- Next by thread: Free PGI Visual Fortran
- Index(es):
Relevant Pages
|