remove unnecessary function qext_newtype()
This commit is contained in:
parent
cfc13d2ba7
commit
920a530385
10
qext.c
10
qext.c
@ -37,16 +37,6 @@ static void qext_init_type(struct qext_type *type)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct qext_type *qext_newtype(int rank, const int *coeffs)
|
|
||||||
{
|
|
||||||
struct qext_type *type = malloc(sizeof(struct qext_type));
|
|
||||||
type->rank = rank;
|
|
||||||
type->integer_coeffs = coeffs;
|
|
||||||
qext_init_type(type);
|
|
||||||
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
void qext_init(qext_number x, struct qext_type *type)
|
void qext_init(qext_number x, struct qext_type *type)
|
||||||
{
|
{
|
||||||
if(type->coeffs == NULL) // uninitialized default type
|
if(type->coeffs == NULL) // uninitialized default type
|
||||||
|
1
qext.h
1
qext.h
@ -20,7 +20,6 @@ extern struct qext_type *QT_TRIVIAL;
|
|||||||
extern struct qext_type *QT_SQRT5;
|
extern struct qext_type *QT_SQRT5;
|
||||||
extern struct qext_type *QT_GAUSS_SQRT5;
|
extern struct qext_type *QT_GAUSS_SQRT5;
|
||||||
|
|
||||||
struct qext_type *qext_newtype(int rank, const int *coeffs);
|
|
||||||
void qext_init(qext_number x, struct qext_type *type);
|
void qext_init(qext_number x, struct qext_type *type);
|
||||||
void qext_clear(qext_number x);
|
void qext_clear(qext_number x);
|
||||||
void qext_set(qext_number x, qext_number y);
|
void qext_set(qext_number x, qext_number y);
|
||||||
|
Loading…
Reference in New Issue
Block a user