pari  2.13.1
About: PARI/GP is a computer algebra system designed for fast computations in number theory (factorizations, algebraic number theory, elliptic curves...), but also contains a large number of other mathematical functions.
  Fossies Dox: pari-2.13.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

RgV.c File Reference
#include "pari.h"
#include "paripriv.h"
Include dependency graph for RgV.c:

Go to the source code of this file.

Macros

#define code(t1, t2)   ((t1 << 6) | t2)
 
#define code(t1, t2)   ((t1 << 6) | t2)
 

Functions

int RgM_is_ZM (GEN x)
 
int RgM_is_QM (GEN x)
 
int RgV_is_ZMV (GEN V)
 
static GEN RgMrow_zc_mul_i (GEN x, GEN y, long c, long i)
 
GEN RgMrow_zc_mul (GEN x, GEN y, long i)
 
static GEN RgM_zc_mul_i (GEN x, GEN y, long c, long l)
 
GEN RgM_zc_mul (GEN x, GEN y)
 
GEN RgM_zm_mul (GEN x, GEN y)
 
static GEN RgMrow_ZC_mul_i (GEN x, GEN y, long i, long l)
 
static GEN RgM_ZC_mul_i (GEN x, GEN y, long lx, long l)
 
GEN RgM_ZM_mul (GEN x, GEN y)
 
static GEN RgV_zc_mul_i (GEN x, GEN y, long l)
 
GEN RgV_zc_mul (GEN x, GEN y)
 
GEN RgV_zm_mul (GEN x, GEN y)
 
GEN RgV_dotsquare (GEN x)
 
static GEN RgV_dotproduct_i (GEN x, GEN y, long lx)
 
GEN RgV_dotproduct (GEN x, GEN y)
 
GEN RgV_sum (GEN v)
 
GEN RgV_sumpart (GEN v, long n)
 
GEN RgV_sumpart2 (GEN v, long m, long n)
 
GEN RgM_sumcol (GEN A)
 
static GEN _gmul (void *data, GEN x, GEN y)
 
GEN RgV_prod (GEN x)
 
GEN RgM_Rg_add (GEN x, GEN y)
 
GEN RgM_Rg_sub (GEN x, GEN y)
 
GEN RgM_Rg_add_shallow (GEN x, GEN y)
 
GEN RgM_Rg_sub_shallow (GEN x, GEN y)
 
GEN RgC_Rg_add (GEN x, GEN y)
 
GEN RgC_Rg_sub (GEN x, GEN y)
 
GEN Rg_RgC_sub (GEN a, GEN x)
 
static GEN RgC_add_i (GEN x, GEN y, long lx)
 
GEN RgC_add (GEN x, GEN y)
 
GEN RgV_add (GEN x, GEN y)
 
static GEN RgC_sub_i (GEN x, GEN y, long lx)
 
GEN RgC_sub (GEN x, GEN y)
 
GEN RgV_sub (GEN x, GEN y)
 
GEN RgM_add (GEN x, GEN y)
 
GEN RgM_sub (GEN x, GEN y)
 
static GEN RgC_neg_i (GEN x, long lx)
 
GEN RgC_neg (GEN x)
 
GEN RgV_neg (GEN x)
 
GEN RgM_neg (GEN x)
 
GEN RgV_RgC_mul (GEN x, GEN y)
 
GEN RgC_RgV_mul (GEN x, GEN y)
 
GEN RgC_RgM_mul (GEN x, GEN y)
 
GEN RgM_RgV_mul (GEN x, GEN y)
 
static GEN RgMrow_RgC_mul_i (GEN x, GEN y, long i, long l)
 
GEN RgMrow_RgC_mul (GEN x, GEN y, long i)
 
static GEN RgM_RgC_mul_FpM (GEN x, GEN y, GEN p)
 
static GEN RgM_RgC_mul_FqM (GEN x, GEN y, GEN pol, GEN p)
 
static GEN RgM_RgC_mul_fast (GEN x, GEN y)
 
static GEN RgM_RgC_mul_i (GEN x, GEN y, long lx, long l)
 
GEN RgM_RgC_mul (GEN x, GEN y)
 
GEN RgV_RgM_mul (GEN x, GEN y)
 
static GEN RgM_mul_FpM (GEN x, GEN y, GEN p)
 
static GEN RgM_mul_FqM (GEN x, GEN y, GEN pol, GEN p)
 
static GEN RgM_liftred (GEN x, GEN T)
 
static GEN RgM_mul_ZXQM (GEN x, GEN y, GEN T)
 
