Skip to content

Commit 27f0186

Browse files
committed
eye compatability with SimpleTropical
1 parent 29f6fa9 commit 27f0186

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LinearAlgebraX"
22
uuid = "9b3f67b0-2d00-526e-9884-9e4938f8fb88"
3-
version = "0.1.6"
3+
version = "0.1.7"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/eye.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ are numbers of type `T` (`Float64` by default).
77
function eye(T,n)
88
A = zeros(T,n,n)
99
for j=1:n
10-
@inbounds A[j,j] = T(1)
10+
@inbounds A[j,j] = one(T)
1111
end
1212
return A
1313
end

0 commit comments

Comments
 (0)