Macaulay2 Engine
Loading...
Searching...
No Matches
ConcreteVectorArithmetic< RingType > Class Template Reference

#include <VectorArithmetic.hpp>

Public Types

using FieldElement = typename RingType::ElementType
using ElementArrayContainer = typename RingType::ElementContainerType

Public Member Functions

 ConcreteVectorArithmetic ()
 ConcreteVectorArithmetic (const Ring *origR, const RingType *R)
const Ringring () const
const VectorArithmeticStatsstats () const
ElementArray copyElementArray (const ElementArray &sparse) const
ElementArray allocateElementArray (ComponentIndex nelems) const
ElementArray allocateElementArray () const
void deallocateElementArray (ElementArray &coeffs) const
size_t size (const ElementArray &coeffs) const
 Linear Algebra /////.
void fillDenseArray (ElementArray &dense, const ElementArray &sparse, const Range< const int > &comps) const
void denseCancelFromSparse (ElementArray &dense, const ElementArray &sparse, const Range< const int > &comps) const
void denseCancelFromSparse (ElementArray &dense, const ElementArray &sparse, const Range< const int > &comps, ElementArray &result_multiplier) const
int denseNextNonzero (ElementArray &dense, int first, int last) const
void denseToSparse (ElementArray &dense, ElementArray &sparse, Range< int > &comps, int first, int last, MemoryBlock &monomialSpace) const
template<typename LockType>
void safeDenseToSparse (ElementArray &dense, ElementArray &sparse, Range< int > &comps, int first, int last, MemoryBlock &monomialSpace, LockType &lock) const
void denseToSparse (ElementArray &dense, ElementArray &sparse, int *&comps, int first, int last) const
void setZeroInRange (ElementArray &dense, int first, int last) const
void makeMonic (ElementArray &sparse) const
template<typename Container>
void appendToContainer (const ElementArray &sparse, Container &c) const
template<typename Container>
ElementArray elementArrayFromContainer (const Container &c) const
template<typename Container>
ElementArray elementArrayFromContainerOfLongs (const Container &c) const
template<typename Container>
ElementArray elementArrayFromContainerOf_mpz_class (const Container &c) const
ring_elem ringElemFromElementArray (const ElementArray &sparse, int index) const
std::ostream & displayElement (std::ostream &o, const ElementArray &v, int index) const
std::ostream & displayElementArray (std::ostream &o, const ElementArray &v) const
std::ostream & displayAsDenseArray (std::ostream &o, size_t len, const ElementArray &v, const Range< const int > &comps) const
long to_modp_long (const ElementArray &coeffs, size_t loc) const
void pushBackOne (ElementArray &coeffs) const
 Append support /////.
void pushBackMinusOne (ElementArray &coeffs) const
void pushBackElement (ElementArray &coeffs, const ElementArray &take_from_here, size_t loc) const
void pushBackNegatedElement (ElementArray &coeffs, const ElementArray &take_from_here, size_t loc) const
void from_ring_elem (ElementArray &coeffs, ring_elem numer, ring_elem denom) const
long to_modp_long (const ElementArray &coeffs, size_t loc) const
long to_modp_long (const ElementArray &coeffs, size_t loc) const
long to_modp_long (const ElementArray &coeffs, size_t loc) const
void from_ring_elem (ElementArray &coeffs, ring_elem numer, ring_elem denom) const

Private Member Functions

ElementArrayContainerelementArray (const ElementArray &f) const

Private Attributes

const RingmOriginalRing
const RingType * mRing
VectorArithmeticStats mStats

Friends

class VectorArithmetic

Detailed Description

template<typename RingType>
class ConcreteVectorArithmetic< RingType >

Definition at line 141 of file VectorArithmetic.hpp.


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