static GEN RgM_sqr_ZXQM (GEN x, GEN T)
 
static GEN RgM_mul_QXQM (GEN x, GEN y, GEN T)
 
static GEN RgM_sqr_QXQM (GEN x, GEN T)
 
static int RgX_is_monic_ZX (GEN pol)
 
static GEN RgM_mul_fast (GEN x, GEN y)
 
static GEN RgM_sqr_fast (GEN x)
 
GEN RgM_mul (GEN x, GEN y)
 
GEN RgM_sqr (GEN x)
 
GEN RgM_multosym (GEN x, GEN y)
 
GEN RgM_transmultosym (GEN x, GEN y)
 
GEN RgM_transmul (GEN x, GEN y)
 
GEN gram_matrix (GEN x)
 
static GEN _RgM_add (void *E, GEN x, GEN y)
 
static GEN _RgM_sub (void *E, GEN x, GEN y)
 
static GEN _RgM_cmul (void *E, GEN P, long a, GEN x)
 
static GEN _RgM_sqr (void *E, GEN x)
 
static GEN _RgM_mul (void *E, GEN x, GEN y)
 
static GEN _RgM_one (void *E)
 
static GEN _RgM_zero (void *E)
 
static GEN _RgM_red (void *E, GEN x)
 
GEN RgM_powers (GEN x, long l)
 
GEN RgX_RgMV_eval (GEN Q, GEN x)
 
GEN RgX_RgM_eval (GEN Q, GEN x)
 
GEN RgC_Rg_div (GEN x, GEN y)
 
GEN RgC_Rg_mul (GEN x, GEN y)
 
GEN RgV_Rg_mul (GEN x, GEN y)
 
GEN RgM_Rg_div (GEN X, GEN c)
 
GEN RgM_Rg_mul (GEN X, GEN c)
 
static void fill_scalmat (GEN y, GEN t, long n)
 
GEN scalarmat (GEN x, long n)
 
GEN scalarmat_shallow (GEN x, long n)
 
GEN scalarmat_s (long x, long n)
 
GEN matid (long n)
 
static GEN scalarcol_i (GEN x, long n, long c)
 
GEN scalarcol (GEN x, long n)
 
GEN scalarcol_shallow (GEN x, long n)
 
int RgM_isscalar (GEN x, GEN s)
 
int RgM_isidentity (GEN x)
 
long RgC_is_ei (GEN x)
 
int RgM_isdiagonal (GEN x)
 
int isdiagonal (GEN x)
 
GEN RgM_det_triangular (GEN mat)
 
GEN RgV_kill0 (GEN v)
 

Variables

static struct bb_algebra RgM_algebra
 

Macro Definition Documentation

◆ code [1/2]

#define code (   t1,
  t2 
)    ((t1 << 6) | t2)

Definition at line 655 of file RgV.c.

◆ code [2/2]

#define code (   t1,
  t2 
)    ((t1 << 6) | t2)

Definition at line 655 of file RgV.c.

Function Documentation

◆ _gmul()

static GEN _gmul ( void *  data,
GEN  x,
GEN  y 
)
static

Definition at line 260 of file RgV.c.

References data, and gmul().

Referenced by RgV_prod().

◆ _RgM_add()

static GEN _RgM_add ( void *  E,
GEN  x,
GEN  y 
)
static

Definition at line 817 of file RgV.c.

References RgM_add().

◆ _RgM_cmul()

static GEN _RgM_cmul ( void *  E,
GEN  P,
long  a,
GEN  x 
)
static

Definition at line 823 of file RgV.c.

References gel, and RgM_Rg_mul().

Referenced by RgX_RgM_eval(), and RgX_RgMV_eval().

◆ _RgM_mul()

static GEN _RgM_mul ( void *  E,
GEN  x,
GEN  y 
)
static

Definition at line 829 of file RgV.c.

References RgM_mul().

Referenced by RgM_powers().

◆ _RgM_one()

static GEN _RgM_one ( void *  E)
static

Definition at line 832 of file RgV.c.

References matid(), and n.

Referenced by RgM_powers().

◆ _RgM_red()

static GEN _RgM_red ( void *  E,
GEN  x 
)
static

Definition at line 838 of file RgV.c.

◆ _RgM_sqr()

static GEN _RgM_sqr ( void *  E,
GEN  x 
)
static

Definition at line 826 of file RgV.c.

References RgM_sqr().

Referenced by RgM_powers().

◆ _RgM_sub()

static GEN _RgM_sub ( void *  E,
GEN  x,
GEN  y 
)
static

