Data Structures Lerax  v3.0-101-gb1f7
Opinionated Data Structures & Algorithms
Loading...
Searching...
No Matches
matrix.h File Reference

Go to the source code of this file.

Typedefs

typedef struct matrix Matrix
 A 2D matrix of floating-point numbers.

Functions

Matrixmatrix_create (int m, int n)
 Create a new matrix.
void matrix_free (Matrix *matrix)
 Free memory of the matrix.
float matrix_get (Matrix *matrix, int i, int j)
 Get a value on position (i,j) of the matrix.
void matrix_set (Matrix *matrix, int i, int j, float v)
 Set a value on position(i,j) of the matrix.
int matrix_lines (Matrix *matrix)
 Get the number of lines of the matrix.
int matrix_columns (Matrix *matrix)
 Get the number of columns of the matrix.

Typedef Documentation

◆ Matrix

typedef struct matrix Matrix

A 2D matrix of floating-point numbers.


                 Copyright 2017-2025 Manoel Vilela

    Author: Manoel Vilela
   Contact: manoel_vilela@engineer.com

Organization: UFC


The matrix is stored in row-major order.