Skip to content

Extended serialization functionality to Eigen::Array.#1113

Merged
jdumas merged 2 commits intolibigl:masterfrom
ThomasAuzinger:dev
Apr 11, 2020
Merged

Extended serialization functionality to Eigen::Array.#1113
jdumas merged 2 commits intolibigl:masterfrom
ThomasAuzinger:dev

Conversation

@ThomasAuzinger
Copy link
Copy Markdown
Contributor

So far, the serialization functionality is implemented only for Eigen::Matrix and Eigen::SparseMatrix. This commit duplicates the Eigen::Matrix code for Eigen::Array.

Perhaps Eigen::DenseBase can be used to prevent code repetition.

There do not seem to be any unit tests for the serialization functionality, thus none were added.

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • Adds corresponding python binding.
  • This is a minor change.

Copy link
Copy Markdown
Collaborator

@jdumas jdumas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, looks like using Eigen::DenseBase for this would make more sense. I almost never use Eigen::Array, apart as temporary to broadcast member-wise operations such as *.

Also, if you want to add some unit tests for serialization, you are more than welcome to do so :D

@jdumas jdumas changed the base branch from dev to master April 11, 2020 17:03
@jdumas jdumas merged commit 4827b40 into libigl:master Apr 11, 2020
skoch9 pushed a commit to skoch9/libigl that referenced this pull request Jun 3, 2020
* Extended serialization functionality to Eigen::Array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants