From e092d66f193aba112e9f97f0dd9ba187afe5fffb Mon Sep 17 00:00:00 2001 From: Dahua Lin Date: Tue, 11 Mar 2014 15:19:52 -0500 Subject: [PATCH] add typealias for DenseVector & DenseMatrix --- base/array.jl | 4 ++++ base/exports.jl | 3 +++ 2 files changed, 7 insertions(+) diff --git a/base/array.jl b/base/array.jl index 5b5bb342ed3d0..42dc231971e16 100644 --- a/base/array.jl +++ b/base/array.jl @@ -4,6 +4,10 @@ typealias Vector{T} Array{T,1} typealias Matrix{T} Array{T,2} typealias VecOrMat{T} Union(Vector{T}, Matrix{T}) +typealias DenseVector{T} DenseArray{T,1} +typealias DenseMatrix{T} DenseArray{T,2} +typealias DenseVecOrMat{T} Union(DenseVector{T}, DenseMatrix{T}) + typealias StoredVector{T} StoredArray{T,1} typealias StridedArray{T,N,A<:DenseArray} Union(DenseArray{T,N}, SubArray{T,N,A}) typealias StridedVector{T,A<:DenseArray} Union(DenseArray{T,1}, SubArray{T,1,A}) diff --git a/base/exports.jl b/base/exports.jl index e72dbff4b3a8c..198f424c9ce6a 100644 --- a/base/exports.jl +++ b/base/exports.jl @@ -36,6 +36,9 @@ export Complex64, Complex32, DArray, + DenseMatrix, + DenseVecOrMat, + DenseVector, DevNull, Diagonal, Dict,