The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Can anyone give me the code for this assignment in C++ please?
Â
COSC2430: Programming and Data StructuresDense Matrix Multiplication1IntroductionYou will create a C++ program to multiply a square matrix. You can program matrix multiplication withany algorithm, provided results are correct. It is preferred your algorithm can multiply matrices efFciently,avoiding unnecessary products or data movement in the memory hierarchy.Given a matrixAof sizen×nyou will compute result matrixC=AA=A2. Notice you will notcomputeAAT.2Input and OutputThe input is a single text Fle, with one matrix. The output is also a single text Fle, with one matrix.±ile format: There will be ONE matrix row per line in the Fle. Each value is a real number that may ormay not have a decimal point (e.g. 1, 2.1, 3.1416). Values are separated by spaces. Comments have a # atthe beginning of the line (no spaces before); comments should be skipped, by the program.Example 1 of input and result matrix#Matrix A, I matrix, 2 dimensions1 00 1#Matrix C=AA, 2 decimals1.00 0.000.00 1.00Example 2 of input and result matrix# Matrix A, 3 dimensions0.5 3.0 0.00.0 1.0 0.81.0 0.0 0.2#Matrix C=AA, 2 decimals0.25 4.50 2.400.80 1.00 0.960.70 3.00 0.04
Attachments: