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 243580e5ef5b774b77bb5792ae8ed3a352b04323 authored by Ben Hermans on 28 February 2020, 16:03:52 UTC, committed by Ben Hermans on 28 February 2020, 16:03:52 UTC
Capture all workspace necessary in ladel_work struct
1 parent 5a15ff2
  • Files
  • Changes
  • 96a732a
  • /
  • 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:243580e5ef5b774b77bb5792ae8ed3a352b04323
directory badge Iframe embedding
swh:1:dir:96a732afd4e9b9a16ccf57464a91708d97f3433e
content badge Iframe embedding
swh:1:cnt:07c31d14359d25747f646877d5ce4754a25558d0
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 -Wconversion")
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/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/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