Skip to content

Commit 44e3ae5

Browse files
committed
Use eigen instead of eigvecs
1 parent bdc15fb commit 44e3ae5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ typeof(v1[[1,2,3]]) <: Vector # Can't determine size from the type of [1,2,3]
103103

104104
# Is (partially) hooked into BLAS, LAPACK, etc:
105105
rand(MMatrix{20,20}) * rand(MMatrix{20,20}) # large matrices can use BLAS
106-
eigvecs(m3) # eigvecs(), etc uses specialized algorithms up to 3×3, or else LAPACK
106+
eigen(m3) # eigen(), etc uses specialized algorithms up to 3×3, or else LAPACK
107107

108108
# Static arrays stay statically sized, even when used by Base functions, etc:
109-
typeof(eigvecs(m3) == SArray{Tuple{3,3},Float64,2,9})
109+
typeof(eigen(m3)) == Eigen{Float64,Float64,SArray{Tuple{3,3},Float64,2,9},SArray{Tuple{3},Float64,1,3}}
110110

111111
# similar() returns a mutable container, while similar_type() returns a constructor:
112112
typeof(similar(m3)) == MArray{Tuple{3,3},Int64,2,9} # (final parameter is length = 9)

docs/src/pages/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ typeof(v1[[1,2,3]]) <: Vector # Can't determine size from the type of [1,2,3]
4444

4545
# Is (partially) hooked into BLAS, LAPACK, etc:
4646
rand(MMatrix{20,20}) * rand(MMatrix{20,20}) # large matrices can use BLAS
47-
eigvecs(m3) # eigvecs(), etc uses specialized algorithms up to 3×3, or else LAPACK
47+
eigen(m3) # eigen(), etc uses specialized algorithms up to 3×3, or else LAPACK
4848

4949
# Static arrays stay statically sized, even when used by Base functions, etc:
50-
typeof(eigvecs(m3) == SArray{Tuple{3,3},Float64,2,9})
50+
typeof(eigen(m3)) == Eigen{Float64,Float64,SArray{Tuple{3,3},Float64,2,9},SArray{Tuple{3},Float64,1,3}}
5151

5252
# similar() returns a mutable container, while similar_type() returns a constructor:
5353
typeof(similar(m3)) == MArray{Tuple{3,3},Int64,2,9} # (final parameter is length = 9)

0 commit comments

Comments
 (0)