Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jan 27, 2019
1 parent bc51e8f commit 39dff76
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions asdf_ndarray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ class ndarray {
vector<int64_t> shape1, int64_t offset = 0,
vector<int64_t> strides1 = {})
: mdata(move(mdata1)), block_format(block_format),
compression(compression), compression_level(compression_level),mask(move(mask1)), datatype(move(datatype1)),
byteorder(byteorder), shape(move(shape1)), offset(offset),
strides(move(strides1)) {
compression(compression), compression_level(compression_level),
mask(move(mask1)), datatype(move(datatype1)), byteorder(byteorder),
shape(move(shape1)), offset(offset), strides(move(strides1)) {
// Check shape
int rank = shape.size();
for (int d = 0; d < rank; ++d)
Expand Down Expand Up @@ -158,11 +158,12 @@ class ndarray {

template <typename T>
ndarray(vector<T> data1, block_format_t block_format,
compression_t compression,int compression_level, vector<bool> mask1, vector<int64_t> shape1,
int64_t offset = 0, vector<int64_t> strides1 = {})
compression_t compression, int compression_level, vector<bool> mask1,
vector<int64_t> shape1, int64_t offset = 0,
vector<int64_t> strides1 = {})
: ndarray(make_constant_memoized(shared_ptr<block_t>(
make_shared<typed_block_t<T>>(move(data1)))),
block_format, compression, compression_level,move(mask1),
block_format, compression, compression_level, move(mask1),
make_shared<datatype_t>(get_scalar_type_id<T>::value),
host_byteorder(), move(shape1), offset, move(strides1)) {}

Expand Down

0 comments on commit 39dff76

Please sign in to comment.