Skip to content

Commit

Permalink
Update scalafmt-core to 3.8.2 (#161)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.8.2

* Reformat with scalafmt 3.8.2

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs
  • Loading branch information
scala-steward authored Jun 18, 2024
1 parent 7a46309 commit 7607365
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.8.2
11d6bbba272fb2586e30b110b404efe5edc7c654
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Test upgrades: $ scripts/scalafmt --test 2> diff.txt
version = 3.8.1
version = 3.8.2
runner.dialect = scala213source3
preset = default

Expand Down
12 changes: 8 additions & 4 deletions sblas/src/test/scala/org/ekrich/blas/apitest/BlasApiTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,31 @@ class BlasApiTest {

val A = Array(
0.11f, 0.12f, 0.13f,
0.21f, 0.22f, 0.23f)
0.21f, 0.22f, 0.23f
)

val ldb = 2

val B = Array(
1011f, 1012f,
1021f, 1022f,
1031f, 1032f)
1031f, 1032f
)

val ldc = 2

val C = Array(
0.00f, 0.00f,
0.00f, 0.00f)
0.00f, 0.00f
)

/* Compute C = A B */

cblas_sgemm(
CblasRowMajor,
CblasNoTrans, CblasNoTrans, 2, 2, 3,
1.0f, A.at(0), lda, B.at(0), ldb, 0.0f, C.at(0), ldc)
1.0f, A.at(0), lda, B.at(0), ldb, 0.0f, C.at(0), ldc
)

printf("[ %g, %g\n", C(0), C(1))
printf(" %g, %g ]\n", C(2), C(3))
Expand Down

0 comments on commit 7607365

Please sign in to comment.