class_group 0.6.0

Rust library for building IQC: cryptography based on class groups (Cl) of imaginary quadratic orders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Function: algadd
Section: algebras
C-Name: algadd
Prototype: GGG
Help: algadd(al,x,y): element x+y in al.
Doc: Given two elements $x$ and $y$ in \var{al}, computes their sum $x+y$ in
 the algebra~\var{al}.
 \bprog
 ? A = alginit(nfinit(y),[-1,1]);
 ? algadd(A,[1,0]~,[1,2]~)
 %2 = [2, 2]~
 @eprog

 Also accepts matrices with coefficients in \var{al}.