OpenKalman
OpenKalman::triangle_type_of< T > Struct Template Reference

The triangle_type associated with an indexible object. More...

#include <triangle_type_of.hpp>

Inheritance diagram for OpenKalman::triangle_type_of< T >:
Inheritance graph
[legend]
Collaboration diagram for OpenKalman::triangle_type_of< T >:
Collaboration graph
[legend]

Detailed Description

template<typename T>
struct OpenKalman::triangle_type_of< T >

The triangle_type associated with an indexible object.

If the argument is not triangular, the result will be triangle_type::none. A triangular matrix need not be square_shaped, but it must be zero either above or below the diagonal (or both). For rank >2 tensors, this must be applicable on every rank-2 slice comprising dimensions 0 and 1.

Note
One-dimensional matrices or vectors are considered to be triangular, and a vector is triangular if every component other than its first component is zero.

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