Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

_remove_useless_states() can change types to ndarrays #82

Closed
@manuelli

Description

@manuelli

It seems that if you enter the if statementhere then it replaces self.A withself.A withzeros(1,1) which is of type ndarray. This will cause problems later as the library is taking advantage of the fact that * is matrix multiplication not elementwise multiplcation as it would be for ndarrays.

Here is an example of the problem

sys1=control.StateSpace(0,0,0,0)sys2=control.StateSpace(1,0,0,0)print"type(sys1.A)",type(sys1.A)print"type(sys2.A)",type(sys2.A)type(sys1.A)<type'numpy.ndarray'>type(sys2.A)<class'numpy.matrixlib.defmatrix.matrix'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp