ContentsFoundations to FrontierBezhig

graduate_code/cpp/starters/matrix.hpp

All lab code. Download this file.

#pragma once
#include <cstddef>
#include <stdexcept>
#include <vector>
namespace graduate {
// Exercise G06.06. Preserve the signatures; implement validation and both methods.
inline void validate(const std::vector<double>&,const std::vector<double>&,
                     std::size_t,std::size_t,std::size_t) {
    throw std::logic_error("Implement dimension and finite-input checks");
}
inline void check_result(const std::vector<double>&) {
    throw std::logic_error("Implement finite-result checks");
}
inline std::vector<double> naive(const std::vector<double>&,
                                 const std::vector<double>&,
                                 std::size_t,std::size_t,std::size_t) {
    throw std::logic_error("Implement the direct reference method");
}
inline std::vector<double> blocked(const std::vector<double>&,
                                   const std::vector<double>&,
                                   std::size_t,std::size_t,std::size_t,
                                   std::size_t=24) {
    throw std::logic_error("Implement the bounded blocked method");
}
}