Add dense_longlong to all integer dtype parameters#15
Add dense_longlong to all integer dtype parameters#15KarlLeell merged 11 commits intolibigl:masterfrom
Conversation
fwilliams
left a comment
There was a problem hiding this comment.
There are a lot of commented out checks. Are these causing tests to fail? I added some other notes here and there.
|
|
||
| npe_begin_code() | ||
|
|
||
| //assert_valid_3d_tri_mesh_faces(f, "f"); |
There was a problem hiding this comment.
Why is this commented out?
There was a problem hiding this comment.
There are some tests commented out, basically because they are either from the unmerged PR, like assert_valid_tet_or_tri_mesh_faces, or they are not implemented yet, just I think they should be there so I put it, like assert_valid_3d_tri_mesh_faces.
| npe_arg(f, dense_int, dense_long, dense_longlong) | ||
| npe_begin_code() | ||
|
|
||
| //assert_valid_tet_or_tri_mesh_faces(f, "f"); |
There was a problem hiding this comment.
Why is this commented out?
|
|
||
| npe_begin_code() | ||
|
|
||
| //assert_valid_tet_or_tri_mesh_faces(f, "f"); |
There was a problem hiding this comment.
Why is this commented_out?
| //assert_cols_equals(vs, 1, "vs"); | ||
| //assert_cols_equals(fs, 1, "fs"); | ||
| //assert_cols_equals(vt, 1, "vt"); | ||
| //assert_cols_equals(ft, 1, "ft"); |
There was a problem hiding this comment.
Why are these commented out?
Also, I'm not sure if these will always have shape (N, 1). They might have shape (1, N). It might make sense to have something like assert_is_vector(vs, "vs") which checks both conditions.
There was a problem hiding this comment.
True, these ones I'm not sure (I'm not even sure if they can be omitted), so I added them but comment them out.
| #include <igl/harmonic.h> | ||
|
|
||
| //TODO: is is only dense_int because min_quad_with_fixed_data hardcodes int, fixme | ||
| //TODO: is is only dense_int because min_quad_with_fixed_data hardcodes int, FIXME |
There was a problem hiding this comment.
Is this comment still true?
There was a problem hiding this comment.
It seems min_quad_with_fixed has been templated now, I will try to fix this later
| npe_begin_code() | ||
| assert_valid_3d_tri_mesh(v, f); | ||
|
|
||
| assert_valid_tet_or_tri_mesh(v, f); |
| npe_arg(f, dense_int, dense_long, dense_longlong) | ||
| npe_begin_code() | ||
|
|
||
| //assert_valid_tet_or_tri_mesh_faces(f, "f"); |
| npe_arg(t, dense_int, dense_long, dense_longlong) | ||
| npe_begin_code() | ||
|
|
||
| // TODO: need an option for multiple shapes |
There was a problem hiding this comment.
Here t can be either #t by 3 or #t by 4, and currently I think we cannot check this
There was a problem hiding this comment.
assert_valid_tet_or_tri_mesh_faces
| npe_arg(f, dense_int, dense_long, dense_longlong) | ||
| npe_begin_code() | ||
|
|
||
| //assert_valid_tet_or_tri_mesh_faces(f, "f"); |
|
|
||
| npe_begin_code() | ||
|
|
||
| assert_valid_tet_or_tri_mesh(v, f); |
There was a problem hiding this comment.
if it is by 3 it is tri_mesh3d not tets
|
|
||
| npe_begin_code() | ||
|
|
||
| assert_valid_tet_or_tri_mesh(v, f); |
| npe_arg(f, dense_int, dense_long) | ||
| npe_arg(f, dense_int, dense_long, dense_longlong) | ||
| npe_begin_code() | ||
| //assert_valid_3d_tri_mesh_faces(f, "f"); |
|
|
||
| npe_begin_code() | ||
|
|
||
| assert_valid_tet_or_tri_mesh(v, f); |
|
|
||
| npe_begin_code() | ||
|
|
||
| //assert_valid_tet_or_tri_mesh_faces(f, "f"); |
| npe_arg(f, dense_int, dense_long) | ||
|
|
||
| npe_begin_code() | ||
| assert_valid_tet_or_tri_mesh(v, f); |
No description provided.