aboutsummaryrefslogtreecommitdiff
path: root/include/linalg_error.hpp
blob: 8258899d2acc2bc64b837472b58a3ad768c58394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <stdexcept>
#include <string>

namespace linalg {

class LinAlgError : public std::runtime_error {
public:
    using std::runtime_error::runtime_error;
};

class DimensionMismatchError : public LinAlgError {
public:
    explicit DimensionMismatchError(const std::string& message)
        : LinAlgError(message) {}
};

}  // namespace linalg