Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a 'C' Programming for below: matrixA-16by16.txt : vecX-16.txt : Matrix-vector multiplication 1. Read the matrix data from file matrixA-16by 16.txt. 2. Read the vector
Write a 'C' Programming for below:
matrixA-16by16.txt :
vecX-16.txt :
Matrix-vector multiplication 1. Read the matrix data from file "matrixA-16by 16.txt". 2. Read the vector data from file "vecX-16.txt". 3. Calculate the matrix-vector multiplication for the matrix and vector data. 4. Write the result to a new file named "matrixA-vecX-result.txt". Important points 1. The matrix data in the given file is written in the form of: X.XX X.XX X.xx X.XX X.XX X.XX X.XX X.XX X.XX which is the way a matrix is usually viewed. You have to create your input that matches the way the matrix data is aligned. 2. You may write your result into the file "matrixA-vecX-result.txt" in any format that you like. 22 3 5 17 3.3848 0.3865 8.0194 0.6962 3.3994 0.4448 0.7233 0.0749 0.2292 0.2171 0.8384 3. 6492 0.3437 0.1174 0.9374 0.6789 3.2364 0.7497 0.1715 0.7002 0.2004 0.8512 0.2748 0.6707 0.4256 2. 5087 3.7493 0.5131 3.9574 0.8177 0.4300 0.5080 2.4365 0.6439 0.2945 0.7722 2.9766 0.9363 0.7222 0.8085 0.7206 0.6799 3.5548 0.2973 0.4185 0.4313 0.8873 0.0719 9.9451 0.2611 0.8249 0.4744 0.3654 0.2376 0.5892 0.0713 0.9656 0.2616 0.9250 0.6013 0.1669 0.9083 0.4132 2.1330 2. 6807 0.8243 0.7929 0.1786 2.8960 0.3718 0.2292 0.8809 0.5046 0.4001 3.8885 0.6348 0.2546 0.0386 0.4552 0.3716 2.8354 0.2237 0.5553 0.3450 3.9747 0.2296 0.0429 0.7973 0.4037. 2.4612 0.1711 0.1989 0.6614 0.4470 0.4866 2.2983 2.5379 0.3384 0.9468 0.8062 2.3409 0.6836 0.9433 0.8463 0.3015 0.1537 3.1428 2.5017 0.2790 0.7014 0.5316 0.8394 9.7906 0.0207 0.0495 0.0609 1.2941 0.5798 0.4334 0.7802 0.2308 2.3624 0.5470 0.8548 0.6484 0.6565 0.4288 2.5040 3.4395 0.6257 0.4523 0.2250 2.5261 0.9998 0.8805 0.7056 0.6167 0.2468 2.5585 0.8329 0.8461 0.3310 0.4140 0.9739 3.5331 0.1685 0.4423 0.4959 0.9374 0.6729 0.2337 0.5713 0.8744 0.5826 3.0788 0.3586 3.8043 0.9233 0.8114 0.4576 3.6297 0.1174 0.4239 0.2310 0.4597 0.5917 0.0616 8.3297 0.4692 0.0496 0.6475 0.4311 0.4116 0.8808 0.1411 0.6432 9.9068 0.2368 0.9621 0.9569 0.2331 0.5732 0.9478 0.4431 0.3259 0.0636 0.6220 0.7527 3.9300 0.5402 0.5149 0.9741 3.9693 0.2696 3.9727 0.6537 1.3319 3. 9029 0.1791 8.8785 0.3465 0.2060 0.3735 3. 3873 8.4372 0.8174 0.3781 0.5650 3 10 11 12 13 14 0.1090 0.4501 0.1641 0.1358 3. 5312 0.6737 0.5686 0.6096 0.1807 2. 5397 0.8858 0.9298 3.9795 0.5748 0.5336 0.9839 3.7544 3.3993 0.7647 0.7915 3.8463 3.6784 0.5841 0.6051 0 . 2715 0.5985 0.9776 3.2518 0.7795 0.1911 0.3582 0.6488 15 16 3. 5699 3.0309 0.0081 0.9768 0.6819 3. 8002 0.3567 0.8225 0.5527. 3.5634 0.3977 3. 5002 0.3529 0.5376 0.2580 0.1657 0.5206 0.6534 0.1178 0.0316 0.7650 0.8505 0.7185 0.7932 0.7111 0.3862 0.0439 0.2395 0.6444 0.0231 0.6291 0.3289
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started