chakravala / Reduce.jl
Showing 1 of 4 files from the diff.
Other files ignored by Codecov
deps/svn.jl has changed.
deps/build.jl has changed.
Project.toml has changed.

@@ -106,16 +106,17 @@
Loading
106 106
module Algebra
107 107
using Reduce, LinearAlgebra
108 108
import AbstractTensors
109 -
import AbstractTensors: conj, inv, PROD, SUM, -, /, √
109 +
import AbstractTensors: conj, inv, dot, PROD, SUM, -, /, √
110 110
import AbstractTensors: sqrt, abs, exp, expm1, log, log1p, sin, cos, sinh, cosh, ^
111 111
const *,+ = PROD,SUM
112 112
113 -
114 113
export expm1, log1p, √
115 114
for T ∈ (RExpr,Expr,Symbol,String)
116 115
    @eval begin
117 116
        Base.expm1(z::$T) = exp(z)-1
118 117
        Base.log1p(z::$T) = 1+log(z)
118 +
        dot(a::$T,b) = conj(a)*b
119 +
        dot(a,b::$T) = conj(a)*b
119 120
    end
120 121
end
121 122
Files Coverage
src 80.73%
Project Totals (7 files) 80.73%