From 59000efe9d70b88db8719e2cd0288ec3557e62fa Mon Sep 17 00:00:00 2001 From: fverdugo Date: Fri, 7 Jun 2019 07:34:56 +0200 Subject: [PATCH] Updating reference to TensorValues --- Manifest.toml | 2 +- src/CellwiseValues.jl | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Manifest.toml b/Manifest.toml index 7718f79..e6d2862 100644 --- a/Manifest.toml +++ b/Manifest.toml @@ -79,7 +79,7 @@ uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [[TensorValues]] deps = ["LinearAlgebra", "StaticArrays"] -git-tree-sha1 = "14f3984aaedb900c5c5d6d79435318a73e530851" +git-tree-sha1 = "3d067021d238f9cf57d78ba5c64d93d8a0c80f3e" repo-rev = "master" repo-url = "https://github.com/gridap/TensorValues.jl.git" uuid = "31c64edf-cdeb-50e4-845d-ed2334360c20" diff --git a/src/CellwiseValues.jl b/src/CellwiseValues.jl index 01f0e31..99cf7a8 100644 --- a/src/CellwiseValues.jl +++ b/src/CellwiseValues.jl @@ -2,19 +2,6 @@ module CellwiseValues using Reexport -# To be ported to TensorValues -using TensorValues -import Base: sum -import Base: +, -, *, / -sum(a::MultiValue) = sum(a.array) -for op in (:+,:-,:*) - @eval begin - ($op)(a::MultiValue,b::Number) = MultiValue($op(a.array,b)) - ($op)(a::Number,b::MultiValue) = MultiValue($op(a,b.array)) - end -end -(/)(a::MultiValue,b::Number) = MultiValue(a.array/b) - include("Helpers.jl") @reexport using CellwiseValues.Helpers