473,461 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Matrix multiplication

Write a program for matrix multiplication using pointers --pls.help
Oct 10 '06 #1
7 18835
r035198x
13,262 8TB
Write a program for matrix multiplication using pointers --pls.help
You will have to start it first for people to come with their help.
Write some code, get somewhere, post that code and the area you need help in. We get better programmers that way.
Oct 10 '06 #2
Hello Sandhya,

Here is the code. play with it by trying different inputs.
Learning pointers is very easy if you want to learn :)

I think it is for some interview or other. Try to understand
each bit of it especially the memory allocation part.
Feel free to ask for any clarifications..

ALL THE BEST.

::Spoonfeeding removed per Posting Guidelines::
Oct 10 '06 #3
hi im new to c programming ...could you pleaseeeee explain the above program .im trying to learn by doing programs ...but this one is confusing.please somebody explain it...
thank you very much!!
Feb 12 '07 #4
why dont u intialize the arrays before on watevr size u want like [2][3]and then using for loop initialize each element with the other one.....................i dont think such a long code would be required..
Sep 12 '07 #5
Firecore
114 100+
could you also use a linked list for this?
Sep 12 '07 #6
mfui
1
Can you please send me program in C++ for the multiplication of two matrices. The maximum order of matrices should be 5 rows and 5 columns.
Mar 16 '08 #7
JosAH
11,448 Expert 8TB
Can you please send me program in C++ for the multiplication of two matrices. The maximum order of matrices should be 5 rows and 5 columns.
We don't send programs to anyone; we help people to write code themselves by
discussing (optimal) algorithms and helping to remove flaws in the programs that
are under discussion. For free (or commercial) code google around. If all else
fails start by reading a book on linear algebra 101.

kind regards,

Jos
Mar 16 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ben Ingram | last post by:
Hi all, I am writing a template matrix class in which the template parameters are the number of rows and number of columns. There are a number of reasons why this is an appropriate tradeoff for...
15
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
3
by: robix | last post by:
Hi again. I'm now asking your help because of a smal problem i'm getting with my multiplication matrix code. I'll try to give you as many details as possible. My matrix structure: typedef...
14
by: amitnanda | last post by:
Hi Guys, I have a matrix multiplication program in C that multiplies two matrices. When their size is 3*3 or 800*800, the program runs fine. But above that size, I get a "segmentation fault"....
20
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
0
by: lituncse | last post by:
dear friends, i have come across a problem which is difficult to solve for me.it's about starssen's matrix multiplication.in general matrix multiplication we need 8 multiplications and 4 additions...
6
by: amitsoni.1984 | last post by:
Hi, Is there any direct function for matrix multiplication in Python or any of its packages? or do we have to multiply element by element? Thank you, Amit
3
by: crazygrey | last post by:
Hello, I'm a newbie to C++ so excuse me if my question was trivial but it is important to me. I'm implementing a simple code to find the forward kinematics of a robot: #include "stdafx.h"...
1
by: Sozos | last post by:
Hi guys. I have a problem with writing the base case for the following matrix multiplication function I have implemented. Please help. #define index(i,j,power) (((i)<<(power))+(j)) void...
8
by: joegao1 | last post by:
can some one give me a hint? I want to program the code for matrix multiplication with as less arithmetical / multiplication operations as possible. my task is to calculate the matrix...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.