Definition at line 820 of file RgV.c.

References RgM_sub().

◆ _RgM_zero()

static GEN _RgM_zero ( void *  E)
static

Definition at line 835 of file RgV.c.

References n, and zeromat().

◆ fill_scalmat()

static void fill_scalmat ( GEN  y,
GEN  t,
long  n 
)
static

Definition at line 913 of file RgV.c.

References gcoeff, gel, n, and zerocol().

Referenced by matid(), scalarmat(), scalarmat_s(), and scalarmat_shallow().

◆ gram_matrix()

GEN gram_matrix ( GEN  x)

Definition at line 797 of file RgV.c.

References cgetg(), gcoeff, gel, is_matvec_t(), lg, lgcols(), M, pari_err_TYPE(), RgV_dotproduct_i(), RgV_dotsquare(), t_COL, t_MAT, and typ.

Referenced by lllallgen(), member_t2(), and qfnorm0().

◆ isdiagonal()

int isdiagonal ( GEN  x)

Definition at line 1039 of file RgV.c.

References RgM_isdiagonal(), t_MAT, and typ.

◆ matid()

GEN matid ( long  n)

Definition at line 941 of file RgV.c.

References cgetg(), fill_scalmat(), gen_0, gen_1, n, pari_err_DOMAIN(), stoi(), and t_MAT.

Referenced by _Fp_extgcd(), _RgM_one(), alg_change_overorder_shallow(), alg_changeorder(), alg_complete0(), alg_csa_table(), alg_cyclic(), alg_decompose_total(), alg_finite_csa_split(), alg_pmaximal(), alg_subalg(), algleftordermodp(), algmakeintegral(), algsimpledec_ss(), algtableinit_i(), artin_charfromgens(), bestlift_init(), bezout_halfgcd(), Buchraymod_i(), caradj(), contfracpnqn(), cxredga0N(), dbasis(), decodemodule(), eisker(), eisker_worker(), ellisomat(), ellQ_isomat(), expand_sub(), F2m_powu(), factorbackprime(), factoredextchinesetest(), Flm_powu(), FpM_gauss_i(), FpM_powu(), FqM_inv(), get_LV(), getallelts(), gpowg0(), GuessQi(), hnfspec_i(), idealadd(), idealdivexact(), idealHNF_inv_Z(), idealinv(), Ideallist(), idealpow_aux(), idealprincipalunits_i(), idealprodprime(), idealred0(), idealsqrtn_int(), Idealstarmod_i(), init_gauss(), lindepfull_bit(), LLL_1stPass(), lll_trivial(), lllgramallgen(), lllintpartialall(), mateigen(), matmultodiagonal(), matqr(), member_codiff(), mf2init_Nkchi(), mfatkinmatnewquad(), mfheckemat(), mfslashexpansion(), mfsymboleval(), msatkinlehner_i(), mscuspidal(), msfarey(), mskinit_nontrivial(), mspetersson(), mspolygon(), nfdetint(), nfhnf0(), nfM_inv(), nfmaxord(), nfsnf0(), nfsubfields_fa(), pr_inv_p(), qflllgram_indefgoon(), qfminimize(), qfperfection(), qftriv(), QM_ImQ_all(), QM_ker(), QM_minors_coprime(), RgM_Frobenius(), RgM_hnfall(), RgX_act_Gl2Q(), RgXM_snf(), rnf_zkabs(), rnfidealhnf(), rnflllgram(), rnfmaxord(), setsigns_init(), split_starting_space(), triv_order(), ZM_hnfall_i(), ZM_hnflll(), ZM_hnfmodprime(), ZM_hnfperm(), ZM_ker(), ZM_lll_norms(), ZM_pow(), ZM_powu(), ZM_snfall_i(), ZV_gcdext_i(), and ZV_snfall().

◆ Rg_RgC_sub()

GEN Rg_RgC_sub ( GEN  a,
GEN  x 
)

Definition at line 372 of file RgV.c.

References cgetg(), gel, gneg(), gsub(), isintzero(), lg, pari_err_TYPE2(), and t_COL.

Referenced by nfsub().

◆ RgC_add()

◆ RgC_add_i()

static GEN RgC_add_i ( GEN  x,
GEN  y,
long  lx 
)
static

Definition at line 387 of file RgV.c.

References cgetg(), gadd(), gel, and t_COL.

Referenced by RgC_add(), and RgM_add().

◆ RgC_is_ei()

long RgC_is_ei ( GEN  x)

