Mutable column-major matrix view used by callback APIs.
More...
#include <core.hpp>
|
| constexpr | MatrixRef () noexcept=default |
| constexpr | MatrixRef (double *data, std::size_t rows, std::size_t cols, std::size_t leading_dim) noexcept |
| constexpr double * | data () const noexcept |
| constexpr std::size_t | rows () const noexcept |
| constexpr std::size_t | cols () const noexcept |
| constexpr std::size_t | leading_dim () const noexcept |
| double & | operator() (std::size_t row, std::size_t col) const noexcept |
Mutable column-major matrix view used by callback APIs.
MatrixRef is a writable borrowed output buffer. It never owns memory. The current callback path uses column-major output buffers with shape (rows x cols) and storage index row + col * leading_dim.
for (std::size_t j = 0; j < s.
size(); ++j) {
q(0, j) = s[j];
dq(0, j) = 1.0;
ddq(0, j) = 0.0;
}
};
Mutable column-major matrix view used by callback APIs.
Non-owning view of a contiguous one-dimensional array.
constexpr std::size_t size() const noexcept
Definition at line 287 of file core.hpp.
◆ MatrixRef() [1/2]
| copp::MatrixRef::MatrixRef |
( |
| ) |
|
|
constexprdefaultnoexcept |
◆ MatrixRef() [2/2]
| copp::MatrixRef::MatrixRef |
( |
double * | data, |
|
|
std::size_t | rows, |
|
|
std::size_t | cols, |
|
|
std::size_t | leading_dim ) |
|
inlineconstexprnoexcept |
◆ column_major()
| constexpr MatrixRef copp::MatrixRef::column_major |
( |
double * | data, |
|
|
std::size_t | rows, |
|
|
std::size_t | cols ) |
|
inlinestaticconstexprnoexcept |
◆ strided_column_major()
| constexpr MatrixRef copp::MatrixRef::strided_column_major |
( |
double * | data, |
|
|
std::size_t | rows, |
|
|
std::size_t | cols, |
|
|
std::size_t | leading_dim ) |
|
inlinestaticconstexprnoexcept |
◆ data()
| double * copp::MatrixRef::data |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ rows()
| std::size_t copp::MatrixRef::rows |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ cols()
| std::size_t copp::MatrixRef::cols |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ leading_dim()
| std::size_t copp::MatrixRef::leading_dim |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator()()
| double & copp::MatrixRef::operator() |
( |
std::size_t | row, |
|
|
std::size_t | col ) const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: