Giter VIP home page Giter VIP logo

sparse-utils's Introduction

SparseUtils - Sparse matrix utilities for numerical discretization applications

SparseUtils is a header-only library that contains sparse matrix data structures and sparse direct/iterator solvers.

Dependencies

Installation

CMake

CMake is preferred to install SparseUtils. For basic installation, use the following command:

mkdir build && cd build && cmake .. && make install

This installs SparseUtils (headers and CMake files) into ${HOME}/installs/sparse-utils.

In-tree

Not yet supported.

Raw Makefile

Not yet supported.

Use

Using SparseUtils is simple with CMake. For the application project, add

find_package(SparseUtils REQUIRED PATHS <path-to-sparse-utils-installation>)

to CMakeLists.txt, and use

target_link_libraries(<app-target> SparseUtils::SparseUtils)

in the CMakeLists.txt for the application executables. See examples/CMakeLists.txt for example.

Test

To build and execute unit tests, using the following command:

mkdir build && cd build && cmake .. -DSPARSE_UTILS_BUILD_TESTS=ON && make -j && ctest .

CMake variables

Below is the complete table of CMake variables that SparseUtils uses to control the compilation.

Recall that to give the variable VARIABLE, its value VAL can be set using the following syntax in the command line:

cmake ... -DVARIABLE=VAL ...
Variable Description Default Choices
SPARSE_UTILS_METIS_DIR path to metis installation ${HOME}/installs/metis a path
CMAKE_INSTALL_PREFIX the path to install SparseUtils to ${HOME}/installs/sparse-utils a path
SPARSE_UTILS_BUILD_TESTS build unit tests or not OFF ON, OFF
CMAKE_BUILD_TYPE build type N/A Release, Debug

sparse-utils's People

Contributors

aaronyicongfu avatar gjkennedy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.