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

Raw File Download
Permalink

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
content badge Iframe embedding
swh:1:cnt:00d55f8de35fcea9c278d9e09827aa995943a03e
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
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
/**
 * @file ladel_matvec.h
 * @author Ben Hermans
 * @brief Routines to compute matrix vector products. 
 */

#ifndef LADEL_MATVEC_H
#define LADEL_MATVEC_H

#include "ladel_global.h"
#include "ladel_types.h"

/**
 * Computes @f$y = Mx@f$ or @f$y += Mx@f$ (for @a reset==TRUE of @a FALSE respectively).
 * 
 * @param M     Matrix
 * @param x     Vector
 * @param y     Resulting matrix vector product
 * @param reset If @a TRUE, @a y is first set to zero before adding @f$Mx@f$
 */
void ladel_matvec(  const ladel_sparse_matrix   *M, 
                    const ladel_double          *x, 
                    ladel_double                *y, 
                    ladel_int                   reset);

/**
 * Computes @f$y = M^Tx@f$ or @f$y += M^Tx@f$ (for @a reset==TRUE of @a FALSE respectively).
 * 
 * @param M     Matrix
 * @param x     Vector
 * @param y     Resulting matrix vector product
 * @param reset If @a TRUE, @a y is first set to zero before adding @f$M^Tx@f$
 */
void ladel_tpose_matvec(const ladel_sparse_matrix   *M, 
                        const ladel_double          *x, 
                        ladel_double                *y, 
                        ladel_int                   reset);

/**
 * Computes (for a symmetric matrix M) @f$y = Mx@f$ or @f$y += Mx@f$ (for @a reset==TRUE of @a FALSE respectively).
 * 
 * @param M     Symmetric Matrix (@a M->symmetry==UPPER or @a LOWER)
 * @param x     Vector
 * @param y     Resulting matrix vector product
 * @param reset If @a TRUE, @a y is first set to zero before adding @f$Mx@f$
 */
void ladel_symmetric_matvec(const ladel_sparse_matrix   *M, 
                            const ladel_double          *x, 
                            ladel_double                *y,
                            ladel_int                   reset);

#endif /* LADEL_MATVEC_H */

back to top

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