OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::math::scalar< T, N, V > Struct Template Reference

Basic scalar implementation template. More...

#include <eagine/math/scalar.hpp>

Public Types

using value_type = T
 The scalar element type.
 
using is_vectorized = vect::has_vect_data_t< T, N, V >
 Indicates if the implementation uses SIMD extensions.
 

Public Member Functions

constexpr operator T () const noexcept
 Implicit cast to the value type.
 
auto operator= (T v) noexcept -> scalar &
 Assignment from the value type.
 

Static Public Member Functions

static constexpr auto make (T v) noexcept
 Creates a scalar with the specified value.
 

Detailed Description

template<typename T, int N, bool V>
struct eagine::math::scalar< T, N, V >

Basic scalar implementation template.

See also
tvec
Note
This class is used in vectorizer vector-scalar operations.

The documentation for this struct was generated from the following files:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).