lin
Functions
constants.hpp File Reference
#include "stream_constants.hpp"
#include "../core.hpp"
#include <limits>
#include <type_traits>

Go to the source code of this file.

Functions

template<typename T , size_t R, size_t C, size_t MR = R, size_t MC = C>
constexpr auto lin::consts (T t, size_t r=MR, size_t c=MC)
 Creates a constants stream. More...
 
template<class C , std::enable_if_t< internal::has_traits< C >::value, size_t > = 0>
constexpr auto lin::consts (typename C::Traits::elem_t t, size_t r=C::Traits::max_rows, size_t c=C::Traits::max_cols)
 Creates a constants stream. More...
 
template<typename T , size_t R, size_t C, size_t MR = R, size_t MC = C>
constexpr auto lin::nans (size_t r=MR, size_t c=MC)
 Creates a stream of not-a-number values. More...
 
template<class C , std::enable_if_t< internal::has_traits< C >::value, size_t > = 0>
constexpr auto lin::nans (size_t r=C::Traits::max_rows, size_t c=C::Traits::max_cols)
 Creates a stream of not-a-number values. More...
 
template<typename T , size_t R, size_t C, size_t MR = R, size_t MC = C>
constexpr auto lin::ones (size_t r=MR, size_t c=MC)
 Creates a ones stream. More...
 
template<class C , std::enable_if_t< internal::has_traits< C >::value, size_t > = 0>
constexpr auto lin::ones (size_t r=C::Traits::max_rows, size_t c=C::Traits::max_cols)
 Creates a ones stream. More...
 
template<typename T , size_t R, size_t C, size_t MR = R, size_t MC = C>
constexpr auto lin::zeros (size_t r=MR, size_t c=MC)
 Creates a zeros stream. More...
 
template<class C , std::enable_if_t< internal::has_traits< C >::value, size_t > = 0>
constexpr auto lin::zeros (size_t r=C::Traits::max_rows, size_t c=C::Traits::max_cols)
 Creates a zeros stream. More...
 

Detailed Description

Author
Kyle Krol