Added matrix transpose
This commit is contained in:
parent
41a70d45b8
commit
acc3ccfe1f
2 changed files with 24 additions and 0 deletions
|
|
@ -79,6 +79,15 @@ public class MatrixMathTest {
|
|||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void matrixTranspose(){
|
||||
assertArrayEquals(
|
||||
new double[][]{{1,3},{2,5},{0,9}},
|
||||
MatrixMath.transpose(
|
||||
new double[][]{{1,2,0},{3,5,9}})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue