Skip to content

Commit

Permalink
[Base] Stop pirating Base.sign
Browse files Browse the repository at this point in the history
  • Loading branch information
tkemmer committed Oct 20, 2022
1 parent f82723a commit 461ee0c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/intern/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
_cos
_dot
_norm
_sign
cathetus
ddot
distance
Expand All @@ -26,7 +27,6 @@
props
reverseindex
seek
sign
unpack
vertexnormals
```
2 changes: 1 addition & 1 deletion src/NESSie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ __precompile__()

module NESSie

import Base: sign, seek
import Base: seek
import LinearAlgebra.BLAS: gemv!, gemv, axpy!, gemm

using Distances: euclidean
Expand Down
4 changes: 2 additions & 2 deletions src/base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ end

# =========================================================================================
"""
sign{T}(
_sign{T}(
u::AbstractVector{T},
v::AbstractVector{T},
n::AbstractVector{T}
Expand All @@ -315,7 +315,7 @@ same orientation, ``0`` if at least one of the vectors is zero, and ``-1`` other
# Return type
`T`
"""
@inline function sign(
@inline function _sign(
u::AbstractVector{T},
v::AbstractVector{T},
n::AbstractVector{T}
Expand Down
6 changes: 3 additions & 3 deletions test/base/util.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using NESSie: _cos, _dot, _norm, eye!, pluseye!, isdegenerate, seek, reverseindex, unpack, vertexnormals,
cathetus, sign, distance
using NESSie: _cos, _dot, _norm, eye!, pluseye!, isdegenerate, seek, reverseindex, unpack,
vertexnormals, distance
using LinearAlgebra: , norm

@testset "_cos" begin
Expand Down Expand Up @@ -328,6 +328,6 @@ end
end
end

@test_skip _sign
@test_skip cathetus
@test_skip sign
@test_skip ddot

0 comments on commit 461ee0c

Please sign in to comment.