Definition at line 1008 of file RgV.c.

References gel, gequal0(), gequal1(), and lg.

Referenced by check_relmt().

◆ RgC_neg()

GEN RgC_neg ( GEN  x)

Definition at line 444 of file RgV.c.

References lg, and RgC_neg_i().

Referenced by col_mul(), getfu(), gneg(), and nfC_nf_mul().

◆ RgC_neg_i()

static GEN RgC_neg_i ( GEN  x,
long  lx 
)
static

Definition at line 436 of file RgV.c.

References cgetg(), gel, gneg(), and t_COL.

Referenced by RgC_neg(), and RgM_neg().

◆ RgC_Rg_add()

GEN RgC_Rg_add ( GEN  x,
GEN  y 
)

Definition at line 343 of file RgV.c.

References cgetg(), gadd(), gcopy(), gel, isintzero(), lg, pari_err_TYPE2(), and t_COL.

Referenced by add_scal(), gadd(), nfadd(), and nfsetsigns().

◆ RgC_Rg_div()

◆ RgC_Rg_mul()

◆ RgC_Rg_sub()

GEN RgC_Rg_sub ( GEN  x,
GEN  y 
)

Definition at line 357 of file RgV.c.

References cgetg(), gcopy(), gel, gsub(), isintzero(), lg, pari_err_TYPE2(), and t_COL.

Referenced by nfsub().

◆ RgC_RgM_mul()

GEN RgC_RgM_mul ( GEN  x,
GEN  y 
)

Definition at line 475 of file RgV.c.

References cgetg(), gcoeff, gel, lg, lgcols(), pari_err_OP(), RgC_Rg_mul(), and t_MAT.

Referenced by gmul().

◆ RgC_RgV_mul()

GEN RgC_RgV_mul ( GEN  x,
GEN  y 
)

Definition at line 467 of file RgV.c.

References cgetg(), gel, lg, RgC_Rg_mul(), and t_MAT.

Referenced by gmul(), and RgM_RgV_mul().

◆ RgC_sub()

GEN RgC_sub ( GEN  x,
GEN  y 
)

◆ RgC_sub_i()

static GEN RgC_sub_i ( GEN  x,
GEN  y,
long  lx 
)
static

Definition at line 401 of file RgV.c.

References cgetg(), gel, gsub(), and t_COL.

Referenced by RgC_sub(), and RgM_sub().

◆ RgM_add()

GEN RgM_add ( GEN  x,
GEN  y 
)

Definition at line 415 of file RgV.c.

References cgetg(), gel, lg, lgcols(), RgC_add_i(), and t_MAT.

Referenced by _RgM_add(), elementmultable(), findbestsplit(), gadd(), msqexpansion_i(), mssplit_i(), and Rgmultable().

◆ RgM_det_triangular()

GEN RgM_det_triangular ( GEN  mat)

Definition at line 1042 of file RgV.c.

References avma, gcoeff, gcopy(), gen_1, gerepileupto(), gmul(), and lg.

Referenced by alglatindex(), idealnorm(), and rnfinit0().

◆ RgM_is_QM()

int RgM_is_QM ( GEN  x)

Definition at line 32 of file RgV.c.

References gcoeff, is_rational_t(), lg, lgcols(), and typ.

Referenced by matpermanent(), and matrixqz0().

◆ RgM_is_ZM()

◆ RgM_isdiagonal()

int RgM_isdiagonal ( GEN  x)

Definition at line 1022 of file RgV.c.

References gel, gequal0(), lg, and lgcols().

Referenced by diagonal(), get_snf(), and isdiagonal().

◆ RgM_isidentity()

int RgM_isidentity ( GEN  x)

Definition at line 988 of file RgV.c.

References gel, gequal0(), gequal1(), lg, and lgcols().

Referenced by check_relmt(), ideal_is1(), rnflllgram(), and ZabM_inv_ratlift().

◆ RgM_isscalar()

int RgM_isscalar ( GEN  x,
GEN  s 
)

Definition at line 966 of file RgV.c.

References gcoeff, gel, gequal(), gequal0(), lg, and lgcols().

Referenced by idV_simplify(), pr_factorback_scal(), rnfallbase(), and ZabM_inv_ratlift().

◆ RgM_liftred()

static GEN RgM_liftred ( GEN  x,
GEN  T 
)
static

Definition at line 616 of file RgV.c.

References liftpol_shallow(), and RgXQM_red().

Referenced by RgM_mul_QXQM(), RgM_mul_ZXQM(), RgM_sqr_QXQM(), and RgM_sqr_ZXQM().

