File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ This style guide outlines the conventions and best practices for contributing to
55## General Guidelines
66
77- ** Use inline methods** : Inline methods are preferred for performance reasons.
8- - ** Use Scala's ` tap ` method** : Use ` tap ` for chaining operations on collections and arrays for readability.
98- ** Use ` while ` loops** : Prefer ` while ` loops over ` for ` loops for performance-critical sections, especially in JS and Native targets.
109- ** Use Java's SIMD ` Vector ` API** : On the JVM, leverage Java's SIMD ` Vector ` API for vectorized operations.
1110- ** Use tail recursion** : When implementing recursive methods, prefer tail recursion for performance improvements.
12- - ** Avoid side effects** : Try to minimize or eliminate side effects in methods to enhance clarity and maintainability.
1311
1412## Code Structure
1513
Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ class MatrixAdditionTest extends FunSuite:
7070 )
7171 )
7272
73- println(s " Matrix before addition: ${mat1.printMat}" )
74- println(s " subMatrix before addition: ${mat1.submatrix(0 to 1 , 0 to 1 ).printMat}" )
7573 mat1.submatrix(0 to 1 , 0 to 1 ) += 1.0
76- println(s " Matrix after addition: ${mat1.printMat}" )
7774
7875 assertMatrixEquals(
7976 mat1,
You can’t perform that action at this time.
0 commit comments