answersLogoWhite

0


Best Answer

/* Multiplication of matrics is very easy in c, here is code below */

#include
main()
{
int temp=0;
int arr[3][3]={1,2,3,4,5,6,7,8,9};
int arr1[3][3]={10,11,12,13,14,15,16,17,18} ;
for(int i=0;i<=2;i++)
{
printf("\n");
for(int j=0;j<=2;j++)
{
for(int k=0;k<3;k++)
{
temp = temp+ (arr1[j][k]* arr[k][j]);
}
printf("%d\t",temp);

}
}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Develop program code for two by two matrix multiplication?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic
Related questions

How do you develop a tic tac toe program in java?

See related links for sample code and step-by-step Java tutor on how to develop a tic-tac-toe program.


Would you identify a problem in mechanical engineering and develop a program to solve it by drawing a flowchart writing a pseudo code that satisfies the flowchart and write the c code for the program?

I really don't understand you.....


Write the generator matrix for the hamming code 51?

i want hamming code matrix (h and g)


Will you please tell the GWBASIC program for the multiplication of two arrays?

just type "chikosalovakia" on gw basic .......................it will give you all instructions............it is a special code.................


What is a data matrix bar code?

A data matrix bar code is used on almost very product which is found in stores. The data matrix bar code is used to identify a product and find the price in a computer system.


What are codes to ice age?

Matrix Code


How do you catch a real Pokemon?

Input a code into the matrix.


How do you generate generator matrix in linear block code when a code word is given?

The generator matrix is made out of that code word and all the possibilities for the code words. The number of rows of the generator matrix are the number of message bits and the number of columns are equal to the total number of bits i.e parity bits + message bits. The only necessary condition is that each row of generator matrix is linearly independent of the other row.


A line of software code is called?

A line of software code is called a line of source code... Come on now.Source lines of code (SLOC) is a software metric used to measure the size of a software program by counting the number of lines in the text of the program's source code. SLOC is typically used to predict the amount of effort that will be required to develop a program, as well as to estimate programming productivity or effort once the software is produced.see: http://en.wikipedia.org/wiki/Source_lines_of_code


Source code for n dimensional matrix operations?

See Numpy (a Python library for general N-dimensional matrix operations): http://numpy.org/


How is an error corrected by using the Hamming code?

assume that u have received a code, you multiply it to parity check matrix and it results to syndrome, the syndrome identify you the error code from table look up which can be made by multiplying any probable error pattern in generator matrix.


How do you develop a game on the computer?

CODE