Expression Templates Library (ETL)
strictly_upper_exception.hpp
Go to the documentation of this file.
1 //=======================================================================
2 // Copyright (c) 2014-2023 Baptiste Wicht
3 // Distributed under the terms of the MIT License.
4 // (See accompanying file LICENSE or copy at
5 // http://opensource.org/licenses/MIT)
6 //=======================================================================
7 
13 #pragma once
14 
15 #include <exception>
16 
17 namespace etl {
18 
24 struct strictly_upper_exception : std::exception {
28  const char* what() const noexcept override {
29  return "Invalid assignment to a strictly upper triangular matrix";
30  }
31 };
32 
33 } //end of namespace etl
Exception that is thrown when an operation is made to a strictly upper triangular matrix that would r...
Definition: strictly_upper_exception.hpp:24
Root namespace for the ETL library.
Definition: adapter.hpp:15
const char * what() const noexcept override
Returns a description of the exception.
Definition: strictly_upper_exception.hpp:28