Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@8cdfd78
Browse files Browse the repository at this point in the history
refactor: improved const-correctness in vector implementation
  • Loading branch information
krlmlr committed Jan 6, 2025
1 parent 4d55ad4 commit 8deca16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/vendor/cigraph/src/core/vector.pmt
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ igraph_error_t FUNCTION(igraph_vector, copy)(TYPE(igraph_vector) *to,

BASE FUNCTION(igraph_vector, sum)(const TYPE(igraph_vector) *v) {
BASE res = ZERO;
BASE *p;
const BASE *p;
IGRAPH_ASSERT(v != NULL);
IGRAPH_ASSERT(v->stor_begin != NULL);
for (p = v->stor_begin; p < v->end; p++) {
Expand All @@ -1611,7 +1611,7 @@ BASE FUNCTION(igraph_vector, sum)(const TYPE(igraph_vector) *v) {

igraph_real_t FUNCTION(igraph_vector, sumsq)(const TYPE(igraph_vector) *v) {
igraph_real_t res = 0.0;
BASE *p;
const BASE *p;
IGRAPH_ASSERT(v != NULL);
IGRAPH_ASSERT(v->stor_begin != NULL);
for (p = v->stor_begin; p < v->end; p++) {
Expand Down Expand Up @@ -1640,7 +1640,7 @@ igraph_real_t FUNCTION(igraph_vector, sumsq)(const TYPE(igraph_vector) *v) {

BASE FUNCTION(igraph_vector, prod)(const TYPE(igraph_vector) *v) {
BASE res = ONE;
BASE *p;
const BASE *p;
IGRAPH_ASSERT(v != NULL);
IGRAPH_ASSERT(v->stor_begin != NULL);
for (p = v->stor_begin; p < v->end; p++) {
Expand Down Expand Up @@ -1671,7 +1671,8 @@ BASE FUNCTION(igraph_vector, prod)(const TYPE(igraph_vector) *v) {
igraph_error_t FUNCTION(igraph_vector, cumsum)(TYPE(igraph_vector) *to,
const TYPE(igraph_vector) *from) {
BASE res = ZERO;
BASE *p, *p2;
const BASE *p;
BASE *p2;

IGRAPH_ASSERT(from != NULL);
IGRAPH_ASSERT(from->stor_begin != NULL);
Expand Down
4 changes: 2 additions & 2 deletions src/vendor/igraph_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

__BEGIN_DECLS

#define IGRAPH_VERSION "0.10.15-19-gab123f04e"
#define IGRAPH_VERSION "0.10.15-20-g8cdfd787c"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 15
#define IGRAPH_VERSION_PRERELEASE "19-gab123f04e"
#define IGRAPH_VERSION_PRERELEASE "20-g8cdfd787c"

IGRAPH_EXPORT void igraph_version(const char **version_string,
int *major,
Expand Down

0 comments on commit 8deca16

Please sign in to comment.