assertEquals(3, PermutationMatrix.create(1,2,0).elementPowSum(2), 0.0001);
assertEquals(10, DiagonalMatrix.create(1,0,2,7).elementAbsPowSum(1), 0.0001);
assertEquals(14, DiagonalMatrix.create(1,2,0,3).elementPowSum(2), 0.0001);
Matrix i = Matrix.createIdentity(3);
Matrix j = Matrix.create(2,2);
assertEquals(3, BlockDiagonalMatrix.create(i,j).elementAbsPowSum(1), 0.0001);
assertEquals(3, BlockDiagonalMatrix.create(i,j).elementPowSum(4), 0.0001);
assertEquals(6, ColumnMatrix.wrap(Vector.of(1,2,3)).elementAbsPowSum(1), 0.0001);
assertEquals(126, ColumnMatrix.wrap(Vector.of(1,5,10)).elementPowSum(2), 0.0001);