Jason Rhinelander
6a81dbbb1e
Fix 2D Nx1/1xN inputs to eigen dense vector args
...
This fixes a bug introduced in b68959e822a619d1ad140f52c7197a29f4e6a06a
when passing in a two-dimensional, but conformable, array as the value
for a compile-time Eigen vector (such as VectorXd or RowVectorXd). The
commit switched to using numpy to copy into the eigen data, but this
broke the described case because numpy refuses to broadcast a (N,1)
into a (N).
This commit fixes it by squeezing the input array whenever the output
array is 1-dimensional, which will let the problematic case through.
(This shouldn't squeeze inappropriately as dimension compatibility is
already checked for conformability before getting to the copy code).
2017-10-12 09:45:55 -04:00
..
2017-08-07 23:08:20 +02:00
2017-09-12 08:05:05 +02:00
2017-09-28 08:04:34 -03:00
2017-08-17 09:33:27 -04:00
2017-06-12 09:56:55 -03:00
2017-09-10 12:28:03 +02:00
2017-01-31 17:05:44 +01:00
2017-09-12 08:06:46 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-06-10 16:44:21 +02:00
2017-09-21 18:07:48 -03:00
2017-09-21 18:07:48 -03:00
2017-10-12 09:41:54 -04:00
2017-10-12 09:41:54 -04:00
2017-09-06 10:21:11 +02:00
2017-09-06 10:21:11 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-28 16:34:06 +02:00
2017-08-28 16:34:06 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-16 12:02:49 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-10-12 09:45:55 -04:00
2017-10-12 09:45:55 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2016-11-20 21:21:54 +01:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-07-28 20:40:35 -04:00
2017-08-04 10:47:34 -04:00
2017-08-23 12:05:18 -04:00
2017-08-28 16:08:53 +02:00
2017-08-25 02:12:43 +02:00
2017-08-25 02:12:43 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:28:03 +02:00
2017-09-10 12:28:03 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-07-28 20:39:33 -04:00
2017-08-17 09:33:27 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-09-19 23:16:45 -03:00
2017-09-19 23:17:21 -03:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-30 14:22:00 +02:00
2017-08-30 14:22:00 +02:00
2017-09-06 15:20:52 +02:00
2017-08-30 11:11:38 +02:00
2017-09-11 10:09:32 +02:00
2017-09-11 10:09:32 +02:00
2017-08-05 18:46:22 -04:00
2017-08-05 18:46:22 -04:00
2017-08-23 17:18:57 +02:00
2017-08-05 18:46:22 -04:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-09-10 12:25:10 +02:00
2017-09-12 08:06:46 +02:00
2017-08-17 09:33:27 -04:00
2017-08-17 09:33:27 -04:00