Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pharo-ai/lapack
A minimal FFI binding for LAPACK (http://www.netlib.org/lapack/) in Pharo
https://github.com/pharo-ai/lapack
lapack pharo smalltalk
Last synced: about 2 months ago
JSON representation
A minimal FFI binding for LAPACK (http://www.netlib.org/lapack/) in Pharo
- Host: GitHub
- URL: https://github.com/pharo-ai/lapack
- Owner: pharo-ai
- License: mit
- Created: 2021-08-12T18:19:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T13:56:54.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T00:10:37.712Z (almost 2 years ago)
- Topics: lapack, pharo, smalltalk
- Language: Smalltalk
- Homepage:
- Size: 58.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pharo LAPACK
[![Build status](https://github.com/pharo-ai/lapack/workflows/CI/badge.svg)](https://github.com/pharo-ai/lapack/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/pharo-ai/lapack/badge.svg?branch=master)](https://coveralls.io/github/pharo-ai/lapack?branch=master)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/pharo-ai/lapack/master/LICENSE)A minimal FFI binding for LAPACK (http://www.netlib.org/lapack/) in Pharo.
For the documentation, please refer to the pharo-ai wiki page: https://github.com/pharo-ai/wiki/blob/master/wiki/LinearAlgebra/Lapack.md
For creating another binding to another method (or routine, because the library is written in Fortran), you only need to create a subclass of `LapackAlgorithm`. You can check `LapackDgelsd` as an example.
_Note: We only tested this for MacOS. But it should work on Windows and Linux too. A prerequisite is to have already intalled the library on your OS. For making it work on Linux and Windows, is only needed to override the methods `unixLibraryName` and `win32LibraryName` to return the path in which the library is installed on your system. Check `LapackLibrary>>#macLibraryName`_
## How to install it?
To install `Lapack`, go to the Playground (Ctrl+OW) on your [Pharo](https://pharo.org/) image and execute the following Metacello script (select it and press Do-it button or Ctrl+D):
```Smalltalk
Metacello new
baseline: 'Lapack';
repository: 'github://pharo-ai/lapack/src';
load.
```## How to depend on it?
If you want to add a dependency on `Lapack` to your project, include the following lines into your baseline method:
```Smalltalk
spec
baseline: 'Lapack'
with: [ spec repository: 'github://pharo-ai/lapack/src' ].
```If you are new to baselines and Metacello, check out the [Baselines](https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Baselines.md) tutorial on Pharo Wiki.