Skip to content

Commit

Permalink
Update package version, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderTar committed Sep 27, 2022
1 parent 34bba6e commit c7adfe7
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 42 deletions.
8 changes: 5 additions & 3 deletions Example/Pods/Local Podspecs/LASwift.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 24 additions & 21 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LASwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'LASwift'
s.version = '0.2.5'
s.version = '0.2.6'
s.summary = 'Linear algebra library for Swift language'

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let package = Package(
.library(name: "LASwift", targets: ["LASwift"])
],
dependencies: [
.package(url: "https://github.com/Quick/Quick.git", from: "2.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "8.0.1")
.package(url: "https://github.com/Quick/Quick.git", from: "3.0.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "9.0.0")
],
targets: [
.target(
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

use_frameworks!
pod 'LASwift', '~> 0.2.5'
pod 'LASwift', '~> 0.2.6'
```

Install into your project:
Expand Down Expand Up @@ -99,7 +99,7 @@ $ brew install carthage
To integrate `LASwift` into your Xcode project using Carthage, specify it in your `Cartfile` file:

```ogdl
github "alexandertar/LASwift" >= 0.2.5
github "alexandertar/LASwift" >= 0.2.6
```

#### Swift Package Manager
Expand All @@ -111,7 +111,7 @@ let package = Package(
name: "YOUR_PROJECT_NAME",
targets: [],
dependencies: [
.Package(url: "https://github.com/alexandertar/LASwift", versions: "0.2.5" ..< Version.max)
.Package(url: "https://github.com/alexandertar/LASwift", versions: "0.2.6" ..< Version.max)
]
)
```
Expand Down
4 changes: 2 additions & 2 deletions Sources/Matrix.swift
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ extension Matrix {
let dst = Matrix(row.count, col.count)

flat.withUnsafeBufferPointer { srcBuf in
let srcPtr = srcBuf.baseAddress! + row.lowerBound * rows + col.lowerBound
let srcPtr = srcBuf.baseAddress! + row.lowerBound * cols + col.lowerBound
vDSP_mmovD(srcPtr, &dst.flat,
vDSP_Length(col.count), vDSP_Length(row.count),
vDSP_Length(cols), vDSP_Length(col.count))
Expand All @@ -414,7 +414,7 @@ extension Matrix {
precondition(newValue.cols == col.count && newValue.rows == row.count, "Matrix dimensions must agree")

flat.withUnsafeMutableBufferPointer { dstBuf in
let dstPtr = dstBuf.baseAddress! + row.lowerBound * rows + col.lowerBound
let dstPtr = dstBuf.baseAddress! + row.lowerBound * cols + col.lowerBound
vDSP_mmovD(newValue.flat, dstPtr,
vDSP_Length(col.count), vDSP_Length(row.count),
vDSP_Length(newValue.cols), vDSP_Length(cols))
Expand Down
7 changes: 1 addition & 6 deletions Sources/MatrixAlgebra.swift
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,7 @@ public func gsvd(_ A: Matrix, _ B: Matrix) -> (U: Matrix, V: Matrix, Q: Matrix,

dggsvd_(&jobu, &jobv, &jobq, &M, &N, &P, &k, &l, &_A.flat, &LDA, &_B.flat, &LDB, &alpha, &beta, &U.flat, &LDU, &V.flat, &LDV, &Q.flat, &LDQ, &work, &iWork, &error)

//precondition(error == 0, "Failed to compute SVD")
if error != 0 {
return (toRows(U, .Column), toRows(V, .Column), toRows(Q, .Column), Vector(alpha[Int(k)...Int(k+l)-1]), Vector(beta[Int(k)...Int(k+l)-1]), false)
} else {
return (toRows(U, .Column), toRows(V, .Column), toRows(Q, .Column), Vector(alpha[Int(k)...Int(k+l)-1]), Vector(beta[Int(k)...Int(k+l)-1]), true)
}
return (toRows(U, .Column), toRows(V, .Column), toRows(Q, .Column), Vector(alpha[Int(k)...Int(k+l)-1]), Vector(beta[Int(k)...Int(k+l)-1]), error == 0)
}

/// Compute the Cholesky factorization of a real symmetric positive definite matrix.
Expand Down

0 comments on commit c7adfe7

Please sign in to comment.