◆ RgM_mul()

◆ RgM_mul_fast()

static GEN RgM_mul_fast ( GEN  x,
GEN  y 
)
static

◆ RgM_mul_FpM()

static GEN RgM_mul_FpM ( GEN  x,
GEN  y,
GEN  p 
)
static

◆ RgM_mul_FqM()

static GEN RgM_mul_FqM ( GEN  x,
GEN  y,
GEN  pol,
GEN  p 
)
static

Definition at line 606 of file RgV.c.

References avma, FqM_mul(), FqM_to_mod(), gerepileupto(), p, pari_err_OP(), RgM_to_FqM(), RgX_to_FpX(), and signe.

Referenced by RgM_mul_fast(), and RgM_sqr_fast().

◆ RgM_mul_QXQM()

static GEN RgM_mul_QXQM ( GEN  x,
GEN  y,
GEN  T 
)
static

Definition at line 636 of file RgV.c.

References avma, gerepilecopy(), QXQM_mul(), QXQM_to_mod_shallow(), and RgM_liftred().

Referenced by RgM_mul_fast().

◆ RgM_mul_ZXQM()

static GEN RgM_mul_ZXQM ( GEN  x,
GEN  y,
GEN  T 
)
static

Definition at line 620 of file RgV.c.

References avma, gerepilecopy(), QXQM_to_mod_shallow(), RgM_liftred(), and ZXQM_mul().

Referenced by RgM_mul_fast().

◆ RgM_multosym()

GEN RgM_multosym ( GEN  x,
GEN  y 
)

Definition at line 735 of file RgV.c.

References cgetg(), gcoeff, gel, lg, lgcols(), M, pari_err_OP(), RgMrow_RgC_mul_i(), t_COL, and t_MAT.

◆ RgM_neg()

GEN RgM_neg ( GEN  x)

Definition at line 449 of file RgV.c.

References cgetg(), gel, lg, lgcols(), RgC_neg_i(), and t_MAT.

Referenced by act_ZGl2Q(), caradj(), gneg(), qflllgram_indefgoon(), and RgM_invimage().

◆ RgM_powers()

GEN RgM_powers ( GEN  x,
long  l 
)

Definition at line 845 of file RgV.c.

References _RgM_mul(), _RgM_one(), _RgM_sqr(), gen_powers(), lg, and n.

Referenced by mssplit_i().

◆ RgM_Rg_add()

GEN RgM_Rg_add ( GEN  x,
GEN  y 
)

Definition at line 272 of file RgV.c.

References cgetg(), gadd(), gcopy(), gel, lg, lgcols(), pari_err_OP(), t_COL, and t_MAT.

Referenced by gadd(), and T_A_Matrices().

◆ RgM_Rg_add_shallow()

GEN RgM_Rg_add_shallow ( GEN  x,
GEN  y 
)

Definition at line 308 of file RgV.c.

References cgetg(), gadd(), gel, lg, lgcols(), pari_err_OP(), t_COL, and t_MAT.

Referenced by caract(), FpX_ffintersect(), and zkchinese1init2().

◆ RgM_Rg_div()

◆ RgM_Rg_mul()

◆ RgM_Rg_sub()

GEN RgM_Rg_sub ( GEN  x,
GEN  y 
)

Definition at line 290 of file RgV.c.

References cgetg(), gcopy(), gel, gsub(), lg, lgcols(), pari_err_OP(), t_COL, and t_MAT.

Referenced by compute_multiple_of_R(), and mslattice().

◆ RgM_Rg_sub_shallow()

GEN RgM_Rg_sub_shallow ( GEN  x,
GEN  y 
)

Definition at line 325 of file RgV.c.

References cgetg(), gel, gsub(), lg, lgcols(), pari_err_OP(), t_COL, and t_MAT.

Referenced by _ZpM_eval(), mateigen(), msfromell(), and primedec_aux().

◆ RgM_RgC_mul()

◆ RgM_RgC_mul_fast()

static GEN RgM_RgC_mul_fast ( GEN  x,
GEN  y 
)
static

◆ RgM_RgC_mul_FpM()

static GEN RgM_RgC_mul_FpM ( GEN  x,
GEN  y,
GEN  p 
)
static

◆ RgM_RgC_mul_FqM()

static GEN RgM_RgC_mul_FqM ( GEN  x,
GEN  y,
GEN  pol,
GEN  p 
)
static

◆ RgM_RgC_mul_i()

static GEN RgM_RgC_mul_i ( GEN  x,
GEN  y,
long  lx,
long  l 
)
static

