Giter Site home page Giter Site logo

s21_matrices's Introduction

Matrices


An educational project that requires the development of a library that allows you to work with matrices (about matrix structure) and perform various operations.

Contents:

Overview:


Matrix structure in C language:

typedef struct matrix_struct {
 double** matrix;
 int rows;
 int columns;
} matrix_t;

How to build:


$ cd src $ make

Matrix operations:

Functions Description
int s21_create_matrix(int rows, int columns, matrix_t *result); Creating matrices
void s21_remove_matrix(matrix_t *A); Cleaning of matrices
int s21_eq_matrix(matrix_t *A, matrix_t *B); Matrix comparison
int s21_sum_matrix(matrix_t *A, matrix_t *B, matrix_t *result); Adding matrices
int s21_sub_matrix(matrix_t *A, matrix_t *B, matrix_t *result); Substracting matrices
int s21_mult_number(matrix_t *A, double number, matrix_t *result); Matrix multiplication by scalar
int s21_mult_matrix(matrix_t *A, matrix_t *B, matrix_t *result); Multiplication of two matrices
int s21_transpose(matrix_t *A, matrix_t *result); Matrix transpose
int s21_calc_complements(matrix_t *A, matrix_t *result); Minor of matrix and matrix of algebraic complements
int s21_determinant(matrix_t *A, double *result); Matrix determinant
int s21_inverse_matrix(matrix_t *A, matrix_t *result); Inverse of the matrix

Technological description:


  • The library was implemented in C language of C11 standard using gcc compiler. Based on the POSIX.1-2017 standard. The library developed according to the principles of structured programming
  • Full coverage of the library functions code with unit-tests with the Check library.
  • Supported systems: Linux-based systems and macOS

s21_matrices's People

Contributors

enevales avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.