comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Multiplying a cube by a vector
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Multiplying a cube by a vector [message #18230] Wed, 08 December 1999 00:00
Pierre Chanial is currently offline  Pierre Chanial
Messages: 2
Registered: November 1999
Junior Member
Hi !

Has anybody written a function that multipies an array by a vector along
a given dimension?
For the last dimension, one can do for an array of dimension nx,ny,nz :

vector_unit = replicate(1, nx*ny)
newcube = vector ## vector_unit
newcube = reform(cube,nx*ny, nz) * temporary(newcube)
newcube = reform(newcube, nx,ny,nz, /overwrite)

but for the other dimensions ?

Cheers Pierre
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Usage of System Variables
Next Topic: Re: PV-Wave Interapplication Communication Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:35:07 PDT 2025

Total time taken to generate the page: 0.00616 seconds