5#include "yas/serialize.hpp"
6#include "yas/std_types.hpp"
12template <
typename Symmetry, std::
size_t depth,
typename AllocationPolicy>
22 template <
typename Symmetry_, std::
size_t depth,
typename AllocationPolicy>
32 inline const std::size_t
dim()
const {
return dim_; }
53 template <
typename Ar>
56 ar& YAS_OBJECT_NVP(
"Basis", (
"dim", dim_), (
"history", history));
64 std::size_t dim1 = 0, dim2 = 0;
65 std::array<std::size_t, 2> source(std::size_t combined_num)
const
67 std::size_t tmp = combined_num / dim1;
68 return {{combined_num - dim1 * tmp, tmp}};
70 template <
typename Ar>
73 ar& YAS_OBJECT_NVP(
"fuseData", (
"dim1", dim1), (
"dim2", dim2));
77 Basis::fuseData history;
82#ifndef XPED_COMPILED_LIB
void serialize(Ar &ar) const
Definition: EigenPlugins.hpp:7
Basis add(const Basis &other) const
Definition: Basis.cpp:11
auto printHistory() const
Definition: Basis.cpp:51
Basis()
Definition: Basis.hpp:27
const std::size_t dim() const
Definition: Basis.hpp:32
Basis combine(const Basis &other) const
Definition: Basis.cpp:17
friend std::ostream & operator<<(std::ostream &os, const Basis &basis)
Definition: Basis.cpp:73
bool operator==(const Basis &other) const
Definition: Basis.hpp:49
Basis(std::size_t dim_in)
Definition: Basis.hpp:29
void serialize(Ar &ar)
Definition: Basis.hpp:54
auto print() const
Definition: Basis.cpp:26
Definition: Qbasis.hpp:39