Skip to content

Commit

Permalink
Fix bugs in flintxx
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirGl committed Jul 31, 2015
1 parent 57b4d52 commit 0b64139
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion arith.h
Expand Up @@ -201,7 +201,7 @@ FLINT_DLL void arith_landau_function_vec(fmpz * res, slong len);
/* Dedekind sums *************************************************************/

#define arith_dedekind_sum_naive fmpq_dedekind_sum_naive
#define arith_dedekind_sum_coprime_d d_dedekind_sum_coprime
#define arith_dedekind_sum_coprime_d fmpq_dedekind_sum_coprime_d
#define arith_dedekind_sum_coprime_large fmpq_dedekind_sum_coprime_large
#define arith_dedekind_sum_coprime fmpq_dedekind_sum_coprime
#define arith_dedekind_sum fmpq_dedekind_sum
Expand Down
4 changes: 2 additions & 2 deletions flintxx/test/t-codegen.cpp
Expand Up @@ -639,9 +639,9 @@ DEFINE_FUNC(test_nmod_matxx_2,
(nmodxx& to, const nmod_matxx& A))
{
nmod_mat_t tmp1, tmp2;
nmod_mat_init(tmp1, nmod_mat_nrows(A._mat()), nmod_mat_ncols(A._mat()),
nmod_mat_init(tmp1, nmod_mat_nrows(A._mat()), nmod_mat_cols(A._mat()),
A.modulus());
nmod_mat_init(tmp2, nmod_mat_ncols(A._mat()), nmod_mat_ncols(A._mat()),
nmod_mat_init(tmp2, nmod_mat_cols(A._mat()), nmod_mat_cols(A._mat()),
A.modulus());
nmod_mat_transpose(tmp1, A._mat());
nmod_mat_mul(tmp1, tmp2, A._mat());
Expand Down
2 changes: 1 addition & 1 deletion nmod_matxx.h
Expand Up @@ -241,7 +241,7 @@ struct matrix_traits<nmod_matxx>
}
template<class M> static slong cols(const M& m)
{
return nmod_mat_ncols(m._mat());
return nmod_mat_cols(m._mat());
}

template<class M> static nmodxx_srcref at(const M& m, slong i, slong j)
Expand Down
7 changes: 1 addition & 6 deletions padic_mat.h
Expand Up @@ -74,19 +74,14 @@ fmpz * padic_mat_entry(const padic_mat_t A, slong i, slong j)
}

#define padic_mat_val(A) ((A)->val)
#define padic_mat_prec(A) ((A)->N)

PADIC_MAT_INLINE
slong padic_mat_get_val(const padic_mat_t A)
{
return A->val;
}

PADIC_MAT_INLINE
slong padic_mat_prec(const padic_mat_t A)
{
return A->N;
}

PADIC_MAT_INLINE
slong padic_mat_nrows(const padic_mat_t A)
{
Expand Down

0 comments on commit 0b64139

Please sign in to comment.