Register to reply

Array multiplication and array division

by mech-eng
Tags: array, division, multiplication
Share this thread:
mech-eng
#1
Jun23-14, 04:23 AM
P: 151
Hi, in Matlab I encounter with two new operations for me which are array multiplication and array division. I want to learn that do they have physical applications in real world physics problems or are they be related with banking and accounting.
Phys.Org News Partner Mathematics news on Phys.org
'Moral victories' might spare you from losing again
Fair cake cutting gets its own algorithm
Effort to model Facebook yields key to famous math problem (and a prize)
SteamKing
#2
Jun23-14, 07:07 AM
Emeritus
Sci Advisor
HW Helper
Thanks
PF Gold
P: 6,259
Array multiplication is a fairly common operation. I'm not sure what 'array division' is.

Array multiplication can mean, for example, the dot product between two n x 1 arrays or multiplying two rectangular arrays together to obtain another rectangular array (m x n) x (n x p) = (m x p), where m, n, and p represent the dimensions of the various arrays in the format (no. or rows x no. of columns).

Arrays are used widely in math and science (you may have encountered the term 'matrix'; 'matrix' is another name for an array).

Can you provide a clearer picture of 'array division'?
mech-eng
#3
Jun23-14, 07:13 AM
P: 151
Quote Quote by SteamKing View Post
Array multiplication is a fairly common operation. I'm not sure what 'array division' is.

Array multiplication can mean, for example, the dot product between two n x 1 arrays or multiplying two rectangular arrays together to obtain another rectangular array (m x n) x (n x p) = (m x p), where m, n, and p represent the dimensions of the various arrays in the format (no. or rows x no. of columns).

Arrays are used widely in math and science (you may have encountered the term 'matrix'; 'matrix' is another name for an array).

Can you provide a clearer picture of 'array division'?
Sorry it was a right or left division on an array. But in Matlab we can divide an array such as matrix by another array. I think the example you give on array multiplication is not what I mean. It is different than scalar and cross products in mechanics we learn. I see array multiplication while studying Matlab and it produces an array again but scalar product not. It is also different than matrix multiplication as well.

SteamKing
#4
Jun23-14, 10:58 AM
Emeritus
Sci Advisor
HW Helper
Thanks
PF Gold
P: 6,259
Array multiplication and array division

Perhaps, if you could include some examples, it might illuminate further discussion.
mech-eng
#5
Jun23-14, 11:47 AM
P: 151
Quote Quote by SteamKing View Post
Perhaps, if you could include some examples, it might illuminate further discussion.

Here is a one example. Is it enough?
Attached Thumbnails
array multiplication.png  
MarneMath
#6
Jun23-14, 12:00 PM
P: 439
Look like it's just a method within matlab that allows someone to modify the elements of the array quickly. It's important to not confuse the data structure of an array with the concept of vector or in the case of a double array, matrix.
mech-eng
#7
Jun23-14, 12:05 PM
P: 151
Quote Quote by MarneMath View Post
Look like it's just a method within matlab that allows someone to modify the elements of the array quickly. It's important to not confuse the data structure of an array with the concept of vector or in the case of a double array, matrix.
Confusing array with a vector and a matrix? But both vectors and matrices are already arrays. I think array multiplication is a new type of multiplication, multiplication of element to element.
It can both applied to matrices and vectors so it is not important to confuse any data structure.

Is it correct?
MarneMath
#8
Jun23-14, 12:15 PM
P: 439
Not quite. In programming, we often represent vectors and matrices as arrays. In programming arrays are data structures (and data types). It's useful to take the array data structure and input numbers into the memory locations for and create objects that resemble what we know as vectors and matrices. Once you do that you can begin to perform operations on the object that reflect matrix operations. However, as you've just seen, you can also modify the array in a way a normal vector and matrix cannot be modified. What is happening here is a method that exist within matlab that modifies the elements in the data sucture, quickly.
D H
#9
Jun23-14, 12:53 PM
Mentor
P: 15,055
There are applications where an element-by-element product of two arrays (##C_{ij} = A_{ij}B_{ij}##) is useful. Matlab provides this operation because it does have utility. This is not matrix multiplication. It's something different.


Register to reply

Related Discussions
Multi-Dimensional array multiplication in fortran Programming & Computer Science 6
Matlab class array / other array Math & Science Software 0
Printing 1D array in Fortran as 2D array... Programming & Computer Science 7
Inputting an array in to a function or returning an array? (C++) Programming & Computer Science 5
Converting from an array of function values to coordinate array of different length Programming & Computer Science 3