Definition at line 556 of file RgV.c.

References cgetg(), gel, RgMrow_RgC_mul_i(), and t_COL.

Referenced by RgM_mul(), RgM_RgC_mul(), and RgM_sqr().

◆ RgM_RgV_mul()

GEN RgM_RgV_mul ( GEN  x,
GEN  y 
)

Definition at line 484 of file RgV.c.

References gel, lg, pari_err_OP(), and RgC_RgV_mul().

Referenced by gmul().

◆ RgM_sqr()

GEN RgM_sqr ( GEN  x)

Definition at line 720 of file RgV.c.

References cgetg(), gel, lg, lgcols(), pari_err_OP(), RgM_RgC_mul_i(), RgM_sqr_fast(), and t_MAT.

Referenced by _RgM_sqr(), and gsqr().

◆ RgM_sqr_fast()

static GEN RgM_sqr_fast ( GEN  x)
static

◆ RgM_sqr_QXQM()

static GEN RgM_sqr_QXQM ( GEN  x,
GEN  T 
)
static

Definition at line 644 of file RgV.c.

References avma, gerepilecopy(), QXQM_sqr(), QXQM_to_mod_shallow(), and RgM_liftred().

Referenced by RgM_sqr_fast().

◆ RgM_sqr_ZXQM()

static GEN RgM_sqr_ZXQM ( GEN  x,
GEN  T 
)
static

Definition at line 628 of file RgV.c.

References avma, gerepilecopy(), QXQM_to_mod_shallow(), RgM_liftred(), and ZXQM_sqr().

Referenced by RgM_sqr_fast().

◆ RgM_sub()

GEN RgM_sub ( GEN  x,
GEN  y 
)

Definition at line 425 of file RgV.c.

References cgetg(), gel, lg, lgcols(), RgC_sub_i(), and t_MAT.

Referenced by _RgM_sub(), ellpadicregulator(), gsub(), mf2basis(), and mfintereis().

◆ RgM_sumcol()

GEN RgM_sumcol ( GEN  A)

Definition at line 240 of file RgV.c.

References avma, cgetg(), gadd(), gcoeff, gcopy(), gel, gerepileupto(), lg, lgcols(), t_COL, and t_MAT.

Referenced by LargeSols().

◆ RgM_transmul()

GEN RgM_transmul ( GEN  x,
GEN  y 
)

Definition at line 778 of file RgV.c.

References cgetg(), gel, lg, lgcols(), M, pari_err_OP(), RgV_dotproduct_i(), t_COL, and t_MAT.

◆ RgM_transmultosym()

GEN RgM_transmultosym ( GEN  x,
GEN  y 
)

Definition at line 757 of file RgV.c.

References cgetg(), gcoeff, gel, lg, lgcols(), M, pari_err_OP(), RgV_dotproduct_i(), t_COL, and t_MAT.

Referenced by qf_apply_RgM().

◆ RgM_zc_mul()

GEN RgM_zc_mul ( GEN  x,
GEN  y 
)

Definition at line 94 of file RgV.c.

References lg, lgcols(), and RgM_zc_mul_i().

Referenced by alg_decompose(), chk_gen_init(), and is_unit().

◆ RgM_zc_mul_i()

static GEN RgM_zc_mul_i ( GEN  x,
GEN  y,
long  c,
long  l 
)
static

Definition at line 86 of file RgV.c.

References cgetg(), gel, RgMrow_zc_mul_i(), and t_COL.

Referenced by RgM_zc_mul(), and RgM_zm_mul().

◆ RgM_ZC_mul_i()

static GEN RgM_ZC_mul_i ( GEN  x,
GEN  y,
long  lx,
long  l 
)
static

Definition at line 121 of file RgV.c.

References cgetg(), gel, RgMrow_ZC_mul_i(), and t_COL.

Referenced by RgM_ZM_mul().

◆ RgM_zm_mul()

GEN RgM_zm_mul ( GEN  x,
GEN  y 
)

Definition at line 97 of file RgV.c.

References cgetg(), gel, lg, lgcols(), RgM_zc_mul_i(), and t_MAT.

Referenced by hnfadd_i().

◆ RgM_ZM_mul()

GEN RgM_ZM_mul ( GEN  x,
GEN  y 
)

Definition at line 131 of file RgV.c.

References cgetg(), gel, lg, lgcols(), RgM_ZC_mul_i(), and t_MAT.

Referenced by Buchall_param(), getfu(), hnfspec_i(), and Sunits_archclean().

