FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
sparse_vector.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8// includes, FEAT
11#include <kernel/util/math.hpp>
12#include <kernel/util/statistics.hpp>
13#include <kernel/util/tiny_algebra.hpp>
14#include <kernel/util/type_traits.hpp>
15#include <kernel/util/time_stamp.hpp>
16#include <kernel/adjacency/permutation.hpp>
17#include <kernel/lafem/forward.hpp>
18#include <kernel/lafem/container.hpp>
19#include <kernel/lafem/arch/min_max_value_dense.hpp>
20#include <kernel/lafem/arch/max_rel_diff_dense.hpp>
21
22namespace FEAT
23{
24 namespace LAFEM
25 {
43 template <typename DT_, typename IT_ = Index>
44 class SparseVector : public Container<DT_, IT_>
45 {
46 public:
48 typedef DT_ DataType;
50 typedef IT_ IndexType;
51
52 protected:
53 Index & _size()
54 {
55 return this->_scalar_index.at(0);
56 }
57
58 Index & _nonzeros()
59 {
60 return this->_scalar_index.at(1);
61 }
62
63 public:
70 {
71 this->_scalar_index.push_back(0);
72 this->_scalar_index.push_back(0);
73 }
74
82 explicit SparseVector(Index size_in, Index nnze_in)
83 {
84 this->_scalar_index.push_back(size_in);
85 this->_scalar_index.push_back(nnze_in);
86 this->_elements.push_back(Memory::Arbiter(sizeof(DT_) * nnze_in));
87 this->_elements_size.push_back(nnze_in);
88 this->_indices.push_back(Memory::Arbiter(sizeof(IT_) * nnze_in));
89 this->_indices_size.push_back(nnze_in);
90 }
91
92 explicit SparseVector(Index size_in, const std::map<IT_, DT_>& map)
93 {
94 Index nnze_in = map.size();
95 this->_scalar_index.push_back(size_in);
96 this->_scalar_index.push_back(nnze_in);
97 this->_elements.push_back(Memory::Arbiter(sizeof(DT_) * nnze_in));
98 this->_elements_size.push_back(nnze_in);
99 this->_indices.push_back(Memory::Arbiter(sizeof(IT_) * nnze_in));
100 this->_indices_size.push_back(nnze_in);
101
102 if(nnze_in == 0u)
103 return;
104
105 auto ind_view = this->indices_view_w();
106 auto ele_view = this->elements_view_w();
107 auto* id_p = ind_view.get_w();
108 auto* ele_p = ele_view.get_w();
109
110 for(auto mp = map.cbegin(); mp != map.cend(); ++mp, ++id_p, ++ele_p)
111 {
112 *id_p = mp->first;
113 *ele_p = mp->second;
114 }
115 }
116
127 explicit SparseVector(Index size_in, DenseVector<DT_, IT_> & elements_in,
128 DenseVector<IT_, IT_> & indices_in)
129 {
130 XASSERT(size_in != Index(0));
131 XASSERTM(indices_in.size() == elements_in.size(), "Vector size mismatch!");
132
133 this->_scalar_index.push_back(size_in);
134 this->_scalar_index.push_back(elements_in.size());
135
136 this->_elements.push_back(elements_in.elements_arbiter().attach());
137 this->_elements_size.push_back(elements_in.size());
138 this->_indices.push_back(indices_in.elements_arbiter().attach());
139 this->_indices_size.push_back(indices_in.size());
140 }
141
149 template <typename DT2_ = DT_, typename IT2_ = IT_>
150 explicit SparseVector(std::vector<char> input)
151 {
152 this->deserialize<DT2_, IT2_>(input);
153 }
154
163 Container<DT_, IT_>(std::forward<SparseVector>(other))
164 {
165 }
166
175 explicit SparseVector(FileMode mode, const String& filename)
176 {
177 this->read_from(mode, filename);
178 }
179
188 explicit SparseVector(FileMode mode, std::istream& file)
189 {
190 this->read_from(mode, file);
191 }
192
201 {
202 this->move(std::forward<SparseVector>(other));
203
204 return *this;
205 }
206
216 {
217 SparseVector t;
218 t.clone(*this, clone_mode);
219 return t;
220 }
221
230 template<typename DT2_, typename IT2_>
231 void clone(const SparseVector<DT2_, IT2_> & other, CloneMode clone_mode = CloneMode::Deep)
232 {
233 Container<DT_, IT_>::clone(other, clone_mode);
234 }
235
246 template <typename DT2_, typename IT2_>
248 {
249 this->clone(other);
250 }
251
253 Index size() const
254 {
255 return this->_scalar_index.empty() ? Index(0) : this->_scalar_index.at(0);
256 }
257
260 {
261 return this->size();
262 }
263
266 {
267 return this->_scalar_index.empty() ? Index(0) : this->_scalar_index.at(1);
268 }
269
272 {
273 return this->num_nzes();
274 }
275
277 bool empty() const
278 {
279 return this->_scalar_index.empty() || (this->_scalar_index.at(0) == Index(0));
280 }
281
283 bool hollow() const
284 {
285 return this->_scalar_index.empty() || (this->_scalar_index.at(1) == Index(0));
286 }
287
290 {
291 XASSERT(!this->_elements.empty());
292 return this->_elements.front();
293 }
294
297 {
298 XASSERT(!this->_elements.empty());
299 return this->_elements.front();
300 }
301
304 {
305 if(this->_elements.empty())
306 return Memory::TypedView<DT_>();
307 return Memory::TypedView<DT_>(this->_elements.at(0).view(loc, Memory::Access::read));
308 }
309
312 {
313 if(this->_elements.empty())
314 return Memory::TypedView<DT_>();
315 return Memory::TypedView<DT_>(this->_elements.at(0).view(loc, Memory::Access::write));
316 }
317
320 {
321 if(this->_elements.empty())
322 return Memory::TypedView<DT_>();
323 return Memory::TypedView<DT_>(this->_elements.at(0).view(loc, Memory::Access::read_write));
324 }
325
336 {
337 if(this->_elements.empty())
338 return Memory::TypedView<DT_>();
339 return Memory::TypedView<DT_>(this->_elements.at(0).view(loc, acc));
340 }
341
344 {
345 return this->_indices.front();
346 }
347
350 {
351 return this->_indices.front();
352 }
353
356 {
357 if(this->_indices.empty())
358 return Memory::TypedView<IT_>();
359 return Memory::TypedView<IT_>(this->_indices.at(0).view(loc, Memory::Access::read));
360 }
361
364 {
365 if(this->_indices.empty())
366 return Memory::TypedView<IT_>();
367 return Memory::TypedView<IT_>(this->_indices.at(0).view(loc, Memory::Access::write));
368 }
369
372 {
373 if(this->_indices.empty())
374 return Memory::TypedView<IT_>();
375 return Memory::TypedView<IT_>(this->_indices.at(0).view(loc, Memory::Access::read_write));
376 }
377
388 {
389 if(this->_indices.empty())
390 return Memory::TypedView<IT_>();
391 return Memory::TypedView<IT_>(this->_indices.at(0).view(loc, acc));
392 }
393
394 bool element_exists(IndexType ind) const
395 {
396 const Memory::TypedView<IT_> idx_view = this->indices_view_r();
397 const IT_* pindices = idx_view.get_r();
398
399 return std::find(pindices, pindices + this->_scalar_index.at(1), ind) != pindices + this->_scalar_index.at(1);
400 }
401
407 DT_ max_abs_element() const
408 {
409 XASSERT(!this->empty());
410
411 TimeStamp ts_start;
412
413 DT_ result = Arch::MinMaxValueDense::template exec<DT_>(this->elements_arbiter(), this->num_nzes(), false, true);
414
415 TimeStamp ts_stop;
416 Statistics::add_time_reduction(ts_stop.elapsed(ts_start));
417
418 return result;
419 }
420
426 DT_ min_abs_element() const
427 {
428 XASSERT(!this->empty());
429
430 TimeStamp ts_start;
431
432 DT_ result = Arch::MinMaxValueDense::template exec<DT_>(this->elements_arbiter(), this->num_nzes(), true, true);
433
434 TimeStamp ts_stop;
435 Statistics::add_time_reduction(ts_stop.elapsed(ts_start));
436
437 return result;
438 }
439
445 DT_ max_element() const
446 {
447 XASSERT(!this->empty());
448
449 TimeStamp ts_start;
450
451 DT_ result = Arch::MinMaxValueDense::template exec<DT_>(this->elements_arbiter(), this->num_nzes(), false, false);
452
453 TimeStamp ts_stop;
454 Statistics::add_time_reduction(ts_stop.elapsed(ts_start));
455
456 return result;
457 }
458
464 DT_ min_element() const
465 {
466 XASSERT(!this->empty());
467
468 TimeStamp ts_start;
469
470 DT_ result = Arch::MinMaxValueDense::template exec<DT_>(this->elements_arbiter(), this->num_nzes(), true, false);
471
472 TimeStamp ts_stop;
473 Statistics::add_time_reduction(ts_stop.elapsed(ts_start));
474
475 return result;
476 }
477
484 DT_ max_rel_diff(const SparseVector & x) const
485 {
486 XASSERTM(x.num_nzes() == this->num_nzes(), "Nonzero count does not match!");
487 XASSERT(!this->empty());
488
489 TimeStamp ts_start;
490
491 DataType result = Arch::MaxRelDiffDense::template exec<DT_>(this->elements_arbiter(), x.elements_arbiter(), this->num_nzes());
492
493 TimeStamp ts_stop;
494 Statistics::add_time_reduction(ts_stop.elapsed(ts_start));
495
496 return result;
497 }
498
499
507 template <typename DT2_ = DT_, typename IT2_ = IT_>
508 void deserialize(std::vector<char> input)
509 {
510 this->template _deserialize<DT2_, IT2_>(FileMode::fm_sv, input);
511 }
512
523 template <typename DT2_ = DT_, typename IT2_ = IT_>
524 std::vector<char> serialize(const LAFEM::SerialConfig& config = SerialConfig()) const
525 {
526 return this->template _serialize<DT2_, IT2_>(FileMode::fm_sv, config);
527 }
528
535 void read_from(FileMode mode, const String& filename)
536 {
537 std::ios_base::openmode bin = std::ifstream::in | std::ifstream::binary;
538 if(mode == FileMode::fm_mtx)
539 bin = std::ifstream::in;
540 std::ifstream file(filename.c_str(), bin);
541 if (! file.is_open())
542 XABORTM("Unable to open Vector file " + filename);
543 read_from(mode, file);
544 file.close();
545 }
546
553 void read_from(FileMode mode, std::istream& file)
554 {
555 switch(mode)
556 {
558 [[fallthrough]];
559
560 case FileMode::fm_sv:
561 this->template _deserialize<double, std::uint64_t>(FileMode::fm_sv, file);
562 break;
563
564 case FileMode::fm_mtx:
565 {
566 this->clear();
567
568 Index rows;
569 Index nnz;
570 String line;
571 std::getline(file, line);
572 if (line.find("%%MatrixMarket matrix coordinate real general") == String::npos)
573 {
574 XABORTM("Input-file is not a compatible mtx-file");
575 }
576 while(!file.eof())
577 {
578 std::getline(file,line);
579 if (file.eof())
580 XABORTM("Input-file is empty");
581
582 String::size_type begin(line.find_first_not_of(" "));
583 if (line.at(begin) != '%')
584 break;
585 }
586 {
587 String::size_type begin(line.find_first_not_of(" "));
588 line.erase(0, begin);
589 String::size_type end(line.find_first_of(" "));
590 String srows(line, 0, end);
591 rows = (Index)atol(srows.c_str());
592 line.erase(0, end);
593
594 begin = line.find_first_not_of(" ");
595 line.erase(0, begin);
596 end = line.find_first_of(" ");
597 String scols(line, 0, end);
598 Index cols((Index)atol(scols.c_str()));
599 line.erase(0, end);
600 if (cols != 1)
601 XABORTM("Input-file is no sparse-vector-file");
602
603 begin = line.find_first_not_of(" ");
604 line.erase(0, begin);
605 end = line.find_first_of(" ");
606 String snnz(line, 0, end);
607 nnz = (Index)atol(snnz.c_str());
608 line.erase(0, end);
609 }
610
611 this->move(SparseVector<DT_, IT_>(rows, nnz));
612
613 Memory::TypedView<IT_> idx_view(this->indices_view_w());
614 Memory::TypedView<DT_> val_view(this->elements_view_w());
615
616 IT_ * pind(idx_view.get_w());
617 DT_ * pval(val_view.get_w());
618
619 while(!file.eof())
620 {
621 std::getline(file, line);
622 if (file.eof())
623 break;
624
625 String::size_type begin(line.find_first_not_of(" "));
626 line.erase(0, begin);
627 String::size_type end(line.find_first_of(" "));
628 String srow(line, 0, end);
629 IT_ row((IT_)atol(srow.c_str()));
630 --row;
631 line.erase(0, end);
632
633 begin = line.find_first_not_of(" ");
634 line.erase(0, begin);
635 end = line.find_first_of(" ");
636 line.erase(0, end);
637
638 begin = line.find_first_not_of(" ");
639 line.erase(0, begin);
640 end = line.find_first_of(" ");
641 String sval(line, 0, end);
642 DT_ tval((DT_)atof(sval.c_str()));
643
644 *pval = tval;
645 *pind = row;
646 ++pval;
647 ++pind;
648 }
649 }
650 break;
651
652 default:
653 XABORTM("Filemode not supported!");
654 }
655 }
656
663 void write_out(FileMode mode, const String& filename) const
664 {
665 std::ios_base::openmode bin = std::ofstream::out | std::ofstream::binary;
666 if(mode == FileMode::fm_mtx)
667 bin = std::ofstream::out;
668 std::ofstream file;
669 char* buff = nullptr;
670 if(mode == FileMode::fm_mtx)
671 {
672 buff = new char[LAFEM::file_out_stream_buffer_size];
673 file.rdbuf()->pubsetbuf(buff, LAFEM::file_out_stream_buffer_size);
674 }
675 file.open(filename.c_str(), bin);
676 if(! file.is_open())
677 XABORTM("Unable to open Matrix file " + filename);
678 write_out(mode, file);
679 file.close();
680 delete[] buff;
681 }
682
689 void write_out(FileMode mode, std::ostream& file) const
690 {
691 switch(mode)
692 {
694 [[fallthrough]];
695
696 case FileMode::fm_sv:
697 this->template _serialize<double, std::uint64_t>(FileMode::fm_sv, file);
698 break;
699
700 case FileMode::fm_mtx:
701 {
702
703 file << "%%MatrixMarket matrix coordinate real general\n";
704 file << this->size() << " " << 1 << " " << this->num_nzes() << "\n";
705 file << std::scientific << std::setprecision(Type::Traits<DT_>::format_precision);
706
707 const Index u_elem(this->num_nzes());
708 const Memory::TypedView<IT_> idx_view = this->indices_view_r();
709 const Memory::TypedView<DT_> val_view = this->elements_view_r();
710 for (Index i(0) ; i < u_elem ; ++i)
711 {
712 file << (idx_view[i]+1) << " " << 1 << " " << val_view[i] << "\n";
713 }
714 }
715 break;
716
717 default:
718 XABORTM("Filemode not supported!");
719 }
720 }
721
724 {
725 if (perm.size() == 0)
726 return;
727
728 std::map<IT_, DT_> xm;
729
730 auto ip = perm.inverse();
731 const Index * const inv_pos(ip.get_perm_pos());
732
735 for (Index i(0) ; i < this->num_nzes() ; ++i)
736 {
737 xm.emplace(IT_(inv_pos[xi[i]]), xv[i]);
738 }
739
740 Index k(0);
741 for(const auto& x : xm)
742 {
743 xi[k] = x.first;
744 xv[k] = x.second;
745 ++k;
746 }
747 }
748
754 static String name()
755 {
756 return "SparseVector";
757 }
758
768 bool same_layout(const SparseVector& other) const
769 {
770 if(this->size() != other.size())
771 return false;
772 if(this->num_nzes() != other.num_nzes())
773 return false;
774
775 if(this->num_nzes() == Index(0))
776 return true;
777
778 // check if the indices arbiters are the same
779 if(this->indices_arbiter() == other.indices_arbiter())
780 return true;
781
782 const Memory::TypedView<IT_> idx_a = this->indices_view_r();
783 const Memory::TypedView<IT_> idx_b = other.indices_view_r();
784
785 // check all array entries
786 const Index n = this->num_nzes();
787 for(Index i(0); i < n; ++i)
788 {
789 if(idx_a[i] != idx_b[i])
790 return false;
791 }
792
793 // okay, arrays are identical
794 return true;
795 }
796
806 void print(std::ostream & os, bool print_dense) const
807 {
808 if(this->empty())
809 {
810 os << "[]";
811 return;
812 }
813 const Memory::TypedView<IT_> idx_view(this->indices_view_r());
814 const Memory::TypedView<DT_> val_view(this->elements_view_r());
815 const Index n = this->size();
816 const Index nze = this->num_nzes();
817 os << "[";
818 Index k = 0;
819 for (Index i(0) ; i < nze ; ++i)
820 {
821 if(print_dense)
822 {
823 for(; k < idx_view[i]; ++k)
824 os << " " << DT_(0);
825 }
826 else
827 os << " " << idx_view[i] << ':';
828
829 os << " " << val_view[i];
830 ++k;
831 }
832 if(print_dense)
833 {
834 for(; k < n; ++k)
835 os << " " << DT_(0);
836 }
837 os << "]";
838 }
839
846 friend std::ostream & operator<< (std::ostream & os, const SparseVector & b)
847 {
848 b.print(os, true);
849 return os;
850 }
851 }; // class SparseVector<...>
852
853#ifdef FEAT_EICKT
854 extern template class SparseVector<float, std::uint32_t>;
855 extern template class SparseVector<double, std::uint32_t>;
856 extern template class SparseVector<float, std::uint64_t>;
857 extern template class SparseVector<double, std::uint64_t>;
858#endif
859 } // namespace LAFEM
860} // namespace FEAT
#define XABORTM(msg)
Abortion macro definition with custom message.
Definition: assertion.hpp:192
#define XASSERT(expr)
Assertion macro definition.
Definition: assertion.hpp:262
#define XASSERTM(expr, msg)
Assertion macro definition with custom message.
Definition: assertion.hpp:263
FEAT Kernel base header.
Index size() const
returns the size of the permutation
Permutation inverse() const
Computes the inverse permutation.
Container base class.
Definition: container.hpp:224
void move(Container &&source)
Assignment move operation.
Definition: container.hpp:1007
void clone(const Container &source, CloneMode clone_mode=CloneMode::Weak)
Clone operation.
Definition: container.hpp:904
std::vector< Index > _elements_size
List of corresponding datatype array sizes.
Definition: container.hpp:234
std::vector< Memory::Arbiter > _indices
List of pointers to all IT_ dependent arrays.
Definition: container.hpp:232
virtual void clear()
Free all allocated arrays.
Definition: container.hpp:885
std::vector< Index > _indices_size
List of corresponding IT_ array sizes.
Definition: container.hpp:236
std::vector< Memory::Arbiter > _elements
List of pointers to all datatype dependent arrays.
Definition: container.hpp:230
std::vector< Index > _scalar_index
List of scalars with datatype index.
Definition: container.hpp:238
Dense data vector class template.
Memory::Arbiter & elements_arbiter()
Returns a reference to the element array arbiter.
Index size() const
Returns the size of this vector, i.e. its number of entries.
Config class for serialize parameter.
Definition: container.hpp:50
Sparse vector class template.
void write_out(FileMode mode, const String &filename) const
Write out vector to file.
Index num_nzes() const
Returns the number of non-zero elements in the sparse vector.
Memory::TypedView< DT_ > elements_view(Memory::Location loc, Memory::Access acc)
Creates a memory view for the elements array.
SparseVector(FileMode mode, std::istream &file)
Constructor.
DT_ max_abs_element() const
Retrieve the absolute maximum value of this vector.
const Memory::Arbiter & elements_arbiter() const
Returns a const reference to the elements memory arbiter.
static String name()
Returns a descriptive string.
void read_from(FileMode mode, const String &filename)
Read in vector from file.
SparseVector(SparseVector &&other)
Move Constructor.
void deserialize(std::vector< char > input)
Deserialization of complete container entity.
DT_ min_element() const
Retrieve the minimum value of this vector.
void print(std::ostream &os, bool print_dense) const
Prints this vector in human readable format to an output stream.
void read_from(FileMode mode, std::istream &file)
Read in vector from stream.
bool same_layout(const SparseVector &other) const
Checks whether the layout of this vector is identical to another sparse vector.
Memory::Arbiter & elements_arbiter()
Returns a reference to the elements memory arbiter.
SparseVector(Index size_in, DenseVector< DT_, IT_ > &elements_in, DenseVector< IT_, IT_ > &indices_in)
Constructor.
void clone(const SparseVector< DT2_, IT2_ > &other, CloneMode clone_mode=CloneMode::Deep)
Clone operation.
Memory::TypedView< DT_ > elements_view_r(Memory::Location loc=Memory::Location::main) const
Creates a read-only memory view for the elements array for a given memory location.
DT_ DataType
Our datatype.
SparseVector(FileMode mode, const String &filename)
Constructor.
SparseVector(Index size_in, Index nnze_in)
Constructor.
Memory::TypedView< DT_ > elements_view_rw(Memory::Location loc=Memory::Location::main)
Creates a read-write memory view for the elements array for a given memory location.
SparseVector clone(CloneMode clone_mode=CloneMode::Deep) const
Clone operation.
void convert(const SparseVector< DT2_, IT2_ > &other)
Conversion method.
bool hollow() const
Checks whether the sparse vector does not contain any non-zero elements.
std::vector< char > serialize(const LAFEM::SerialConfig &config=SerialConfig()) const
Serialization of complete container entity.
Index size_raw() const
Returns the raw size of the sparse vector.
SparseVector & operator=(SparseVector &&other)
Assignment move operator.
SparseVector(std::vector< char > input)
Constructor.
Memory::TypedView< IT_ > indices_view_w(Memory::Location loc=Memory::Location::main)
Creates a write-only memory view for the indices array for a given memory location.
DT_ min_abs_element() const
Retrieve the absolute minimum value of this vector.
Index num_nzes_raw() const
Returns the raw number of non-zero elements in the sparse vector.
DT_ max_element() const
Retrieve the maximum value of this vector.
Memory::TypedView< DT_ > elements_view_w(Memory::Location loc=Memory::Location::main)
Creates a write-only memory view for the elements array for a given memory location.
DT_ max_rel_diff(const SparseVector &x) const
Retrieve the maximum relative difference of this vector and another one y.max_rel_diff(x) returns .
Memory::TypedView< IT_ > indices_view_rw(Memory::Location loc=Memory::Location::main)
Creates a read-write memory view for the indices array for a given memory location.
Index size() const
Returns the native size of the sparse vector.
const Memory::Arbiter & indices_arbiter() const
Returns a const reference to the indices memory arbiter.
Memory::TypedView< IT_ > indices_view(Memory::Location loc, Memory::Access acc)
Creates a memory view for the indices array.
Memory::TypedView< IT_ > indices_view_r(Memory::Location loc=Memory::Location::main) const
Creates a read-only memory view for the indices array for a given memory location.
IT_ IndexType
Our indextype.
void permute(Adjacency::Permutation &perm)
Permute vector according to the given Permutation.
Memory::Arbiter & indices_arbiter()
Returns a reference to the indices memory arbiter.
friend std::ostream & operator<<(std::ostream &os, const SparseVector &b)
SparseVector streaming operator.
void write_out(FileMode mode, std::ostream &file) const
Write out vector to file.
bool empty() const
Checks whether the size of the sparse vector is zero.
Memory arbiter class.
Arbiter attach(std::size_t offset=0u, std::size_t size=full_size) const
Creates a new arbiter that is attached to the same memory block as this arbiter.
Typed memory view class.
const T_ * get_r() const
Returns a const typed pointer to the array that grants read access.
T_ * get_w()
Returns a typed pointer to the array that grants write (and read) access.
String class implementation.
Definition: string.hpp:47
Time stamp class.
Definition: time_stamp.hpp:54
double elapsed(const TimeStamp &before) const
Calculates the time elapsed between two time stamps.
Definition: time_stamp.hpp:100
constexpr std::size_t file_out_stream_buffer_size
OutStreamBufferSize.
Definition: base.hpp:105
Access
Memory access enumeration.
@ read_write
read-write access
@ read
read-only access
@ write
write-only access (see attention note above)
Location
Memory location enumeration.
FEAT namespace.
Definition: adjactor.hpp:12
std::uint64_t Index
Index data type.
basic Type Traits struct
Definition: type_traits.hpp:73