11 lines
465 B
Julia
11 lines
465 B
Julia
export reshape, tile, fill, cast, solve, triangular_solve
|
|
|
|
import Base: reshape, fill
|
|
|
|
reshape(x::AbstractArray, dims::AbstractArray) = reshape(x,tuple(dims...))
|
|
tile(x::AbstractArray, mult::AbstractArray) = repeat(x,outer=tuple(mult...))
|
|
fill{T}(x::T, dims::AbstractArray) = fill(x,tuple(dims...))
|
|
cast{T}(x::AbstractArray, ::Type{T}) = convert(Array{T},x)
|
|
solve(A::AbstractArray, b::AbstractArray) = A\b
|
|
triangular_solve(A::AbstractArray, b::AbstractArray) = A\b
|