Skip to content

Commit

Permalink
Add complex dtype support
Browse files Browse the repository at this point in the history
  • Loading branch information
calgray committed Oct 14, 2024
1 parent e9da3d0 commit ea80fe2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/z5/filesystem/factory.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ namespace filesystem {
ptr.reset(new Dataset<float>(dataset, metadata)); break;
case types::float64:
ptr.reset(new Dataset<double>(dataset, metadata)); break;
case types::complex64:
ptr.reset(new Dataset<std::complex<float>>(dataset, metadata)); break;
case types::complex128:
ptr.reset(new Dataset<std::complex<double>>(dataset, metadata)); break;
}
return ptr;
}
Expand Down

0 comments on commit ea80fe2

Please sign in to comment.