Skip to content

Commit

Permalink
Merge pull request #139 from moorepants/remove-numpy-matrix
Browse files Browse the repository at this point in the history
Remove uses of numpy.matrix
  • Loading branch information
moorepants authored Jun 7, 2024
2 parents 41eb414 + 0c0851d commit 0eee482
Show file tree
Hide file tree
Showing 11 changed files with 2,490 additions and 2,865 deletions.
12 changes: 6 additions & 6 deletions doc/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ There are three inertia properties for the human overall::
(center of the Ls0 stadium)....

>>> chad.inertia?
...Docstring: Inertia matrix/dyadic of the human, a np.matrix, in units
...Docstring: Inertia matrix/dyadic of the human, a np.array, in units
of kg-m^2, about the center of mass of the human, expressed in the
global frame....

Expand All @@ -188,12 +188,12 @@ and three related strictly to kinematics::
pelvis....

>>> chad.J1.rel_inertia?
...Docstring: Inertia matrix/dyadic of the segment, a np.matrix, in
...Docstring: Inertia matrix/dyadic of the segment, a np.array, in
units of kg-m^2, about the center of mass of the segment, expressed in
the frame of the segment....

>>> chad.J1.inertia?
...Docstring: Inertia matrix/dyadic of the segment, a np.matrix, in
...Docstring: Inertia matrix/dyadic of the segment, a np.array, in
units of kg-m^2, about the center of mass of the human, expressed in
the global frame....

Expand All @@ -209,7 +209,7 @@ and three related strictly to kinematics::

>>> chad.J1.rot_mat?
...Docstring: Rotation matrix specifying the orientation of this
segment relative to the orientation of the global frame, a np.matrix,
segment relative to the orientation of the global frame, a np.array,
unitless. Multiplying a vector expressed in this segment's frame with
this rotation matrix on the left gives that same vector, but expressed
in the global frame....
Expand All @@ -227,7 +227,7 @@ the segment containing them)::
(Ls0)....

>>> chad.J1.solids[0].inertia?
...Docstring: Inertia matrix/dyadic of the solid, a np.matrix, in units
...Docstring: Inertia matrix/dyadic of the solid, a np.array, in units
of kg-m^2, about the center of mass of the human, expressed in the
global frame....

Expand All @@ -236,7 +236,7 @@ the segment containing them)::
expressed in the frame of the solid, from the origin of the solid....

>>> chad.J1.solids[0].rel_inertia?
...Docstring: Inertia matrix/dyadic of the solid, a np.matrix, in units
...Docstring: Inertia matrix/dyadic of the solid, a np.array, in units
of kg-m^2, about the center of mass of the solid, expressed in the
frame of the solid....

Expand Down
Loading

0 comments on commit 0eee482

Please sign in to comment.