◆ RgMrow_RgC_mul()

GEN RgMrow_RgC_mul ( GEN  x,
GEN  y,
long  i 
)

Definition at line 505 of file RgV.c.

References lg, and RgMrow_RgC_mul_i().

Referenced by eigenvalue(), mf_normalize(), search_from_split(), and ZabM_inv().

◆ RgMrow_RgC_mul_i()

static GEN RgMrow_RgC_mul_i ( GEN  x,
GEN  y,
long  i,
long  l 
)
static

Definition at line 492 of file RgV.c.

References avma, gadd(), gcoeff, gel, gerepileupto(), gmul(), and isintzero().

Referenced by RgM_multosym(), RgM_RgC_mul_i(), and RgMrow_RgC_mul().

◆ RgMrow_zc_mul()

GEN RgMrow_zc_mul ( GEN  x,
GEN  y,
long  i 
)

Definition at line 83 of file RgV.c.

References lg, and RgMrow_zc_mul_i().

Referenced by addcolumntomatrix().

◆ RgMrow_zc_mul_i()

static GEN RgMrow_zc_mul_i ( GEN  x,
GEN  y,
long  c,
long  i 
)
static

GENERIC LINEAR ALGEBRA

Definition at line 63 of file RgV.c.

References avma, gadd(), gc_const(), gcoeff, gen_0, gerepileupto(), gmulgs(), and gsub().

Referenced by RgM_zc_mul_i(), and RgMrow_zc_mul().

◆ RgMrow_ZC_mul_i()

static GEN RgMrow_ZC_mul_i ( GEN  x,
GEN  y,
long  i,
long  l 
)
static

Definition at line 109 of file RgV.c.

References avma, gadd(), gcoeff, gel, gerepileupto(), gmul(), and signe.

Referenced by RgM_ZC_mul_i().

◆ RgV_add()

GEN RgV_add ( GEN  x,
GEN  y 
)

Definition at line 397 of file RgV.c.

References gadd(), gel, pari_APPLY_type, and t_VEC.

Referenced by famat_cxlog(), gadd(), and polred_aux().

◆ RgV_dotproduct()

◆ RgV_dotproduct_i()

static GEN RgV_dotproduct_i ( GEN  x,
GEN  y,
long  lx 
)
static

◆ RgV_dotsquare()

GEN RgV_dotsquare ( GEN  x)

Definition at line 164 of file RgV.c.

References avma, DEBUGMEM, gadd(), gc_needed, gel, gen_0, gerepileupto(), gsqr(), lg, pari_warn(), and warnmem.

Referenced by gram_matrix(), qfnorm0(), RgM_gram_schmidt(), and RgV_dotproduct().

◆ RgV_is_ZMV()

int RgV_is_ZMV ( GEN  V)

Definition at line 45 of file RgV.c.

References gel, lg, RgM_is_ZM(), t_MAT, and typ.

Referenced by qf_to_zmV().

◆ RgV_kill0()

GEN RgV_kill0 ( GEN  v)

Definition at line 1055 of file RgV.c.

References cgetg_copy(), gel, and gequal0().

Referenced by dirdiv(), dirmul(), lfunparams2(), lfunthetaspec(), and worker_init().

◆ RgV_neg()

GEN RgV_neg ( GEN  x)

Definition at line 446 of file RgV.c.

References gel, gneg(), pari_APPLY_type, and t_VEC.

Referenced by gneg(), Kderivsmallinit(), and thue().

◆ RgV_prod()

GEN RgV_prod ( GEN  x)

Definition at line 264 of file RgV.c.

References _gmul(), and gen_product().

Referenced by binomial(), gammafrac(), initgaloisborne(), matpermanent(), and vandermondeinverseprep().

◆ RgV_Rg_mul()

◆ RgV_RgC_mul()

GEN RgV_RgC_mul ( GEN  x,
GEN  y 
)

◆ RgV_RgM_mul()

GEN RgV_RgM_mul ( GEN  x,
GEN  y 
)

Definition at line 577 of file RgV.c.

References cgetg(), gel, lg, lgcols(), pari_err_OP(), RgV_dotproduct_i(), and t_VEC.

Referenced by gmul(), hnfspec_i(), mfisdihedral(), qfevalb(), and set_LLL_basis().

◆ RgV_sub()

GEN RgV_sub ( GEN  x,
GEN  y 
)

Definition at line 411 of file RgV.c.

References gel, gsub(), pari_APPLY_type, and t_VEC.

Referenced by gsub(), polred_aux(), and veczetaprime().

