Skip to content

Commit

Permalink
Improved docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scheinerman committed Aug 30, 2024
1 parent eb7c870 commit 3307c35
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LinearAlgebraX"
uuid = "9b3f67b0-2d00-526e-9884-9e4938f8fb88"
version = "0.2.8"
version = "0.2.9"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ For exact types (such as `Int`s) these functions give exact results.
* `char_poly` -- characteristic polynomial
* `permanent` -- permanent of a square matrix

## Examples
Examples follow.

### Determinant
## Determinant

```
julia> A = ones(Int,10,10)+eye(Int,10);
julia> det(A)
11.000000000000004
10.999999999999998
julia> detx(A)
11
Expand Down Expand Up @@ -75,7 +75,7 @@ Mod{10}(4)



### Nullspace
## Nullspace

```
julia> A = reshape(collect(1:12),3,4)
Expand All @@ -99,7 +99,7 @@ julia> nullspace(A)
-0.519821 0.172585
```

### Rank
## Rank

Consider the 12-by-12 Hibert matrix, `H` (see `hilbert.jl` in the `extras` folder):
```
Expand Down Expand Up @@ -127,7 +127,7 @@ julia> rankx(H)
12
```

### Inverse
## Inverse

```
julia> using Mods
Expand Down Expand Up @@ -157,7 +157,7 @@ julia> A*B
Mod{11}(0) Mod{11}(0) Mod{11}(0) Mod{11}(0) Mod{11}(1)
```

### Characteristic polynomial
## Characteristic polynomial

```
julia> using SimplePolynomials, LinearAlgebra
Expand Down Expand Up @@ -195,7 +195,7 @@ julia> detx(A)
Mod{17}(1)
```

### Row reduced echelon form
## Row reduced echelon form

```
julia> A = rand(Int,4,6) .% 10
Expand Down Expand Up @@ -265,7 +265,7 @@ julia> Vector(v)
```
However, entries cannot be assigned:
```
ulia> v[2] = 3//4
julia> v[2] = 3//4
ERROR: MethodError: no method matching setindex!(::HVector{Rational{Int64}}, ::Rational{Int64}, ::Int64)
```

Expand Down Expand Up @@ -332,5 +332,5 @@ julia> Matrix(ans)
0//1 4//3 -1//1
-1//3 -4//3 2//3
-1//1 0//1 1//1
```
```

2 changes: 1 addition & 1 deletion docs/build/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-08-25T16:14:53","documenter_version":"1.5.0"}}
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-08-30T07:38:13","documenter_version":"1.5.0"}}
31 changes: 22 additions & 9 deletions docs/build/index.html

Large diffs are not rendered by default.

Binary file modified docs/build/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/search_index.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ For exact types (such as `Int`s) these functions give exact results.
* `char_poly` -- characteristic polynomial
* `permanent` -- permanent of a square matrix

## Examples
Examples follow.

### Determinant
## Determinant

```
julia> A = ones(Int,10,10)+eye(Int,10);
julia> det(A)
11.000000000000004
10.999999999999998
julia> detx(A)
11
Expand Down Expand Up @@ -75,7 +75,7 @@ Mod{10}(4)



### Nullspace
## Nullspace

```
julia> A = reshape(collect(1:12),3,4)
Expand All @@ -99,7 +99,7 @@ julia> nullspace(A)
-0.519821 0.172585
```

### Rank
## Rank

Consider the 12-by-12 Hibert matrix, `H` (see `hilbert.jl` in the `extras` folder):
```
Expand Down Expand Up @@ -127,7 +127,7 @@ julia> rankx(H)
12
```

### Inverse
## Inverse

```
julia> using Mods
Expand Down Expand Up @@ -157,7 +157,7 @@ julia> A*B
Mod{11}(0) Mod{11}(0) Mod{11}(0) Mod{11}(0) Mod{11}(1)
```

### Characteristic polynomial
## Characteristic polynomial

```
julia> using SimplePolynomials, LinearAlgebra
Expand Down Expand Up @@ -195,7 +195,7 @@ julia> detx(A)
Mod{17}(1)
```

### Row reduced echelon form
## Row reduced echelon form

```
julia> A = rand(Int,4,6) .% 10
Expand Down Expand Up @@ -265,7 +265,7 @@ julia> Vector(v)
```
However, entries cannot be assigned:
```
ulia> v[2] = 3//4
julia> v[2] = 3//4
ERROR: MethodError: no method matching setindex!(::HVector{Rational{Int64}}, ::Rational{Int64}, ::Int64)
```

Expand Down Expand Up @@ -332,5 +332,5 @@ julia> Matrix(ans)
0//1 4//3 -1//1
-1//3 -4//3 2//3
-1//1 0//1 1//1
```
```

0 comments on commit 3307c35

Please sign in to comment.