From 27f01865815614aa31b07991120a74c661201349 Mon Sep 17 00:00:00 2001 From: Ed Scheinerman Date: Sun, 28 Mar 2021 07:31:21 -0400 Subject: [PATCH] eye compatability with SimpleTropical --- .vscode/settings.json | 1 + Project.toml | 2 +- src/eye.jl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/Project.toml b/Project.toml index f708419..0047076 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "LinearAlgebraX" uuid = "9b3f67b0-2d00-526e-9884-9e4938f8fb88" -version = "0.1.6" +version = "0.1.7" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/src/eye.jl b/src/eye.jl index bc6cd29..eb28171 100644 --- a/src/eye.jl +++ b/src/eye.jl @@ -7,7 +7,7 @@ are numbers of type `T` (`Float64` by default). function eye(T,n) A = zeros(T,n,n) for j=1:n - @inbounds A[j,j] = T(1) + @inbounds A[j,j] = one(T) end return A end