◆ RgV_sum()

GEN RgV_sum ( GEN  v)

Definition at line 211 of file RgV.c.

References gadd(), gel, gen_0, lg, and p.

Referenced by bnfisunit(), cleanarch(), dirpowerssum(), eval_single(), getfu(), and mfkohnenbijection_i().

◆ RgV_sumpart()

GEN RgV_sumpart ( GEN  v,
long  n 
)

Definition at line 221 of file RgV.c.

References gadd(), gel, gen_0, n, and p.

Referenced by embednorm_T2().

◆ RgV_sumpart2()

GEN RgV_sumpart2 ( GEN  v,
long  m,
long  n 
)

Definition at line 231 of file RgV.c.

References gadd(), gel, gen_0, n, and p.

Referenced by embednorm_T2().

◆ RgV_zc_mul()

GEN RgV_zc_mul ( GEN  x,
GEN  y 
)

Definition at line 151 of file RgV.c.

References lg, and RgV_zc_mul_i().

Referenced by mfkohnenbijection_i(), and mseval_by_values().

◆ RgV_zc_mul_i()

static GEN RgV_zc_mul_i ( GEN  x,
GEN  y,
long  l 
)
static

Definition at line 142 of file RgV.c.

References avma, gadd(), gel, gen_0, gerepileupto(), and gmulgs().

Referenced by RgV_zc_mul(), and RgV_zm_mul().

◆ RgV_zm_mul()

GEN RgV_zm_mul ( GEN  x,
GEN  y 
)

Definition at line 154 of file RgV.c.

References cgetg(), gel, lg, RgV_zc_mul_i(), and t_VEC.

Referenced by hnfadd_i().

◆ RgX_is_monic_ZX()

static int RgX_is_monic_ZX ( GEN  pol)
static

Definition at line 652 of file RgV.c.

References RgX_is_ZX(), and ZX_is_monic().

Referenced by RgM_mul_fast(), and RgM_sqr_fast().

◆ RgX_RgM_eval()

GEN RgX_RgM_eval ( GEN  Q,
GEN  x 
)

Definition at line 859 of file RgV.c.

References _RgM_cmul(), degpol(), gen_bkeval(), lg, n, and RgM_algebra.

Referenced by gsubst(), mscuspidal(), msfromhecke(), RgM_adj_from_char(), and split_ii().

◆ RgX_RgMV_eval()

GEN RgX_RgMV_eval ( GEN  Q,
GEN  x 
)

Definition at line 852 of file RgV.c.

References _RgM_cmul(), degpol(), gel, gen_bkeval_powers(), lg, n, and RgM_algebra.

Referenced by mssplit_i().

◆ scalarcol()

GEN scalarcol ( GEN  x,
long  n 
)

Definition at line 960 of file RgV.c.

References n, and scalarcol_i().

Referenced by algfromcenter(), algtobasis(), FpX_FpC_nfpoleval(), nf_bestlift(), nfreduce(), rnfalgtobasis(), and ZC_galoisapply().

◆ scalarcol_i()

static GEN scalarcol_i ( GEN  x,
long  n,
long  c 
)
static

Definition at line 949 of file RgV.c.

References cgetg(), gcopy(), gel, gen_0, n, and t_COL.

Referenced by scalarcol(), and scalarcol_shallow().

◆ scalarcol_shallow()

◆ scalarmat()

◆ scalarmat_s()

GEN scalarmat_s ( long  x,
long  n 
)

Definition at line 935 of file RgV.c.

References cgetg(), fill_scalmat(), n, stoi(), and t_MAT.

Referenced by LLL_cmbf(), and nf_LLL_cmbf().

◆ scalarmat_shallow()

Variable Documentation

◆ RgM_algebra

struct bb_algebra RgM_algebra
static
Initial value:
static GEN _RgM_sub(void *E, GEN x, GEN y)
Definition: RgV.c:820
static GEN _RgM_add(void *E, GEN x, GEN y)
Definition: RgV.c:817
static GEN _RgM_red(void *E, GEN x)
Definition: RgV.c:838
static GEN _RgM_sqr(void *E, GEN x)
Definition: RgV.c:826
static GEN _RgM_zero(void *E)
Definition: RgV.c:835
static GEN _RgM_mul(void *E, GEN x, GEN y)
Definition: RgV.c:829
static GEN _RgM_one(void *E)
Definition: RgV.c:832

Definition at line 838 of file RgV.c.

Referenced by RgX_RgM_eval(), and RgX_RgMV_eval().