Skip to content

Commit dcf83c7

Browse files
committed
Add module level docstrings to api docs.
1 parent 0b713dc commit dcf83c7

5 files changed

Lines changed: 24 additions & 0 deletions

File tree

suitesparse_graphblas/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Low-level Python CFFI binding for SuiteSparse:GraphBLAS."""
2+
13
import importlib.metadata
24
import platform
35
import struct as _struct

suitesparse_graphblas/api/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
"""SuiteSparse:GraphBLAS is a full implementation of the GraphBLAS
2+
standard, which defines a set of sparse matrix operations on an
3+
extended algebra of semirings using an almost unlimited variety of
4+
operators and types. When applied to sparse adjacency matrices, these
5+
algebraic operations are equivalent to computations on graphs.
6+
GraphBLAS provides a powerful and expressive framework for creating
7+
high-performance graph algorithms based on the elegant mathematics of
8+
sparse matrix operations on a semiring.
9+
10+
This module contains the "functional API" for
11+
python-suitesparse-graphblas. This is a higher level API than the
12+
"raw" CFFI binding, but a lower level API than the algebraic
13+
functionality provided by the
14+
[python-graphblas](https://python-graphblas.readthedocs.io/en/stable/api_reference/index.html)
15+
library.
16+
"""
117
from suitesparse_graphblas.api import (
218
binaryop,
319
container,

suitesparse_graphblas/api/matrix.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Create, manipulate, and query GrB_Matrix objects."""
2+
13
import numpy as np
24

35
from suitesparse_graphblas import check_status, ffi, lib, supports_complex

suitesparse_graphblas/api/scalar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Create, manipulate, and query GxB_Scalar objects."""
2+
13
from suitesparse_graphblas import check_status, exceptions, ffi, lib, supports_complex
24

35
from .utils import _capture_c_output # noqa: F401

suitesparse_graphblas/api/vector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Create, manipulate, and query GrB_Vector objects."""
2+
13
import numpy as np
24

35
from suitesparse_graphblas import check_status, ffi, lib, supports_complex

0 commit comments

Comments
 (0)