Skip to content

Commit

Permalink
Some cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed Nov 7, 2021
1 parent 409c44c commit 36aaa31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion src/nullrange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function grange(sys::DescriptorStateSpace{T}; zeros = "none", inner::Bool = fals
# move unstable zeros to stable positions and compress the reduced system to one
# with full row rank transfer function matrix
if disc
X, _,F, = gared(A,E,B,D'*D,C'*C,C'*D);
# X, _,F, = gared(A,E,B,D'*D,C'*C,C'*D);
X, _,F, = try
gared(A,E,B,D'*D,C'*C,C'*D)
catch err
Expand Down
17 changes: 0 additions & 17 deletions src/types/DescriptorStateSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,6 @@ index2range(ind::Colon) = ind
function Base.lastindex(sys::DST, dim::Int) where DST <: DescriptorStateSpace
lastindex(sys.D,dim)
end
# Base.getindex(sys::Vector{DST}, ind) where DST <: DescriptorStateSpace = getindex(sys,ind)
# function Base.getindex(sys::Vector{DST}, inds1, inds2) where DST <: DescriptorStateSpace
# println("inds1 = $inds1 inds2 = $inds2")
# size(inds2, 1) != 1 &&
# error("Must specify 2 indices to index descriptor state-space model")
# # rows, cols = index2range(inds...)
# # rows, cols = index2range(inds...)
# rows = inds1; cols = inds2
# println("rows = $rows cols = $cols")
# N = length(sys)
# sysR = similar(sys,N)
# for i = 1:N
# #sysR[i] = DescriptorStateSpace{eltype(sys[i])}(copy(sys[i].A), copy(sys[i].E), sys[i].B[:, cols], sys[i].C[rows, :], sys[i].D[rows, cols], sys[i].Ts)
# sysR[i] = sys[i][rows, cols]
# end
# return sysR
# end

# Basic Operations
function ==(sys1::DST1, sys2::DST2) where {DST1<:DescriptorStateSpace, DST2<:DescriptorStateSpace}
Expand Down

2 comments on commit 36aaa31

@andreasvarga
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/48331

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.1.3 -m "<description of version>" 36aaa317f04101b12576bca09f091a726f71938e
git push origin v1.1.3

Please sign in to comment.