dilevin / DGPCompFab

This repository stores the the assignments and lecture notes for the University of Toronto Graduate Course Computational Design and Fabrication
7 stars 4 forks source link

Be careful with Eigen .block() .block<>() #22

Closed FreakingBarbarians closed 5 years ago

FreakingBarbarians commented 5 years ago

The orders of the arguments is different and it gave me quite a headache.

block<int,int>(int,int) takes the dimension in the <> section and the position in the (). block(int,int,int,int) takes position first and then dimension.

I had them reversed and was segfaulting everywhere :)