Skip to content

Commit 2bfbaca

Browse files
committed
added div, conj, exactdiv, min, max
1 parent 08225fa commit 2bfbaca

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name = "ModuleElts"
22
uuid = "4249f315-58d4-4c46-b324-3577fc7dfca0"
33
authors = ["Jean Michel <jean.michel@imj-prg.fr>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
5+
6+
[deps]
7+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
58

69
[compat]
10+
LinearAlgebra = "1"
711
julia = "1"
812

913
[extras]

src/ModuleElts.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,12 @@ end
500500
Base.:/(m::$M,b)=merge(/,m,b)
501501
Base.:(//)(m::$M,b)=merge(//,m,b)
502502
Base.:\(b,m::$M)=merge(\,b,m)
503+
Base.div(m::$M,b)=merge(div,m,b)
504+
Base.conj(m::$M)=merge(conj,m)
505+
using LinearAlgebra: LinearAlgebra, exactdiv
506+
LinearAlgebra.exactdiv(m::$M,b)=merge(exactdiv,m,b)
507+
Base.min(m::$M,n::$M)=merge2(min,m,n)
508+
Base.max(m::$M,n::$M)=merge2(max,m,n)
503509

504510
end
505511
end

0 commit comments

Comments
 (0)