scs 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82ca3e4eb97e0a3d55e0755babc5ba5cca8d0eb0c171a0733c38916726697bd5
4
- data.tar.gz: f91bdb81c22052f788c615dd9bc598941741f1fdba59d741bcaa4b6633c1eae5
3
+ metadata.gz: 94397cc7650c5248dd5f8c7ac78335796fb75437a4508cb11531787b727c8a38
4
+ data.tar.gz: e7fda9f91ae911f2d67661bc0af926ec5ba8258ce81ea1c7398d9dc8916ec3f6
5
5
  SHA512:
6
- metadata.gz: 835cbd3b7a6fcd085663ef49c54d10c2bfecee3c2435b2b873cfeab01efa90dba7f7a0f59f4487dad15135570399c75c002864dadc4031dda83af1de0abb509a
7
- data.tar.gz: a9401bac5dd33e24e140061d66cc52fe02c2982bc63b96ebf44f5c13affc8e6f8477bf4907043902278b90e673aca848e77bcad8fc90f2f94550729b25a5de81
6
+ metadata.gz: 2c4a2d5c9bf85749a27d50da430f73b505e0690d4a8af7ae05734937bb0e8cc7e5bbe1c1a92f998f2672db4d2a8ce242c449f0ac8b634b99d709549670b5b02d
7
+ data.tar.gz: 032e6746c4ba7e8120dbbe7c635b9ae5ba5400a6e2f627e87ddbafe26ddcd68a8d5d06d0e53193228b7f5612c79edae9873c5d405a216e91f2ebb25f29ce921d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.3 (2024-09-08)
2
+
3
+ - Updated SCS to 3.2.7
4
+
1
5
  ## 0.4.2 (2024-07-10)
2
6
 
3
7
  - Updated SCS to 3.2.6
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Check out [Opt](https://github.com/ankane/opt) for a high-level interface
6
6
 
7
- [![Build Status](https://github.com/ankane/scs-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/scs-ruby/actions)
7
+ [![Build Status](https://github.com/ankane/scs-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/scs-ruby/actions)
8
8
 
9
9
  ## Installation
10
10
 
data/lib/scs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SCS
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -10,7 +10,7 @@ authors:
10
10
  - family-names: "Boyd"
11
11
  given-names: "Stephen"
12
12
  title: "SCS: Spltting Conic Solver"
13
- version: 3.2.6
13
+ version: 3.2.7
14
14
  date-released: 2023
15
15
  url: "https://github.com/cvxgrp/scs"
16
16
 
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.5)
6
6
  project(
7
7
  scs
8
8
  LANGUAGES C
9
- VERSION 3.2.6)
9
+ VERSION 3.2.7)
10
10
 
11
11
  # Defines the CMAKE_INSTALL_LIBDIR, CMAKE_INSTALL_BINDIR and many other useful
12
12
  # macros. See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
data/vendor/scs/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
  SCS (`splitting conic solver`) is a numerical optimization package for solving
11
- large-scale convex cone problems. The current version is `3.2.6`.
11
+ large-scale convex cone problems. The current version is `3.2.7`.
12
12
 
13
13
  The full documentation is available [here](https://www.cvxgrp.org/scs/).
14
14
 
@@ -14,7 +14,7 @@ extern "C" {
14
14
 
15
15
  /* SCS VERSION NUMBER ---------------------------------------------- */
16
16
  /* string literals automatically null-terminated */
17
- #define SCS_VERSION ("3.2.6")
17
+ #define SCS_VERSION ("3.2.7")
18
18
 
19
19
  /* verbosity level */
20
20
  #ifndef VERBOSITY
@@ -153,9 +153,14 @@ scs_float SCS(norm_inf)(const scs_float *a, scs_int len) {
153
153
  */
154
154
 
155
155
  scs_float SCS(norm_inf)(const scs_float *a, scs_int len) {
156
+ /* Follow the semantics of BLASI(lange) for zero-size array. */
157
+ scs_int idx;
156
158
  blas_int bone = 1;
157
159
  blas_int blen = (blas_int)len;
158
- scs_int idx = (scs_int)BLASI(amax)(&blen, a, &bone);
160
+ if (len <= 0) {
161
+ return 0.0;
162
+ }
163
+ idx = (scs_int)BLASI(amax)(&blen, a, &bone);
159
164
  /* Returned idx is 1-based. */
160
165
  return ABS(a[idx - 1]);
161
166
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.5.11
142
+ rubygems_version: 3.5.16
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: SCS - the splitting conic solver - for Ruby