C3E: Complex Compute Core Engine v1.0
An engine for handling complex computational tasks
Loading...
Searching...
No Matches
matrix_tuple.h File Reference

Defines functions and structures for matrix tuple operations in C3E. More...

#include <c3e/commons.h>
Include dependency graph for matrix_tuple.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

c3e_matrix_tuple c3e_matrix_qr_decomp (c3e_matrix *matrix)
 Computes the QR decomposition of a given matrix.
 
c3e_matrix_tuple c3e_matrix_lu_decomp (c3e_matrix *original)
 Computes the LU decomposition of a given matrix.
 
void c3e_matrix_tuple_free (c3e_matrix_tuple tuple)
 Frees the memory allocated for a matrix tuple.
 

Detailed Description

Author
Nathanne Isip

This header file provides the declarations for functions related to matrix tuple operations, including QR decomposition and LU decomposition. It also includes a function for freeing matrix tuples.

Function Documentation

◆ c3e_matrix_lu_decomp()

c3e_matrix_tuple c3e_matrix_lu_decomp ( c3e_matrix original)

This function decomposes a given matrix into a product of a lower triangular matrix (L) and an upper triangular matrix (U). The input matrix should be a square matrix.

Parameters
originalPointer to the original matrix to be decomposed.
Returns
A structure containing the matrices L and U.

◆ c3e_matrix_qr_decomp()

c3e_matrix_tuple c3e_matrix_qr_decomp ( c3e_matrix matrix)

This function decomposes a given matrix into a product of an orthogonal matrix (Q) and an upper triangular matrix (R).

Parameters
matrixPointer to the matrix to be decomposed.
Returns
A structure containing the matrices Q and R.

◆ c3e_matrix_tuple_free()

void c3e_matrix_tuple_free ( c3e_matrix_tuple  tuple)

This function should be called to free the memory allocated for the matrices in the tuple returned by the decomposition functions.

Parameters
tupleThe matrix tuple to be freed.