Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Find out about Online Training
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 11 Professional
Maple 11 Academic
Maple 11 Student Use
Recorded Online Seminars
FREE Training Resources


MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

View Maple 10 in Action
Product Comparison Chart

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple 10 Training Videos
MaplePrimes, blogs, forums
Elite Maintenance Program
Application Centre
Powertools
Maple User Group (MUG)
Join the Maple User Group
(MUG)

Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] How to do matrix parallel computation

Search email archive for  

[MUG] How to do matrix parallel computation
Author:    Posted: Thu, 09 May 2002 10:14:03 +0800

>> From: "900459"

Given two matrixes

a=[1 2]
[3 4]

b=[1 2]
[3 4]

I would like to do operation element to element? Which command should I use?

For example,
a/b=[1 1]
[1 1]

a*b=[1 4]
[9 16]

[MUG] Re: How to do matrix parallel computation
Author: Maple User Group    Posted: Wed, 15 May 2002 11:26:25 -0400

>> From: Maple User Group "maple_gr"

| >> From: "900459"
| Given two matrixes
| I would like to do operation element to element? Which command should I use?

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 May 2002 17:13:36 -0700
To: "maple-list"
From: David Harrington "dharr"
Subject: How to do matrix parallel computation

Try zip:
>with(linalg):a:=matrix(2,2,[1,2,3,4]);b:=matrix(2,2,[1,2,3,4]):

> zip(`*`,a,b);

[1 4]
[ ]
[9 16]

> zip(`/`,a,b);

[1 1]
[ ]
[1 1]




-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 May 2002 17:34:04 -0700 (PDT)
From: Robert Israel "israel"
To: "maple-list"
Subject: How to do matrix parallel computation


> zip(`/`,a,b);

> zip(`*`,a,b);

Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 May 2002 22:12:08 -0400 (EDT)
From: Carl Devore "devore"
To: "maple-list" "900459"
Subject: How to do matrix parallel computation


zip(`/`, a, b);
zip(`*`, a, b);



-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 May 2002 17:24:59 +0200
From: Helmut Kahovec "helmut.kahovec"
To: "maple-list" "900459"
Subject: How to do matrix parallel computation


Well, you may do the following:

> restart;
> A:=matrix(2,2,[1,2,3,4]);

> B:=matrix(2,2,[1,2,3,4]);

> matrix(2,2,[seq(seq(A[i,j]/B[i,j],j=1..2),i=1..2)]);

[1 1]
[ ]
[1 1]

> matrix(2,2,[seq(seq(A[i,j]*B[i,j],j=1..2),i=1..2)]);

[1 4]
[ ]
[9 16]


Kind regards,

Helmut



-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Mon, 13 May 2002 12:41:02 +0200
From: Adri van der Meer "A.W.J.vanderMeer"
To: "maple-list"
Subject: How to do matrix parallel computation

Use
zip( `/`, a,b ); or: zip( (x,y)->x/y, a,b );

zip( `*`, a,b ); or: zip( (x,y)->x*y, a,b );

--
A. van der Meer
Dept. Applied Mathematics
University of Twente Phone +31 (53) 4893427
P.O. Box 217 Fax +31 (53) 4894824
7500 AE Enschede

Previous by date: [MUG] Re: Finding the maximum value of a function over a range,  Jeff Wright
Next by date: [MUG] eigenvect for real nonsymmetric matrix
Previous thread: [MUG] Worksheet picture sizes,  Terry Walters
Next thread: [MUG] eigenvect for real nonsymmetric matrix



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

What's New in Maple 11 for Professionals
Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055