Skip to content

Commit 2da4220

Browse files
committed
transitioned to Julia 1.0 release
1 parent da8f7d3 commit 2da4220

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 0.6
87
- 0.7
98
- nightly
109
notifications:

Project.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name = "ReduceLinAlg"
2+
uuid = "bfcbc1eb-9170-5dc4-a833-47b2e27cecb4"
3+
4+
[deps]
5+
Reduce = "93e0c654-6965-5f22-aba9-9c1ae6b3c259"
6+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
7+
8+
[extras]
9+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10+
11+
[targets]
12+
test = ["Test"]

REQUIRE

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
julia 0.6
1+
julia 0.7
22
Reduce
3-
Compat

appveyor.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.6/julia-0.6-latest-win32.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
53
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.7/julia-0.7-latest-win32.exe"
64
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
75
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"

src/ReduceLinAlg.jl

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
__precompile__()
22
module ReduceLinAlg
3-
importall Reduce
4-
using Compat
5-
import Compat.String
3+
using Reduce, LinearAlgebra
64

75
# This file is part of ReduceLinAlg.jl. It is licensed under the MIT license
86
# Copyright (C) 2018 Michael Reed
97

10-
const VectorAny = Union{Vector,RowVector}
8+
const VectorAny = Union{Vector,Adjoint}
119

1210
const lin = [
1311
:hessian,
@@ -40,8 +38,8 @@ for fun in lin
4038
@eval begin
4139
$(Reduce.parsegen(fun,:args))
4240
$(Reduce.unfoldgen(fun,:args))
43-
function $fun(expr::Compat.String,s...;be=0)
44-
convert(Compat.String, $fun(RExpr(expr),s...;be=be))
41+
function $fun(expr::String,s...;be=0)
42+
convert(String, $fun(RExpr(expr),s...;be=be))
4543
end
4644
end
4745
end
@@ -50,15 +48,15 @@ for fun in unr
5048
@eval begin
5149
$(Reduce.parsegen(fun,:unary))
5250
$(Reduce.unfoldgen(fun,:unary))
53-
function $fun(expr::Compat.String;be=0)
54-
convert(Compat.String, $fun(RExpr(expr);be=be))
51+
function $fun(expr::String;be=0)
52+
convert(String, $fun(RExpr(expr);be=be))
5553
end
5654
end
5755
end
5856

5957
const MatExpr = Union{Array{Any,2},Array{Expr,2},Array{Symbol,2},Expr,Symbol}
6058

61-
band_matrix(r::Union{Vector,RowVector,Expr,Symbol},v::Integer) = band_matrix(list(r),v) |> parse
59+
band_matrix(r::Union{Vector,Adjoint,Expr,Symbol},v::Integer) = band_matrix(list(r),v) |> parse
6260
band_matrix(r::T,v::Integer) where T <: Tuple = band_matrix(RExpr(r),v) |> parse
6361
block_matrix(r::Integer,c::Integer,s::VectorAny) = block_matrix(RExpr(r),RExpr(c),list(s)) |> parse
6462
block_matrix(r::Integer,c::Integer,s::T) where T <: Tuple = block_matrix(RExpr(r),RExpr(c),RExpr(s)) |> parse

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Reduce
22
using ReduceLinAlg
3-
using Base.Test
3+
using Test
44

55
# write your own tests here
66
@test mat_jacobian((:x,),(:x,)) == mat_jacobian([:x],[:x])

0 commit comments

Comments
 (0)