aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/tensor/empty_subspace.cpp
blob: cfc420d9ecd53e735a8d7e6e3cb8d243239b62a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "empty_subspace.h"
#include "subspace_type.h"

namespace search::tensor {

EmptySubspace::EmptySubspace(const SubspaceType& type)
    : _empty_space(),
      _cells()
{
    _empty_space.resize(type.mem_size());
    _cells = vespalib::eval::TypedCells(&_empty_space[0], type.cell_type(), type.size());
}

EmptySubspace::~EmptySubspace() = default;

}