Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • d3c1510
  • /
  • ladel_matmat.h
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:1af7d7006cf87cd021eef4d303e37395b4faddcd
directory badge Iframe embedding
swh:1:dir:d3c1510be47586da317303bf0d52a9da0f013bf2
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
ladel_matmat.h
/**
 * @file ladel_matmat.h
 * @author Ben Hermans
 * @brief Routines to compute matrix matrix products. For now only @f$MM^T@f$ and @f$M\Sigma M^T@f$, 
 * with @f$\Sigma@f$ a diagonal matrix, are supported.
 */

#ifndef LADEL_MATMAT_H
#define LADEL_MATMAT_H

#include "ladel_types.h"

/**
 * Computes @f$MM^T@f$.
 * 
 * @param M             Matrix
 * @param M_transpose   The transpose of @a M
 * @param work          LADEL workspace
 * @return              @f$MM^T@f$
 */
ladel_sparse_matrix *ladel_mat_mat_transpose(   ladel_sparse_matrix *M, 
                                                ladel_sparse_matrix *M_transpose, 
                                                ladel_work          *work);

/**
 * Computes the pattern of @f$MM^T@f$.
 * 
 * @param M             Matrix
 * @param M_transpose   The transpose of @a M
 * @param work          LADEL workspace
 * @return              The patter of @f$MM^T@f$
 */
ladel_sparse_matrix *ladel_mat_mat_transpose_pattern(   ladel_sparse_matrix *M, 
                                                        ladel_sparse_matrix *M_transpose, 
                                                        ladel_work          *work);

/**
 * Computes @f$M\Sigma M^T@f$.
 * 
 * @param M             Matrix
 * @param M_transpose   The transpose of @a M
 * @param diag          Array containing the diagonal of @f$\Sigma@f$
 * @param work          LADEL workspace
 */
ladel_sparse_matrix *ladel_mat_diag_mat_transpose(  ladel_sparse_matrix *M, 
                                                    ladel_sparse_matrix *M_transpose, 
                                                    ladel_double        *diag, 
                                                    ladel_work          *work);

/**
 * Core mat_mat_transpose function with all options (diag and value/pattern).
 * 
 * @note If @a values==FALSE, only the pattern of @f$MM^T@f$. Setting @a diag=NULL, then @f$\Sigma = I@f$
 * is assumed.
 *   
 * @param M             Matrix             
 * @param M_transpose   Transpose of M
 * @param diag          Array containing the diagonal of @f$\Sigma@f$. If NULL, @f$\Sigma = I@f$.
 * @param values        Values or pattern computation
 * @param work          LADEL workspace
 */
ladel_sparse_matrix *ladel_mat_mat_transpose_advanced(  ladel_sparse_matrix *M, 
                                                        ladel_sparse_matrix *M_transpose, 
                                                        ladel_double        *diag, 
                                                        ladel_int           values, 
                                                        ladel_work          *work);

#endif /* LADEL_MATMAT_H */

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top