scs 0.4.2 → 0.5.0

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: f9fef6a6cc6b2f70108a7296c2e6be53bda17b0a666bc8610399837bca7f502d
4
+ data.tar.gz: e2d02576320bb39f97123837df2a4499b28302265e318c1551e7888bcc843121
5
5
  SHA512:
6
- metadata.gz: 835cbd3b7a6fcd085663ef49c54d10c2bfecee3c2435b2b873cfeab01efa90dba7f7a0f59f4487dad15135570399c75c002864dadc4031dda83af1de0abb509a
7
- data.tar.gz: a9401bac5dd33e24e140061d66cc52fe02c2982bc63b96ebf44f5c13affc8e6f8477bf4907043902278b90e673aca848e77bcad8fc90f2f94550729b25a5de81
6
+ metadata.gz: 9495f179efb18f72eee40a12ea5937c28e43bfdf9cbdc729213afccd3e6b567b5464ab5c372c25f3084e954337998d74aa8c6e0e6cab1ccfcdd9a954980dc91c
7
+ data.tar.gz: 42a0c781a3c0779838b85c66e8dbb6dddda0ecb969305008e8192b9d26ee255f008c530480dc10771b61d1b62caf1eaf5580c635aadc103e4324ff57895ae142
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.0 (2024-10-23)
2
+
3
+ - Dropped support for Ruby < 3.1
4
+
5
+ ## 0.4.3 (2024-09-08)
6
+
7
+ - Updated SCS to 3.2.7
8
+
1
9
  ## 0.4.2 (2024-07-10)
2
10
 
3
11
  - 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.5.0"
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,15 +1,29 @@
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.5.0
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
12
- dependencies: []
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fiddle
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description:
14
28
  email: andrew@ankane.org
15
29
  executables: []
@@ -132,14 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
146
  requirements:
133
147
  - - ">="
134
148
  - !ruby/object:Gem::Version
135
- version: '2.7'
149
+ version: '3.1'
136
150
  required_rubygems_version: !ruby/object:Gem::Requirement
137
151
  requirements:
138
152
  - - ">="
139
153
  - !ruby/object:Gem::Version
140
154
  version: '0'
141
155
  requirements: []
142
- rubygems_version: 3.5.11
156
+ rubygems_version: 3.5.16
143
157
  signing_key:
144
158
  specification_version: 4
145
159
  summary: SCS - the splitting conic solver - for Ruby