Skip to content

Commit

Permalink
restructure repo and change tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoney committed Jun 27, 2024
1 parent 7af2b67 commit 8795bb6
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Include the .env file and export the variables
ifneq (,$(wildcard .env))
include .env
export $(shell sed 's/=.*//' .env)
include .env
export $(shell sed 's/=.*//' .env)
endif

test:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Go-Blis
# Go-Lapack

Linear algebra package in golang using native bindings to various architecture specific linear algebra libraries.

The difference between this repository [gonum](https://github.com/gonum/gonum) is gonum is a golang native implementation while this repo uses native bindings to the blas or blis.

## go-blis

Go-Blis is a Go wrapper for the [BLIS](https://github.com/flame/blis) library. BLIS is a portable software framework for instantiating high-performance BLAS-like dense linear algebra libraries. The framework was designed to isolate essential kernels of computation that, when optimized, immediately enable optimized implementations of most of its commonly used and computationally intensive operations.

Expand Down
19 changes: 19 additions & 0 deletions blis/level3/level3.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package level3

// #cgo LDFLAGS: -lblis
// #include "blis.h"
import "C"
import (
"github.com/jmoney/go-blas/mat"
)

// Bli_dgemm maps to bli_dgemm in BLIS.
//
// Computes the operation: C := (alpha * A') * (beta * B') + C
func Bli_dgemm(transa mat.TransT, transb mat.TransT, alpha *float64, a mat.General, beta *float64, b mat.General, c mat.General) {
C.bli_dgemm(C.trans_t(transa), C.trans_t(transb),
C.longlong(a.Rows), C.longlong(b.Cols), C.longlong(a.Cols),
(*C.double)(alpha), (*C.double)(&a.Data[0]), C.longlong(a.RowsStride), C.longlong(a.ColsStride),
(*C.double)(&b.Data[0]), C.longlong(b.RowsStride), C.longlong(b.ColsStride), (*C.double)(beta),
(*C.double)(&c.Data[0]), C.longlong(c.RowsStride), C.longlong(c.ColsStride))
}
File renamed without changes.
27 changes: 0 additions & 27 deletions level3/level3.go

This file was deleted.

0 comments on commit 8795bb6

Please sign in to comment.