Skip to content

Commit 11bda22

Browse files
committed
replace Matrix type with AbstractMatrix
1 parent e0744f9 commit 11bda22

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/basis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ end
290290
291291
# Arguments
292292
- `f <: Function`: A function that takes a one dimensional array as argument.
293-
- `data::Matrix`: A Matrix object.
293+
- `data::AbstractMatrix`: A Matrix object.
294294
"""
295295
function applyColumns(f::F, data::AbstractMatrix{Float64}) where {F <: Function}
296296
return [f(col) for col in eachcol(data)]

src/mve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ..Basis:
1212
import ..Diagnostics: mahalanobisSquaredMatrix
1313

1414

15-
function enlargesubset(initialsubset, data::DataFrame, dataMatrix::Matrix, h::Int)
15+
function enlargesubset(initialsubset, data::DataFrame, dataMatrix::AbstractMatrix, h::Int)
1616
n, _ = size(dataMatrix)
1717
basicsubset = copy(initialsubset)
1818
while length(basicsubset) < h

src/satman2015.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ end
8080
Sort multidimensional data usin non-dominated sorting algorithm.
8181
8282
# Arguments
83-
- `data::Matrix`: n x k matrix of observations where n is number of observations and k is number of variables.
83+
- `data::AbstractMatrix`: n x k matrix of observations where n is number of observations and k is number of variables.
8484
8585
# Examples
8686
```julia-repl
@@ -149,7 +149,7 @@ International Journal of Advanced Statistics and Probability 3.1 (2015): 53.
149149
Deb, Kalyanmoy, et al. "A fast elitist non-dominated sorting genetic algorithm for multi-objective optimization: NSGA-II."
150150
International conference on parallel problem solving from nature. Springer, Berlin, Heidelberg, 2000.
151151
"""
152-
function ndsranks(data::Matrix)::Array{Int}
152+
function ndsranks(data::AbstractMatrix)::Array{Int}
153153
n, _ = size(data)
154154
ranks = zeros(Int, n)
155155
mat = convert(Matrix, data)

0 commit comments

Comments
 (0)