C3E: Complex Compute Core Engine v1.0
An engine for handling complex computational tasks
|
Defines functions and structures for matrix tuple operations in C3E. More...
#include <c3e/commons.h>
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. | |
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.
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.
original | Pointer to the original matrix to be decomposed. |
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).
matrix | Pointer to the matrix to be decomposed. |
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.
tuple | The matrix tuple to be freed. |