Skip to content

Commit 3685ece

Browse files
committed
v0.6.0 updates
1 parent b05947f commit 3685ece

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/source/example_problems/mimo_random_vibration_control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ the general equation
285285

286286
.. math::
287287
288-
\mathbf{H}^+ = \left(\mathbf{H}^T\mathbf{W}^T\mathbf{W}\mathbf{H}+\lambda\mathbf{\Sigma}\right)^{-1}\mathbf{H}^T\mathbf{W}^T
288+
\mathbf{H}^+ = \left(\mathbf{H}^H\mathbf{W}^H\mathbf{W}\mathbf{H}+\lambda\mathbf{\Sigma}\right)^{-1}\mathbf{H}^H\mathbf{W}^H\mathbf{W}
289289
290290
where :math:`\mathbf{H}` is the frequency response function matrix,
291291
:math:`\mathbf{W}` is a response weighting matrix, :math:`\lambda` is the input

tests/geometry_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
def cartesian_geometry():
2020
coordinates = np.linspace(-1,1,5)
2121
all_coords = np.array(np.meshgrid(coordinates,coordinates,coordinates,indexing='ij')).reshape(3,-1).T
22-
# Scale so they are different lengths
23-
all_coords *= np.array((1.1,1.0,0.9))
2422
node_ids = np.arange(all_coords.shape[0])+1
2523
rotation = sdpy.rotation.R(2,20,degrees=True)@sdpy.rotation.R(1,-30,degrees=True)@sdpy.rotation.R(0,-45,degrees=True)
2624
translation = np.array(((0.0,2.0,1.0),))
@@ -98,6 +96,12 @@ def test_node_indexing(cartesian_geometry):
9896
scalar_node = cartesian_geometry.node(scalar_id)
9997
check_nodes = cartesian_geometry.node[indices]
10098
check_scalar_node = cartesian_geometry.node[scalar_index]
99+
nodes_by_reduction = cartesian_geometry.node.reduce(ids)
100+
scalar_node_by_reduction = cartesian_geometry.node.reduce(scalar_id)
101101
assert np.all(nodes == check_nodes)
102102
assert np.all(check_scalar_node == scalar_node)
103+
assert np.all(nodes_by_reduction == check_nodes)
104+
assert np.all(check_scalar_node == scalar_node_by_reduction)
105+
with pytest.raises(ValueError):
106+
cartesian_geometry.node(1000)
103107

0 commit comments

Comments
 (0)