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

Revision 60ff008e1fbf4261603136a3cdac6ca91062ae3c authored by Ben Hermans on 27 May 2020, 13:33:11 UTC, committed by Ben Hermans on 27 May 2020, 13:33:11 UTC
Add test with factorization after mat*diag*mat'
1 parent 94bc0d6
  • Files
  • Changes
  • 8714d02
  • /
  • include
  • /
  • ladel_global.h
Raw File Download

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.

  • revision
  • directory
  • content
revision badge
swh:1:rev:60ff008e1fbf4261603136a3cdac6ca91062ae3c
directory badge
swh:1:dir:244d10620a636223345c002be9e6463c04f4bc12
content badge
swh:1:cnt:be8d18b7ca396aa288be662ef6bbdc59d0f812bd

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.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
ladel_global.h
#ifndef LADEL_GLOBAL_H
#define LADEL_GLOBAL_H

#include "ladel_types.h"
#include "ladel_constants.h"
#include "ladel_copy.h"
#include <stdlib.h>

#define LADEL_MAX(a, b) ((a) > (b) ? (a) : (b))
#define LADEL_MIN(a, b) ((a) > (b) ? (b) : (a))
#define LADEL_ABS(a) ((a) < 0 ? -(a) : (a))

#define LADEL_FOR(index, M, col) for(index = (M)->p[(col)]; index < (((M)->nz) ? (M)->p[(col)] + (M)->nz[(col)] : (M)->p[(col)+1]); index++)

void *ladel_malloc(ladel_int n, size_t size);

void *ladel_calloc(ladel_int n, size_t size);

void *ladel_free(void* p);

void *ladel_realloc(void *p, ladel_int n, size_t size, ladel_int *status);

#ifdef MATLAB
#include "mex.h"
#define ladel_print mexPrintf
#else
#define ladel_print printf
#endif

ladel_sparse_matrix *ladel_sparse_free(ladel_sparse_matrix *M);

ladel_sparse_matrix *ladel_sparse_alloc(ladel_int nrow, ladel_int ncol, 
                                                ladel_int nzmax, ladel_int symmetry,
                                                ladel_int values, ladel_int nz);

ladel_int ladel_sparse_realloc(ladel_sparse_matrix* M, ladel_int nzmax);

ladel_symbolics *ladel_symbolics_free(ladel_symbolics *sym);

ladel_symbolics *ladel_symbolics_alloc(ladel_int ncol);

ladel_factor *ladel_factor_free(ladel_factor *LD);

ladel_factor *ladel_factor_allocate(ladel_symbolics *sym);

ladel_set *ladel_set_free(ladel_set *set);

ladel_set *ladel_set_allocate(ladel_int ncol);

void ladel_set_set(ladel_set *set, ladel_int *set_vals, ladel_int size_set, ladel_int max_size_set);

ladel_work *ladel_workspace_free(ladel_work* work);

ladel_work *ladel_workspace_allocate(ladel_int ncol);


#endif /*LADEL_GLOBAL_H*/
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, 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— Content policy— Contact— JavaScript license information— Web API