Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove SIMD.jl #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
julia 0.7.0-DEV.2000
ForwardDiff
SIMD
1 change: 0 additions & 1 deletion src/Tensors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ include("symmetric.jl")
include("math_ops.jl")
include("eigen.jl")
include("special_ops.jl")
# include("simd.jl")
include("voigt.jl")

end # module
515 changes: 0 additions & 515 deletions src/simd.jl

This file was deleted.

42 changes: 0 additions & 42 deletions test/F64.jl

This file was deleted.

2 changes: 0 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ using Random

reset_timer!()

#include("F64.jl")
const F64 = Float64
include("test_misc.jl")
include("test_ops.jl")
include("test_ad.jl")
Expand Down
14 changes: 7 additions & 7 deletions test/test_misc.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testsection "constructors" begin
for T in (Float32, Float64, F64), dim in (1,2,3), order in (1,2,4)
for T in (Float32, Float64), dim in (1,2,3), order in (1,2,4)
for op in (rand, zero, ones, randn)
# Tensor, SymmetricTensor
for TensorType in (Tensor, SymmetricTensor)
Expand Down Expand Up @@ -90,7 +90,7 @@ end
end # of testset

@testsection "base vectors" begin
for T in (Float32, Float64, F64), dim in (1,2,3)
for T in (Float32, Float64), dim in (1,2,3)
eᵢ_func(i) = Tensor{1, dim, T}(j->j==i ? one(T) : zero(T))

a = rand(Vec{dim, T})
Expand Down Expand Up @@ -142,7 +142,7 @@ end
end # of testset

@testsection "constrct func" begin
for T in (Float32, Float64, F64)
for T in (Float32, Float64)
for dim in (1,2,3)
fi = (i) -> cos(i)
fij = (i,j) -> cos(i) + sin(j)
Expand Down Expand Up @@ -201,7 +201,7 @@ end
end # of testset

@testsection "indexing" begin
for T in (Float32, Float64, F64), dim in (1,2,3), order in (1,2,4)
for T in (Float32, Float64), dim in (1,2,3), order in (1,2,4)
if order == 1
data = rand(T, dim)
vect = Tensor{order, dim, T}(data)
Expand Down Expand Up @@ -255,7 +255,7 @@ end
end # of testset

@testsection "norm, trace, det, inv, eig" begin
for T in (Float32, Float64, F64), dim in (1,2,3)
for T in (Float32, Float64), dim in (1,2,3)
# norm
for order in (1,2,4)
t = rand(Tensor{order, dim, T})
Expand Down Expand Up @@ -323,7 +323,7 @@ end # of testset

# https://en.wikiversity.org/wiki/Continuum_mechanics/Tensor_algebra_identities
@testsection "tensor identities" begin
for T in (Float32, Float64, F64)
for T in (Float32, Float64)
for dim in (1,2,3)
# Identities with second order and first order
A = rand(Tensor{2, dim, T})
Expand Down Expand Up @@ -364,7 +364,7 @@ for T in (Float32, Float64, F64)
end
end

for T in (Float32, Float64, F64)
for T in (Float32, Float64)
for dim in (1,2,3)
# Identities with identity tensor
II = one(Tensor{4, dim, T})
Expand Down
2 changes: 1 addition & 1 deletion test/test_ops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function _permutedims(S::FourthOrderTensor{dim}, idx::NTuple{4,Int}) where dim
end

@testsection "tensor ops" begin
for T in (Float32, Float64, F64), dim in (1,2,3)
for T in (Float32, Float64), dim in (1,2,3)
println("T = $T, dim = $dim")
AA = rand(Tensor{4, dim, T})
BB = rand(Tensor{4, dim, T})
Expand Down