test for global function axpy() (operation)
(self)
| 101 | assert str(unit_basis_vector(3, 1)) == "(0,1,0)" |
| 102 | |
| 103 | def test_axpy(self) -> None: |
| 104 | """ |
| 105 | test for global function axpy() (operation) |
| 106 | """ |
| 107 | x = Vector([1, 2, 3]) |
| 108 | y = Vector([1, 0, 1]) |
| 109 | assert str(axpy(2, x, y)) == "(3,4,7)" |
| 110 | |
| 111 | def test_copy(self) -> None: |
| 112 | """ |