1 #include "../../../include/common/monolish_dense.hpp" 
    2 #include "../../../include/common/monolish_logger.hpp" 
    3 #include "../../../include/common/monolish_matrix.hpp" 
    4 #include "../../internal/monolish_internal.hpp" 
    9 template <
typename T> T 
Dense<T>::at(
const size_t i, 
const size_t j)
 const {
 
   10   if (get_device_mem_stat()) {
 
   11     throw std::runtime_error(
"at() Error, GPU vector cant use operator[]");
 
   14   assert(i <= get_row());
 
   15   assert(j <= get_col());
 
   17   return val[get_col() * i + j];
 
   26   if (get_device_mem_stat()) {
 
   27     throw std::runtime_error(
"insert() Error, GPU vector cant use operator[]");
 
   30   assert(i <= get_row());
 
   31   assert(j <= get_col());
 
   33   val[get_col() * i + j] = Val;