akreon-convex
Typed convex modeling, conic canonicalization, and primal-dual optimization in C++26.
Loading...
Searching...
No Matches
fixed_buffer_writer.hpp File Reference
#include <array>
#include <cstddef>
#include <cstdio>
#include "akreon/linalg/assert.hpp"
#include "akreon/linalg/linalg.hpp"
Include dependency graph for fixed_buffer_writer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  convex::debug::FixedBufferWriter
 Small no-heap append-only writer for debug formatting. More...
 

Namespaces

namespace  convex
 
namespace  convex::debug
 

Functions

template<std::size_t N>
FixedBufferWriter convex::debug::make_writer (char(&out)[N])
 
template<linalg::Field T, std::size_t N>
bool convex::debug::append_array_slice (FixedBufferWriter &w, const std::array< T, N > &v, std::size_t size)
 
template<linalg::VectorContainer Vec>
bool convex::debug::append_vector (FixedBufferWriter &w, const Vec &v)
 
template<linalg::MatrixContainer Mat>
bool convex::debug::append_matrix (FixedBufferWriter &w, const Mat &M)
 
template<linalg::VectorContainer Vec>
std::size_t convex::debug::vector_to_cstr (const Vec &v, char *out, std::size_t out_size)
 
template<linalg::MatrixContainer Mat>
std::size_t convex::debug::matrix_to_cstr (const Mat &M, char *out, std::size_t out_size)