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

Functions for Singular Value Decomposition (SVD) in the C3E library. More...

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

Go to the source code of this file.

Functions

c3e_svd c3e_svd_init (c3e_matrix *matrix)
 Initializes and computes the Singular Value Decomposition (SVD) of a matrix.
 
void c3e_svd_free (c3e_svd svd)
 Frees the resources associated with an SVD decomposition.
 

Detailed Description

Author
Nathanne Isip

This file provides functions for performing Singular Value Decomposition (SVD) on matrices within the C3E library. SVD is a matrix factorization technique used in various applications including dimensionality reduction, data compression, and numerical stability.

Function Documentation

◆ c3e_svd_free()

void c3e_svd_free ( c3e_svd  svd)

This function deallocates memory used by the c3e_svd structure, which includes freeing memory for the left singular vectors, right singular vectors, and singular values.

Parameters
svdThe c3e_svd structure to be freed.

◆ c3e_svd_init()

c3e_svd c3e_svd_init ( c3e_matrix matrix)

This function performs SVD on the given matrix and returns the decomposition components, which include the left singular vectors, right singular vectors, and the singular values.

Parameters
matrixPointer to the matrix to be decomposed.
Returns
A c3e_svd structure containing the results of the SVD computation, including:
  • left: Matrix containing the left singular vectors.
  • right: Matrix containing the right singular vectors.
  • singular: Vector containing the singular values.