Commits

Fazlul Shahriar  committed 904c6fd

remove Makefile and run go fmt

  • Participants
  • Parent commits 5d63e88

Comments (0)

Files changed (3)

File cblas/Makefile

-# Copyright 2011 Fazlul Shahriar. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
-
-include $(GOROOT)/src/Make.inc
-
-TARG=cblas
-CGOFILES=\
-	cblas.go\
-	level1.go\
-	level2.go\
-
-include $(GOROOT)/src/Make.pkg

File cblas/level1.go

 	return complex64(dot)
 }
 
-
 // Cdotc returns the dot product of conjugate of x with y.
 func Cdotc(x, y *Complex64Vector) complex64 {
 	var dot C.complexfloat
 	return complex64(dot)
 }
 
-
 // Zdotu returns the dot product x'*y.
 func Zdotu(x, y *Complex128Vector) complex128 {
 	var dot C.complexdouble
 	return complex128(dot)
 }
 
-
 // Zdotc returns the dot product of conjugate of x with y.
 func Zdotc(x, y *Complex128Vector) complex128 {
 	var dot C.complexdouble

File cblas/level2.go

 
 // Sgemv updates y: y <- alpha*A*x + beta*y.
 func Sgemv(transA uint32, alpha float32, A *Float32Matrix, x *Float32Vector,
-beta float32, y *Float32Vector) {
+	beta float32, y *Float32Vector) {
 	C.cblas_sgemv(rowMajor, transA, C.int(A.Rows), C.int(A.Cols), C.float(alpha),
 		(*C.float)(unsafe.Pointer(&A.Data[0])), C.int(A.Lda),
 		(*C.float)(unsafe.Pointer(&x.Data[0])), C.int(x.Stride), C.float(beta),
 
 // Dgemv updates y: y <- alpha*A*x + beta*y.
 func Dgemv(transA uint32, alpha float64, A *Float64Matrix, x *Float64Vector,
-beta float64, y *Float64Vector) {
+	beta float64, y *Float64Vector) {
 	C.cblas_dgemv(rowMajor, transA, C.int(A.Rows), C.int(A.Cols), C.double(alpha),
 		(*C.double)(unsafe.Pointer(&A.Data[0])), C.int(A.Lda),
 		(*C.double)(unsafe.Pointer(&x.Data[0])), C.int(x.Stride), C.double(beta),
 
 // Cgemv updates y: y <- alpha*A*x + beta*y.
 func Cgemv(transA uint32, alpha complex64, A *Complex64Matrix, x *Complex64Vector,
-beta complex64, y *Complex64Vector) {
+	beta complex64, y *Complex64Vector) {
 	C.cblas_cgemv(rowMajor, transA, C.int(A.Rows), C.int(A.Cols), unsafe.Pointer(&alpha),
 		unsafe.Pointer(&A.Data[0]), C.int(A.Lda),
 		unsafe.Pointer(&x.Data[0]), C.int(x.Stride), unsafe.Pointer(&beta),
 
 // Zgemv updates y: y <- alpha*A*x + beta*y.
 func Zgemv(transA uint32, alpha complex128, A *Complex128Matrix,
-x *Complex128Vector, beta complex128, y *Complex128Vector) {
+	x *Complex128Vector, beta complex128, y *Complex128Vector) {
 	C.cblas_zgemv(rowMajor, transA, C.int(A.Rows), C.int(A.Cols), unsafe.Pointer(&alpha),
 		unsafe.Pointer(&A.Data[0]), C.int(A.Lda),
 		unsafe.Pointer(&x.Data[0]), C.int(x.Stride), unsafe.Pointer(&beta),