linbox
Public Types | Public Member Functions
Sliced< _Domain > Class Template Reference

The Sliced Matrix class _Domain must be a GF(3) rep, BaseT must be an unsigned int type. More...

#include <dense-sliced.h>

+ Inheritance diagram for Sliced< _Domain >:
+ Collaboration diagram for Sliced< _Domain >:

Public Types

typedef DenseMat< SlicedBase< _Domain::Word_T > > Self_t
 Self type.
 

Public Member Functions

void submatrix (const DenseMat &A, size_t i, size_t j, size_t m, size_t n)
 Set this to be an m by n submatrix of A with upper left corner at i,j position of A. More...
 
std::istream & read (std::istream &file, const Field &field)
 Read the matrix from an input stream. More...
 
std::ostream & write (std::ostream &os, const Field &field, bool mapleFormat=false) const
 Write the matrix to an output stream. More...
 
std::ostream & write (std::ostream &os, bool mapleFormat=false) const
 Write the matrix to an output stream. More...
 

Detailed Description

template<class _Domain>
class LinBox::Sliced< _Domain >

The Sliced Matrix class _Domain must be a GF(3) rep, BaseT must be an unsigned int type.

TODO more docs, discuss row/col slicing

Member Function Documentation

◆ submatrix()

void submatrix ( const DenseMat< SlicedBase< _Domain::Word_T > > &  A,
size_t  i,
size_t  j,
size_t  m,
size_t  n 
)
inlineinherited

Set this to be an m by n submatrix of A with upper left corner at i,j position of A.

Requires i+m <= A.rowdim(), j+n <= A.coldim().

For instance, B.submatrix(A, i, 0, 1, A.coldim()) makes B the i-th row of A.

◆ read()

std::istream & read ( std::istream &  file,
const Field &  field 
)
inherited

Read the matrix from an input stream.

Parameters
fileInput stream from which to read
field

◆ write() [1/2]

std::ostream & write ( std::ostream &  os,
const Field &  field,
bool  mapleFormat = false 
) const
inherited

Write the matrix to an output stream.

Parameters
osOutput stream to which to write
field
mapleFormatwrite in Maple(r) format ?

◆ write() [2/2]

std::ostream & write ( std::ostream &  os,
bool  mapleFormat = false 
) const
inherited

Write the matrix to an output stream.

This a raw version of write(os,F) (no field is given).

Parameters
osOutput stream to which to write
mapleFormatwrite in Maple(r) format ?

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