Macaulay2 Engine
Loading...
Searching...
No Matches
matrix.cpp File Reference
#include "interface/matrix.h"
#include <M2/math-include.h>
#include "NAG.hpp"
#include "SLP-defs.hpp"
#include "buffer.hpp"
#include "dmat.hpp"
#include "error.h"
#include "exceptions.hpp"
#include "freemod.hpp"
#include "interface/NAG.h"
#include "interface/gmp-util.h"
#include "interface/monoid.h"
#include "mat.hpp"
#include "matrix-con.hpp"
#include "matrix.hpp"
#include "mutablemat-defs.hpp"
#include "relem.hpp"
#include "ring.hpp"
#include "ringelem.hpp"
#include "BasicPolyList.hpp"
#include "BasicPolyListParser.hpp"

Go to the source code of this file.

Namespaces

namespace  M2

Functions

const FreeModuleIM2_Matrix_get_target (const Matrix *M)
const FreeModuleIM2_Matrix_get_source (const Matrix *M)
int IM2_Matrix_n_rows (const Matrix *M)
int IM2_Matrix_n_cols (const Matrix *M)
M2_arrayint IM2_Matrix_get_degree (const Matrix *M)
M2_string IM2_Matrix_to_string (const Matrix *M)
unsigned int rawMatrixHash (const Matrix *M)
const RingElementIM2_Matrix_get_entry (const Matrix *M, int r, int c)
engine_RawRingElementArrayArrayOrNull IM2_Matrix_get_entries (const Matrix *M)
const MatrixIM2_Matrix_identity (const FreeModule *F, int preference)
const MatrixIM2_Matrix_zero (const FreeModule *F, const FreeModule *G, int preference)
const MatrixIM2_Matrix_make1 (const FreeModule *target, int ncols, const engine_RawRingElementArray M, int preference)
const MatrixIM2_Matrix_make2 (const FreeModule *target, const FreeModule *source, M2_arrayint deg, const engine_RawRingElementArray M, int preference)
const MatrixIM2_Matrix_make_sparse1 (const FreeModule *target, int ncols, M2_arrayint rows, M2_arrayint cols, const engine_RawRingElementArray entries, int preference)
const MatrixIM2_Matrix_make_sparse2 (const FreeModule *target, const FreeModule *source, M2_arrayint deg, M2_arrayint rows, M2_arrayint cols, const engine_RawRingElementArray entries, int preference)
M2_bool IM2_Matrix_is_implemented_as_dense (const Matrix *M)
const MatrixIM2_Matrix_remake2 (const FreeModule *target, const FreeModule *source, M2_arrayint deg, const Matrix *M, int preference)
const MatrixIM2_Matrix_remake1 (const FreeModule *target, const Matrix *M, int preference)
const MatrixIM2_Matrix_random (const Ring *R, int r, int c, double fraction_non_zero, int special_type, int preference)
const MatrixrawMatrixReadMsolveString (const Ring *R, M2_string contents)
const MatrixrawMatrixReadMsolveFile (const Ring *R, M2_string filename)
M2_bool IM2_Matrix_is_zero (const Matrix *M)
int IM2_Matrix_is_equal (const Matrix *M, const Matrix *N)
M2_bool IM2_Matrix_is_graded (const Matrix *M)
const MatrixIM2_Matrix_concat (const engine_RawMatrixArray Ms)
const MatrixIM2_Matrix_direct_sum (const engine_RawMatrixArray Ms)
const MatrixIM2_Matrix_tensor (const Matrix *M, const Matrix *N)
const MatrixrawModuleTensor (const Matrix *M, const Matrix *N)
const MatrixIM2_Matrix_transpose (const Matrix *M)
const MatrixIM2_Matrix_reshape (const Matrix *M, const FreeModule *F, const FreeModule *G)
const MatrixIM2_Matrix_flip (const FreeModule *F, const FreeModule *G)
const MatrixrawWedgeProduct (int p, int q, const FreeModule *F)
const MatrixIM2_Matrix_submatrix (const Matrix *M, M2_arrayint rows, M2_arrayint cols)
const MatrixIM2_Matrix_submatrix1 (const Matrix *M, M2_arrayint cols)
const MatrixIM2_Matrix_koszul (int p, const Matrix *M)
const MatrixrawKoszulMonomials (int nskew, const Matrix *M, const Matrix *N)
const MatrixIM2_Matrix_symm (int p, const Matrix *M)
const MatrixIM2_Matrix_exterior (int p, const Matrix *M, int strategy)
M2_arrayintOrNull IM2_Matrix_sort_columns (const Matrix *M, int deg_order, int mon_order)
const MatrixIM2_Matrix_minors (int p, const Matrix *M, int strategy)
const MatrixrawMinors (int p, const Matrix *M, int strategy, int n_minors_to_compute, M2_arrayintOrNull first_row_set, M2_arrayintOrNull first_col_set)
const MatrixIM2_Matrix_pfaffians (int p, const Matrix *M)
const RingElementIM2_Matrix_pfaffian (const Matrix *M)
const MatrixIM2_Matrix_diff (const Matrix *M, const Matrix *N)
const MatrixIM2_Matrix_contract (const Matrix *M, const Matrix *N)
const MatrixIM2_Matrix_homogenize (const Matrix *M, int var, M2_arrayint wts)
const MatrixrawCoefficients (M2_arrayint vars, const Matrix *monoms, const Matrix *M)
const MatrixrawBasis (const Matrix *M, M2_arrayint lo_degree, M2_arrayint hi_degree, M2_arrayint wt, M2_arrayint vars, M2_bool do_truncation, int limit)
M2_arrayintOrNull rawMatrixIndices (const Matrix *f)
const MatrixIM2_Matrix_monomials (M2_arrayint vars, const Matrix *M)
const MatrixIM2_Matrix_initial (int nparts, const Matrix *M)
M2_arrayint IM2_Matrix_elim_vars (int nparts, const Matrix *M)
M2_arrayint IM2_Matrix_keep_vars (int nparts, const Matrix *M)
engine_RawMatrixPairOrNull rawTopCoefficients (const Matrix *M)
engine_RawMatrixAndInt IM2_Matrix_divide_by_var (const Matrix *M, int var, int maxdegree)
const MatrixrawMatrixCompress (const Matrix *M)
const MatrixrawRemoveMonomialFactors (const Matrix *m, M2_bool make_squarefree_only)
const MatrixrawRemoveScalarMultiples (const Matrix *m)
const MatrixrawMatrixContent (const Matrix *M)
const MatrixrawMatrixRemoveContent (const Matrix *M)
const MatrixrawMatrixSplitContent (const Matrix *M, const Matrix **result)
const MatrixIM2_Matrix_remove_content (const Matrix *M)
const MatrixIM2_Matrix_promote (const FreeModule *newTarget, const Matrix *f)
const MatrixIM2_Matrix_lift (int *success_return, const FreeModule *newTarget, const Matrix *f)
gmp_ZZ to_gmp_ZZ (int a)
M2HomotopyrawHomotopy (M2SLEvaluator *Hx, M2SLEvaluator *Hxt, M2SLEvaluator *HxH)
M2_bool rawHomotopyTrack (M2Homotopy *H, const MutableMatrix *inputs, MutableMatrix *outputs, MutableMatrix *output_extras, gmp_RR init_dt, gmp_RR min_dt, gmp_RR epsilon, int max_corr_steps, gmp_RR infinity_threshold, M2_bool checkPrecision)
M2_string rawHomotopyToString (M2Homotopy *H)
unsigned int rawHomotopyHash (M2Homotopy *)
M2SLEvaluatorrawSLEvaluator (M2SLProgram *SLP, M2_arrayint constsPos, M2_arrayint varsPos, const MutableMatrix *consts)
M2SLEvaluatorrawCompiledSLEvaluator (M2_string libName, int nInputs, int nOutputs, const MutableMatrix *empty)
M2SLEvaluatorrawSLEvaluatorSpecialize (M2SLEvaluator *H, const MutableMatrix *parameters)
M2_bool rawSLEvaluatorEvaluate (M2SLEvaluator *sle, const MutableMatrix *inputs, MutableMatrix *outputs)
M2_string rawSLEvaluatorToString (M2SLEvaluator *sle)
unsigned int rawSLEvaluatorHash (M2SLEvaluator *)
M2SLProgramrawSLProgram (unsigned long nConstantsAndInputs)
M2_string rawSLProgramToString (M2SLProgram *slp)
unsigned int rawSLProgramHash (M2SLProgram *)
gmp_ZZ rawSLPInputGate (M2SLProgram *S)
gmp_ZZ rawSLPSumGate (M2SLProgram *S, M2_arrayint a)
gmp_ZZ rawSLPProductGate (M2SLProgram *S, M2_arrayint a)
gmp_ZZ rawSLPDetGate (M2SLProgram *S, M2_arrayint a)
gmp_ZZ rawSLPsetOutputPositions (M2SLProgram *S, M2_arrayint a)
gmp_ZZ rawSLPDivideGate (M2SLProgram *S, M2_arrayint a)
StraightLineProgramrawSLP (const Matrix *consts, M2_arrayint program)
const MatrixrawEvaluateSLP (StraightLineProgram *SLP, const Matrix *vals)
M2_string rawStraightLineProgramToString (StraightLineProgram *slp)
unsigned int rawStraightLineProgramHash (StraightLineProgram *slp)
PathTrackerrawPathTrackerPrecookedSLPs (StraightLineProgram *slp_pred, StraightLineProgram *slp_corr)
 PathTracker /////////////////////////////////////////////////////.
PathTrackerrawPathTracker (const Matrix *HH)
PathTrackerrawPathTrackerProjective (const Matrix *S, const Matrix *T, gmp_RR productST)
M2_string rawPathTrackerToString (PathTracker *p)
unsigned int rawPathTrackerHash (PathTracker *p)
M2_string rawPointArrayToString (M2PointArray *pa)
unsigned int rawPointArrayHash (M2PointArray *pa)
M2PointArrayrawPointArray (double epsilon, int n)
PointArray::RealVector getRealVector (const MutableMatrix *M, int col)
int rawPointArrayLookup (M2PointArray *pa, const MutableMatrix *M, int col)
int rawPointArrayLookupOrAppend (M2PointArray *pa, const MutableMatrix *M, int col)