MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ validate_matrix_dimensions()

void MayaFlux::Kakshya::EigenInsertion::validate_matrix_dimensions ( const Eigen::MatrixXd &  matrix,
MatrixInterpretation  interpretation 
) const
private

Definition at line 30 of file EigenInsertion.cpp.

33{
34 const auto expected_rows = get_expected_rows(interpretation);
35
36 if (matrix.rows() != expected_rows) {
37 error<std::invalid_argument>(
40 std::source_location::current(),
41 "{} interpretation requires {} rows, but matrix has {} rows",
42 Reflect::enum_to_string(interpretation),
43 expected_rows,
44 matrix.rows());
45 }
46}
static constexpr Eigen::Index get_expected_rows(MatrixInterpretation interp)
@ Runtime
General runtime operations (default fallback)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
constexpr std::string_view enum_to_string(EnumType value) noexcept
Universal enum to string converter using magic_enum (original case)

References MayaFlux::Reflect::enum_to_string(), get_expected_rows(), MayaFlux::Journal::Kakshya, and MayaFlux::Journal::Runtime.

Referenced by insert_matrix().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: