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

eagine::math::matrix< T, C, R, RM, V > Struct Template Reference

Basic RxC matrix implementation template. More...

#include <eagine/math/matrix.hpp>

Public Types

using element_type = T
 Element type.
 

Public Member Functions

auto operator[] (int i) const noexcept -> const vector< T, RM ? C :R, V >
 Subscript operator.
 

Static Public Member Functions

template<typename P >
static auto from (const P *dt, span_size_t sz) noexcept -> matrix
 Creates a matrix from data pointer and size.
 
template<typename P , int M, int N, bool W>
static auto from (const matrix< P, M, N, RM, W > &m) noexcept -> std::enable_if_t<(C<=M) &&(R<=N), matrix >
 Creates a matrix from another matrix type.
 

Detailed Description

template<typename T, int C, int R, bool RM, bool V>
struct eagine::math::matrix< T, C, R, RM, V >

Basic RxC matrix implementation template.

See also
tmat
Note
This is a base class, typically tmat should be used in client code.

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).