11#ifndef MPS_MONOMIAL_MATRIX_POLY_H_
12#define MPS_MONOMIAL_MATRIX_POLY_H_
20#include <mps/polynomial.h>
22#define MPS_MONOMIAL_MATRIX_POLY(t) (MPS_POLYNOMIAL_CAST (mps_monomial_matrix_poly, t))
23#define MPS_IS_MONOMIAL_MATRIX_POLY(t) \
24 (mps_polynomial_check_type (t, "mps_monomial_matrix_poly"))
31#define MPS_MONOMIAL_MATRIX_POLY_HESSENBERG 0x0001
141void mps_monomial_matrix_poly_free (
mps_context * ctx,
151void mps_monomial_matrix_poly_add_flags (
mps_context * ctx,
162void mps_monomial_matrix_poly_clear_flags (
mps_context * ctx,
175void mps_monomial_matrix_poly_set_coefficient_d (
mps_context * ctx,
192void mps_monomial_matrix_poly_set_coefficient_q (
mps_context * ctx,
209mps_boolean mps_monomial_matrix_poly_meval (
mps_context * ctx,
228mps_monomial_matrix_poly_raise_data (
mps_context * ctx,
this struct holds the state of the mps computation
Definition context.h:60
This is the struct that holds all the data of the matrix polynomial.
Definition monomial-matrix-poly.h:39
cplx_t * P
The double version of the polynomial coefficients.
Definition monomial-matrix-poly.h:77
mpq_t * mpqPi
The rational version of the polynomial coefficients. This is used only if the structure of the monomi...
Definition monomial-matrix-poly.h:100
mpc_t * mP
The multiprecision version of the polynomial coefficients.
Definition monomial-matrix-poly.h:82
int flags
Additional properties of this polynomial. Examples are: MPS_MONOMIAL_MATRIX_POLY_HESSENBERG,...
Definition monomial-matrix-poly.h:109
mps_polynomial methods
Implementation of the overloaded methods for the matrix polynomial.
Definition monomial-matrix-poly.h:44
int degree
Degree of the matrix polynomial. Please note that this values if different from the degree value in t...
Definition monomial-matrix-poly.h:69
int m
The size of the matrices that compose the matrix polynomial.
Definition monomial-matrix-poly.h:62
mps_boolean monic
If this flag is set to true then the higher degree term of the polynomial is the identity matrix and ...
Definition monomial-matrix-poly.h:56
mpq_t * mpqPr
The rational version of the polynomial coefficients. This is used only if the structure of the monomi...
Definition monomial-matrix-poly.h:91
Struct that represents an abstract polynomial. All the other real polynomial implementations (such as...
Definition polynomial.h:111