MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::io::detail::spy_grid< Mag > Struct Template Reference

Binned grid: for each of W*H pixel cells, the non-zero count and the largest |value| that fell in it. More...

#include <spy.hpp>

Public Attributes

std::size_t W = 0
std::size_t H = 0
std::vector< std::size_t > counts
 non-zeros per cell
std::vector< Mag > maxabs
 max |value| per cell

Detailed Description

template<typename Mag>
struct mtl::io::detail::spy_grid< Mag >

Binned grid: for each of W*H pixel cells, the non-zero count and the largest |value| that fell in it.

Member Data Documentation

◆ counts

template<typename Mag>
std::vector<std::size_t> mtl::io::detail::spy_grid< Mag >::counts

non-zeros per cell

◆ H

template<typename Mag>
std::size_t mtl::io::detail::spy_grid< Mag >::H = 0

◆ maxabs

template<typename Mag>
std::vector<Mag> mtl::io::detail::spy_grid< Mag >::maxabs

max |value| per cell

◆ W

template<typename Mag>
std::size_t mtl::io::detail::spy_grid< Mag >::W = 0

The documentation for this struct was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/io/spy.hpp