a(minloc(a(0:b,c)%d-1),c)%d returns array, not scalar

From: Dr. Richard E. Hawkins (hawk_at_slytherin.ds.psu.edu)
Date: 05/28/04


Date: Fri, 28 May 2004 18:49:45 +0000 (UTC)

I'm using minloc to find the earliest solved state (the longer horizon
makes it more reliable). However, this gives me a scalar of rank and
dimension 1, rather than a scalar:

print *,shape((states(minloc(states(0:mydepth,trialnextk)%m-1),trialnextk)%m))

yields 1, rather than 0, preventing me from assigning it to a scalar.

I can feed it to maxval() or some such, I suppose, to turn it scalar,
but this seems silly enough that I'm pretty sure I'm missing something
basic . . .

hawk

-- 
Richard E. Hawkins, Asst. Prof. of Economics    /"\   ASCII ribbon campaign
dochawk@psu.edu  111 Hiller (814) 375-4846      \ /   against HTML mail
These opinions will not be those of              X    and postings. 
Penn State until it pays my retainer.           / \   


Relevant Pages

  • Re: Does a Magnets force weaken witht the distance cube?
    ... The link above shows Gravity, Light, and Charge (I ... A scalar as a 5th dimensions ... ....."the final part(meaning 5th dimension) an extra scalar field ...
    (sci.physics.relativity)
  • Re: Does a Magnets force weaken witht the distance cube?
    ... The link above shows Gravity, Light, and Charge (I believe ... A scalar as a 5th dimensions ... Meaning of scalar and 5th dimension, ...
    (sci.physics.relativity)
  • Re: Does a Magnets force weaken witht the distance cube?
    ... The link above shows Gravity, Light, and Charge (I believe ... A scalar as a 5th dimensions ... ....."the final part(meaning 5th dimension) an extra scalar field ...
    (sci.physics.relativity)
  • Re: Does a Magnets force weaken witht the distance cube?
    ... How about Magnets...I think there's is the distance cube which is ... Therefore could Gravity, charge, photons be virtually the same in the ... A scalar as a 5th dimensions ... Meaning of scalar and 5th dimension, ...
    (sci.physics.relativity)
  • Re: General relativity versus black holes
    ... The fourth spatial dimension is periodic, and somehow so small that "n= ... Gravity and matter is all that we have ... under choice of metric signature (being the scalar contractions of two ... of dimensions invariant under some isometry group, ...
    (sci.physics.research)