-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
842 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
# InfiniteVectors.jl | ||
|
||
Under construction | ||
*A Julia package for infinite vectors operations such as convolution and z-transform.* | ||
|
||
|
||
|
||
| **Documentation** | **Build Status** | **Coverage** | | ||
|-------------------|------------------|--------------| | ||
| [![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://vincentcp.github.io/InfiniteVectors.jl/stable) [![Documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://vincentcp.github.io/InfiniteVectors.jl/dev) | [![Build Status](https://travis-ci.org/vincentcp/InfiniteVectors.jl.png)](https://travis-ci.org/vincentcp/InfiniteVectors.jl) [![Build status](https://ci.appveyor.com/api/projects/status/gh4ka7m9a7qekqu8?svg=true)](https://ci.appveyor.com/project/vincentcp/InfiniteVectors-jl) | [![Coverage](https://codecov.io/gh/vincentcp/InfiniteVectors.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/vincentcp/InfiniteVectors.jl) [![Coverage Status](https://coveralls.io/repos/github/vincentcp/InfiniteVectors.jl/badge.svg)](https://coveralls.io/github/vincentcp/InfiniteVectors.jl) | | ||
|
||
|
||
Installation instructions and full functionality can be found in the [documentation](https://vincentcp.github.io/InfiniteVectors.jl/dev) | ||
|
||
## Examples | ||
|
||
```julia | ||
julia> using InfiniteVectors, PGFPlotsX | ||
julia> Plot(CompactInfiniteVector(1:4,-1)) | ||
``` | ||
![svg](test/example1.svg) | ||
```julia | ||
julia> Plot(PeriodicInfiniteVector(1:10)) | ||
``` | ||
![svg](test/example2.svg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
# [Development](@id development) | ||
|
||
# [Developer information](@id development) | ||
```@setup dev | ||
using InfiniteVectors | ||
``` | ||
|
||
```@docs | ||
CardinalBSplines.AbstractFiniteNZInfiniteVector | ||
InfiniteVectors.ZTransform | ||
InfiniteVectors.Integers | ||
InfiniteVectors.BiInfiniteVector | ||
InfiniteVectors.hascompactsupport | ||
InfiniteVectors.nexteven | ||
InfiniteVectors.nextodd | ||
InfiniteVectors.previouseven | ||
InfiniteVectors.sublength | ||
``` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
|
||
<!-- Infinity, ∞, CompactInfiniteVector, PeriodicInfiniteVector, downsample, upsample, δ, shift, shift!, --> | ||
<!-- ztransform, moment, fouriertransform, *, ⋆, ⊛, hascompactsupport, period, inv, leastsquares_inv, eachnonzeroindex --> | ||
```@meta | ||
DocTestSetup = quote | ||
using InfiniteVectors | ||
end | ||
|
||
```@docs | ||
eachnonzeroindex | ||
hascompactsupport | ||
``` | ||
|
||
# Indices | ||
Even though InfiniteVectors are | ||
Even though an `InfiniteVector` is an `AbstractVector` | ||
```jldoctest man | ||
julia> InfiniteVector <: AbstractVector | ||
true | ||
``` | ||
it does not support indexing since | ||
```jldoctest man | ||
julia> vec = CompactInfiniteVector(1:3) | ||
CompactInfiniteVector{Int64} with indices ℤ: | ||
[ …, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0, … ] | ||
julia> I = eachindex(vec) | ||
ℤ | ||
``` | ||
which is an object with infinite length. | ||
```jldoctest man | ||
julia> length(I) | ||
∞ | ||
``` | ||
|
||
!!! note | ||
The function `eachnonzeroindex` is supported for vectors that have a finite number of non-zero elements. | ||
```jldoctest man | ||
julia> eachnonzeroindex(vec) | ||
0:2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Vector operations | ||
```@docs | ||
downsample | ||
upsample | ||
shift | ||
shift! | ||
reverse | ||
reverse! | ||
alternating_flip | ||
alternating | ||
evenpart | ||
oddpart | ||
inv | ||
adjoint | ||
transpose | ||
ztransform | ||
fouriertransform | ||
moment | ||
leastsquares_inv | ||
* | ||
⊛ | ||
⋆ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Vector types | ||
|
||
This sections contains a list of the different supported vector types accompanied with the functions specific to those types. | ||
|
||
```@contents | ||
Pages = ["vectors.md"] | ||
Depth = 2 | ||
``` | ||
|
||
## Compact vectors | ||
|
||
The abstract type for vectors with a finite number of non-zero elements is | ||
|
||
```@docs | ||
InfiniteVectors.AbstractFiniteNZInfiniteVector | ||
``` | ||
|
||
### CompactInfiniteVector | ||
There are two types that support compact vectors. The second one is fully typed. | ||
```@docs | ||
CompactInfiniteVector | ||
FixedInfiniteVector | ||
``` | ||
For the dirac delta a special constructor is present. | ||
```@docs | ||
δ | ||
``` | ||
|
||
### Functions specific to compact vectors | ||
```@docs | ||
eachnonzeroindex | ||
subvector | ||
support | ||
``` | ||
|
||
## Periodic vectors | ||
```@docs | ||
InfiniteVectors.AbstractPeriodicInfiniteVector | ||
``` | ||
```@docs | ||
PeriodicInfiniteVector | ||
``` | ||
|
||
### Functions specific to periodic vectors | ||
```@docs | ||
period | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.