kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
Loading...
Searching...
No Matches
kodama::MatrixView Struct Reference

#include <kodama.hpp>

Public Member Functions

 MatrixView ()=default
 
 MatrixView (const double *data_ptr, std::size_t n_rows, std::size_t n_cols)
 
 MatrixView (const float *data_ptr, std::size_t n_rows, std::size_t n_cols)
 
float value_float (std::size_t i, std::size_t j) const
 
double operator() (std::size_t i, std::size_t j) const
 

Public Attributes

const void * data = nullptr
 
std::size_t rows = 0
 
std::size_t cols = 0
 
MatrixValueType value_type = MatrixValueType::Float64
 

Detailed Description

Definition at line 114 of file kodama.hpp.

Constructor & Destructor Documentation

◆ MatrixView() [1/3]

kodama::MatrixView::MatrixView ( )
default

◆ MatrixView() [2/3]

kodama::MatrixView::MatrixView ( const double *  data_ptr,
std::size_t  n_rows,
std::size_t  n_cols 
)
inline

Definition at line 122 of file kodama.hpp.

◆ MatrixView() [3/3]

kodama::MatrixView::MatrixView ( const float *  data_ptr,
std::size_t  n_rows,
std::size_t  n_cols 
)
inline

Definition at line 125 of file kodama.hpp.

Member Function Documentation

◆ operator()()

double kodama::MatrixView::operator() ( std::size_t  i,
std::size_t  j 
) const
inline

Definition at line 136 of file kodama.hpp.

◆ value_float()

float kodama::MatrixView::value_float ( std::size_t  i,
std::size_t  j 
) const
inline

Definition at line 128 of file kodama.hpp.

Member Data Documentation

◆ cols

std::size_t kodama::MatrixView::cols = 0

Definition at line 117 of file kodama.hpp.

◆ data

const void* kodama::MatrixView::data = nullptr

Definition at line 115 of file kodama.hpp.

◆ rows

std::size_t kodama::MatrixView::rows = 0

Definition at line 116 of file kodama.hpp.

◆ value_type

MatrixValueType kodama::MatrixView::value_type = MatrixValueType::Float64

Definition at line 118 of file kodama.hpp.


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