Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
packed_matrix_example.cc File Reference

A matrix whose columns are bit fields sized from integer ranges. More...

#include <tpl_packed_matrix.H>
#include <tpl_sort_utils.H>
#include <array>
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <stdexcept>
Include dependency graph for packed_matrix_example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

A matrix whose columns are bit fields sized from integer ranges.

Build: cmake –build build –target packed_matrix_example Run: ./build/Examples/packed_matrix_example

Declares a matrix of six columns from the range of each one, shows the bits that the compiler gives to each column, and reads and writes it through the unchecked and the checked accesses. Then it writes whole rows and sorts them: rows compare as their tuples of values do. Last, a matrix of 200 columns that code describes, with Packed_Matrix_Of.

Definition in file packed_matrix_example.cc.

Function Documentation

◆ main()