Skip to content

orpheric73/OPERATION-ON-MATRIX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matrix Operations in C

Description

This project is a program written in the C programming language that allows dynamic manipulation of multiple matrices with variable dimensions. It provides the ability to perform basic matrix operations such as:

  • Matrix addition
  • Matrix subtraction
  • Matrix multiplication (for two matrices only) The program handles secure user input, dynamic memory allocation, and proper resource deallocation.

Features

  • Input of the number of matrix
  • Dynamic input of the number of lines and columns for each matrix.
  • User input validation (secure scanf)
  • Dynamic memory allocation
  • Memory error handling
  • Formatted matrix display

Security and Validation

  • User input validation
  • Memory allocation checks
  • Complete memory deallocation before program termination.

Possible Improvements

  • Add multiplication of multiple matrix
  • Add operations:
    • Transpose
    • Determinant
    • Inverse

Technologies

  • Language: C
  • Compiler: GCC or any standard C compiler.

Compilation and execution

To execute the program, you need to compile the following files:

  • main.c
  • MATRIX_FUNCTION.c
  • MATRIX_FUNCTION.h

License

This project is licensed under the GNU GPLv3 License. See License for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages