Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
scheinerman committed Nov 19, 2023
1 parent 086fc2b commit f8eacb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ julia> rrefx(A)
or a list of arguments:
```
julia> v = HVector([1,-2,3])
HVector(1//3, -2//3, 1//1)
[1//3 : -2//3 : 1//1]
julia> w = HVector(2,-4,6)
HVector(1//3, -2//3, 1//1)
[1//3 : -2//3 : 1//1]
julia> v==w
true
Expand Down Expand Up @@ -277,7 +277,7 @@ julia> A = rand(Int,3,3) .% 5
3 -1 -2
julia> A*v
HVector(1//1, 3//1, 1//1)
[1//1 : 3//1 : 1//1]
julia> A*Vector(v)
3-element Array{Rational{Int64},1}:
Expand All @@ -297,20 +297,20 @@ julia> u = Mod{3}(1)
Mod{3}(1)
julia> v = HVector(u,u,u)
HVector(Mod{3}(1), Mod{3}(1), Mod{3}(1))
[Mod{3}(1) : Mod{3}(1) : Mod{3}(1)]
julia> dot(v,v)
0
julia> w = HVector(-1,2,1)
HVector(-1//1, 2//1, 1//1)
[-1//1 : 2//1 : 1//1]
julia> dot(v,w)
1
```


### Homogeneous matrices
## Homogeneous Matrices

We also provide `HMatrix` to represent a homogeneous matrix. These are
constructed by passing an (ordinary) matrix.
Expand Down

0 comments on commit f8eacb9

Please sign in to comment.