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 a46027cf9b86c78c1607bffa68a601b611d58a02 authored by Ben Hermans on 04 May 2020, 08:51:10 UTC, committed by Ben Hermans on 04 May 2020, 08:51:10 UTC
Fix bug for set union where first set is empty
1 parent 4b87877
  • Files
  • Changes
  • 6643ab9
  • /
  • CMakeLists.txt
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.

  • revision
  • directory
  • content
revision badge
swh:1:rev:a46027cf9b86c78c1607bffa68a601b611d58a02
directory badge Iframe embedding
swh:1:dir:6643ab93ceee53bdc74960858bfcf837b1926bdc
content badge Iframe embedding
swh:1:cnt:2479c0ea088520e1ae186f79a8e2e74e520b08f4
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.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
CMakeLists.txt
cmake_minimum_required(VERSION 3.0.2)
project(LADEL VERSION 0.1.0)

############################################################
################## Configure directories ###################
############################################################
SET(LIB_DIR ${CMAKE_CURRENT_BINARY_DIR}/../lib)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIB_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

############################################################
################### Compilation options ####################
############################################################
option (UNITTESTS "Perform unit testing" ON)
option (SIMPLE_COL_COUNTS "Simplify symbolic analysis (worse asymptotic time complexity)" OFF)

if (SIMPLE_COL_COUNTS)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSIMPLE_COL_COUNTS")
endif (SIMPLE_COL_COUNTS) 

option (LONG "Use long integers for indexing" ON)
if (LONG)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDLONG")
endif (LONG)

if (FLOAT)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDFLOAT")
endif (FLOAT)

if (UNIX)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-conversion -Wno-sign-conversion")
endif (UNIX)

option (AMD "Use approximate minimum degree ordering" ON)
if (AMD)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDAMD")
endif (AMD)
############################################################
#################### Build the library #####################
############################################################
SET(SRC
        src/global.c
        src/scale.c
        src/matvec.c
        src/upper_diag.c
        src/etree.c
        src/postorder.c
        src/transpose.c
        src/col_counts.c
        src/ldl_symbolic.c
        src/permutation.c
        src/copy.c
        src/ldl_numeric.c
        src/pattern.c
        src/ladel.c
        src/rank1_mod.c
        src/row_mod.c
        src/debug_print.c)


if (AMD)
    SET(AMD_SRC
            amd/Source/amd_1.c    
            amd/Source/amd_control.c   
            amd/Source/amd_global.c  
            amd/Source/amd_postorder.c   
            amd/Source/amd_valid.c
            amd/Source/amd_2.c    
            amd/Source/amd_defaults.c  
            amd/Source/amd_info.c    
            amd/Source/amd_post_tree.c
            amd/Source/amd_aat.c  
            amd/Source/amd_dump.c      
            amd/Source/amd_order.c   
            amd/Source/amd_preprocess.c
            amd/Source/SuiteSparse_config.c)
    SET(SRC ${SRC} ${AMD_SRC})
endif (AMD)

add_library(ladel ${SRC})

if (AMD)
    target_include_directories(ladel
        PUBLIC  ${CMAKE_CURRENT_LIST_DIR}/include 
                ${CMAKE_CURRENT_LIST_DIR}/amd/Include)
else ()
    target_include_directories(ladel
        PUBLIC  ${CMAKE_CURRENT_LIST_DIR}/include)

endif (AMD)
############################################################
#################### Build executables #####################
############################################################
if (UNITTESTS)
    add_subdirectory(test)
    include(CTest)
    enable_testing()
    add_test(NAME ladel_tester COMMAND $<TARGET_FILE:run_all_tests>)
endif()
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 ...

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