LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Rules for element-by-element product in array multiplication

On Mar 20, 9:56 pm, Alan Beban wrote:
Paul wrote:
I've read up on array formulas on the web, and experimented
with multiplying vector array constant with different lengths
and orientations. Regardless of the order in which they
appear in the expression, if a M-tall array constant is
multiplied with a N-wide array constant, the result is an
M-tall, N-wide matrix. The result at the mth row and nth
column is the product of the mth element from the tall vector
and the nth element from the wide vector. How universal is
this? Can this be relied upon to hold in all situations?


What do you mean "in all situations"?


I mean whenever I use an expression involving multiplication
between arrays in Excel, will this be the behaviour? Right now,
it is just an observation based on limited experimenting with
Excel. The behaviour doesn't seem to be documented.

Things get complicated if I multiply 2-D array constants of
differing dimensions. Does anyone know the rules for this?
Does it actually do anything useful enough to be exploited?


Matrices do not commute with respect to multiplication. I.e.,
in general AxB is not equal to BxA; and in all cases, the
product exists only if the number of columns in the left hand
array is equal to the number of rows in the right hand array.
And the resulting array has the same number of rows as the left
hand array and the same number of columns as the right hand
array.


I agree. I am referring specifically to what Excel when an array
formula has two arrays being multiplied.

Finally, I noticed that one can specify a target area for the
array multiplication that differs in size from the resulting
matrix. If it is too small along a certain dimension, the
matrix simply gets truncated along that direction. If it is
too big, the extra cells are filled with #N/A. Is there a
way to show the boundary of cells over which an array formula
is specified?


What do you mean "show the boundary of cells over which an
array formula is specified"? More particularly, what do you
mean by "show", what do you mean by "boundary of cells", and
what do you mean by "over which an array formula is specified"?


An array formula is applied over a rectangular collection of
cells on the spreadsheet. It would be handy to see at a glance
which cells are included in an array formula. I was looking for
a visual indicator (besided clicking on each cell to see if that
particular cell is part of the array formula).
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping through each element of an array Conan Kelly Excel Programming 3 March 3rd 06 10:30 AM
Permutations of an array element < to a value Bruce Excel Worksheet Functions 3 January 31st 06 04:00 PM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 6 November 9th 05 05:54 AM
Array problem: Key words-Variant Array, single-element, type mismatch error davidm Excel Programming 1 November 8th 05 04:21 AM
Array element Andrea[_8_] Excel Programming 5 December 7th 04 08:24 PM


All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"