{"id":15037762,"url":"https://github.com/alexandertar/laswift","last_synced_at":"2025-04-24T00:23:29.534Z","repository":{"id":48807372,"uuid":"82977038","full_name":"AlexanderTar/LASwift","owner":"AlexanderTar","description":"Linear Algebra library for Swift language","archived":false,"fork":false,"pushed_at":"2023-01-09T17:52:08.000Z","size":719,"stargazers_count":139,"open_issues_count":3,"forks_count":35,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-25T05:03:23.954Z","etag":null,"topics":["library","linear-algebra","swift","swift-3"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexanderTar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-23T22:19:08.000Z","updated_at":"2025-03-21T16:11:06.000Z","dependencies_parsed_at":"2023-02-08T13:16:25.317Z","dependency_job_id":null,"html_url":"https://github.com/AlexanderTar/LASwift","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderTar%2FLASwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderTar%2FLASwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderTar%2FLASwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexanderTar%2FLASwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexanderTar","download_url":"https://codeload.github.com/AlexanderTar/LASwift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250536422,"owners_count":21446731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","linear-algebra","swift","swift-3"],"created_at":"2024-09-24T20:35:35.155Z","updated_at":"2025-04-24T00:23:29.511Z","avatar_url":"https://github.com/AlexanderTar.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LASwift\n\n[![Build](https://github.com/AlexanderTar/LASwift/actions/workflows/build_test.yml/badge.svg?branch=master)](https://github.com/AlexanderTar/LASwift/actions/workflows/build_test.yml)\n[![codecov](https://codecov.io/gh/AlexanderTar/LASwift/branch/master/graph/badge.svg)](https://codecov.io/gh/AlexanderTar/LASwift)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Documentation](https://img.shields.io/badge/LASwift-documentation-blue.svg)](https://alexandertar.github.io/LASwift/index.html)\n[![License](https://img.shields.io/cocoapods/l/LASwift.svg?style=flat)](https://raw.githubusercontent.com/AlexanderTar/LASwift/master/LICENSE)\n[![Version](https://img.shields.io/cocoapods/v/LASwift.svg?style=flat)](http://cocoapods.org/pods/LASwift)\n[![Platform](https://img.shields.io/cocoapods/p/LASwift.svg?style=flat)](http://cocoapods.org/pods/LASwift)\n\nLASwift provides most of linear algebra operations on vectors and matrices\nrequired to implement machine learning algorithms. Library syntax is inspired by\nMatlab matrix manipulation and Haskell linear algebra library 'hmatrix'. LASwift is\nusing high-performant calculations provided by LAPACK, BLAS and vDSP through Apple\nAccelerate framework.\n\n## Currently supported\n\nFollowing operations are fully supported for both vectors and matrices:\n\n- Arithmetic operations (addition, substraction, multiplication, division, absolute value)\n- Exponential functions (raise to power, exponent, logarithms)\n- Trigonometric functions (sine, cosine, tangent)\n- Statistics functions (max, min, mean value, standard deviation)\n\nLinear algebra operations on matrices:\n\n- Inversion\n- Transposition\n- Matrix power (integer values)\n- Eigenvectors and eigenvalues\n- Singular value decomposition\n\nFollowing matrix manipulation operations are supported:\n\n- Concatenation\n- Slicing\n\n## Requirements\n\n- iOS 12.0+ / Mac OS X 10.13+ / tvOS 12.0+ / watchOS 2.0+\n- Xcode 12.0+\n- Swift 5.0+\n\n## Benchmarks\n\nRefer to [linalg-benchmarks](https://github.com/Alexander-Ignatyev/linalg-benchmarks) project\nregarding basic benchmarking of latest version of LASwift against most popular linear\nalgebra libraries (Haskell hmatrix, Python NumPy, Octave, Go gonum-matrix).\n\n## Installation\n\n#### CocoaPods\n\nInstall CocoaPods if not already available:\n\n``` bash\n$ [sudo] gem install cocoapods\n$ pod setup\n```\nGo to the directory of your Xcode project, and Create and Edit your *Podfile* and add _LASwift_:\n\n``` bash\n$ cd /path/to/MyProject\n$ touch Podfile\n$ edit Podfile\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\n\nuse_frameworks!\npod 'LASwift', '~\u003e 0.3.2'\n```\n\nInstall into your project:\n\n``` bash\n$ pod install\n```\n\nOpen your project in Xcode from the .xcworkspace file (not the usual project file):\n\n``` bash\n$ open MyProject.xcworkspace\n```\n\nYou can now `import LASwift` framework into your files.\n\n#### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate `LASwift` into your Xcode project using Carthage, specify it in your `Cartfile` file:\n\n```ogdl\ngithub \"alexandertar/LASwift\" \u003e= 0.3.2\n```\n\n#### Swift Package Manager\nYou can use [The Swift Package Manager](https://swift.org/package-manager) to install `LASwift` by adding the proper description to your `Package.swift` file:\n```swift\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    targets: [],\n    dependencies: [\n        .Package(url: \"https://github.com/alexandertar/LASwift\", versions: \"0.3.2\" ..\u003c Version.max)\n    ]\n)\n```\n\nNote that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more information checkout its [GitHub Page](https://github.com/apple/swift-package-manager).\n\n## Contribution\n\nCurrently implemented functionality should be sufficient enough to implement machine learning\nalgorithms (as this was an initial purpose). However, if you find something missing or wish to add\nextra features, feel free to submit pull-requests or create issues with proposals.\n\n## Author\n\nAlexander Taraymovich, taraymovich@me.com\n\n## License\n\nLASwift is available under the BSD-3-Clause license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandertar%2Flaswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandertar%2Flaswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandertar%2Flaswift/lists"}