Starting from:
$30

$24

Project 3: A Libray for Matrix Operations in C Solution


Requirements

*.c
    • The programming language can only be C, not C++. Please save your source code into

files, and compile them using a C compiler such as gcc (not g++). Try to use Makefile or CMake to manage your source code.


struct    struct
.    Design a for matrices, and the should contain the data of a matrix, the number of columns, the number of rows, etc.


float
.    Only elements in a matrix are supported. You do not need to implement some other types.



    • Implement some functions to

createMatrix()

create a matrix,
.

deleteMatrix()

delete a matrix,
.
copyMatrix()



copy a matrix (copy the data from a matrix to another),
.

addMatrix()

add two matrices,
.


subtractMatrix()

subtraction of two matrices,


add a scalar to a matrix.


subtract a scalar from a matrix.


multiply a matrix with a scalar.


multiply two matrices.


find the minimal and maximal values of a matrix.


some other functions needed


    • The designed functions should be safe and easy to use. Suppose you are designing a library for others to use. You do not need to focus on the optimization in this project, ease of use is more important.





    • Please submit the files as: report.pdf, source1.c, source2.c, header.h. I think you do not need more than 5 files for the project. Please do NOT put the files into a compressed one.


    • Your score will also depend on the quality of your source code and your report. Your report should be easy to understand and describe your work well, especially the highlights of your

work.

    • Please pay more attention to your code style. This is not ACM-ICPC contest. You have enough time to write code with both correct results and a good code style. You will get deduction if your code style is terrible. You can read Google C++ Style Guide (http://google.github.io/styleguide/cppguide.html ) or some other guide for code style.

More products