Skip to content

Commit d9b72e9

Browse files
authored
make bindings consistent with sparsediffengine folder refactor (#11)
* reflect sparsediffengine refactor in bindings' * update includes to reflect sparsediffengine structure * bump version to 0.1.6 and update SparseDiffEngine submodule
1 parent a3b4668 commit d9b72e9

31 files changed

Lines changed: 33 additions & 31 deletions

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ python3_add_library(_sparsediffengine MODULE
2020

2121
target_include_directories(_sparsediffengine PRIVATE
2222
${CMAKE_CURRENT_SOURCE_DIR}/SparseDiffEngine/include
23+
${CMAKE_CURRENT_SOURCE_DIR}/SparseDiffEngine/include/atoms
24+
${CMAKE_CURRENT_SOURCE_DIR}/SparseDiffEngine/include/utils
25+
${CMAKE_CURRENT_SOURCE_DIR}/SparseDiffEngine/include/old-code
2326
${CMAKE_CURRENT_SOURCE_DIR}/SparseDiffEngine/src
2427
${CMAKE_CURRENT_SOURCE_DIR}/sparsediffpy/_bindings
2528
)

SparseDiffEngine

Submodule SparseDiffEngine updated 168 files

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "sparsediffpy"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = "Python bindings for SparseDiffEngine automatic differentiation"
99
requires-python = ">=3.11"
1010
dependencies = ["numpy >= 2.0.0"]

sparsediffpy/_bindings/atoms/asinh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define ATOM_ASINH_H
33

44
#include "common.h"
5-
#include "elementwise_univariate.h"
5+
#include "elementwise_full_dom.h"
66

77
static PyObject *py_make_asinh(PyObject *self, PyObject *args)
88
{

sparsediffpy/_bindings/atoms/atanh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define ATOM_ATANH_H
33

44
#include "common.h"
5-
#include "elementwise_univariate.h"
5+
#include "elementwise_restricted_dom.h"
66

77
static PyObject *py_make_atanh(PyObject *self, PyObject *args)
88
{

sparsediffpy/_bindings/atoms/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#include <numpy/arrayobject.h>
77

88
#include "affine.h"
9-
#include "elementwise_univariate.h"
9+
#include "elementwise_full_dom.h"
10+
#include "elementwise_restricted_dom.h"
1011
#include "expr.h"
1112

1213
#define EXPR_CAPSULE_NAME "DNLP_EXPR"

sparsediffpy/_bindings/atoms/const_scalar_mult.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ATOM_CONST_SCALAR_MULT_H
22
#define ATOM_CONST_SCALAR_MULT_H
33

4-
#include "bivariate.h"
4+
#include "bivariate_full_dom.h"
55
#include "common.h"
66

77
/* Constant scalar multiplication: a * f(x) where a is a constant double */

sparsediffpy/_bindings/atoms/const_vector_mult.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ATOM_CONST_VECTOR_MULT_H
22
#define ATOM_CONST_VECTOR_MULT_H
33

4-
#include "bivariate.h"
4+
#include "bivariate_full_dom.h"
55
#include "common.h"
66

77
/* Constant vector elementwise multiplication: a ∘ f(x) where a is a constant vector

sparsediffpy/_bindings/atoms/cos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define ATOM_COS_H
33

44
#include "common.h"
5-
#include "elementwise_univariate.h"
5+
#include "elementwise_full_dom.h"
66

77
static PyObject *py_make_cos(PyObject *self, PyObject *args)
88
{

sparsediffpy/_bindings/atoms/dense_matmul.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ATOM_DENSE_MATMUL_H
22
#define ATOM_DENSE_MATMUL_H
33

4-
#include "bivariate.h"
4+
#include "bivariate_full_dom.h"
55
#include "common.h"
66

77
/* Dense left matrix multiplication: A @ f(x) where A is a dense matrix.

0 commit comments

Comments
 (0)