linbox  1
Public Member Functions
Companion< _Field > Struct Template Reference

Companion matrix of a monic polynomial. More...

#include <companion.h>

Inheritance diagram for Companion< _Field >:
TriplesBB< _Field > BlackboxInterface

List of all members.

Public Member Functions

template<class Polynomial >
 Companion (const Field &F=Field(), const Polynomial &P=Polynomial(1))
 This is the n by n companion matrix of a given polynomial of degree n.
 Companion (const Field &F, size_t n, typename Field::RandIter r)
 This constructs a random companion matrix.

Additional Inherited Members

- Protected Attributes inherited from TriplesBB< _Field >
std::vector< Element > _values
 _values contains the nonzero elements of the BlackBox
std::vector< size_t > _RowV
 _RowV & _ColV are vectors containing the row & column indices
size_t _rows
 The number of rows, columns.

Detailed Description

template<class _Field>
struct LinBox::Companion< _Field >

Companion matrix of a monic polynomial.


Constructor & Destructor Documentation

Companion ( const Field &  F,
size_t  n,
typename Field::RandIter  r 
)
inline

This constructs a random companion matrix.

Builds n by n matrix from degree n monic poly with other coefficients random.


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