Module api

Module api 

Source

Traitsยง

BivariateConvolution
BivariateTensoring
ModuleLogN
ModuleN
ModuleNew
Instantiate a new crate::layouts::Module.
ScratchAvailable
Returns how many bytes left can be taken from the scratch.
ScratchFromBytes
Wrap an array of mutable borrowed bytes into a Scratch.
ScratchOwnedAlloc
Allocates a new crate::layouts::ScratchOwned of size aligned bytes.
ScratchOwnedBorrow
Borrows a slice of bytes into a Scratch.
ScratchTakeBasic
SvpApplyDft
Apply a scalar-vector product between a[a_col] and b[b_col] and stores the result on res[res_col].
SvpApplyDftToDft
Apply a scalar-vector product between a[a_col] and b[b_col] and stores the result on res[res_col].
SvpApplyDftToDftAdd
Apply a scalar-vector product between a[a_col] and b[b_col] and adds the result on res[res_col].
SvpApplyDftToDftInplace
Apply a scalar-vector product between res[res_col] and a[a_col] and stores the result on res[res_col].
SvpPPolAlloc
Allocates as crate::layouts::SvpPPol.
SvpPPolBytesOf
Returns the size in bytes to allocate a crate::layouts::SvpPPol.
SvpPPolFromBytes
Consume a vector of bytes into a crate::layouts::MatZnx. User must ensure that bytes is memory aligned and that it length is equal to [SvpPPolAllocBytes].
SvpPrepare
Prepare a crate::layouts::ScalarZnx into an crate::layouts::SvpPPol.
TakeSlice
Takes a slice of bytes from a Scratch and return a new Scratch minus the taken array of bytes.
VecZnxAdd
VecZnxAddInplace
VecZnxAddNormal
VecZnxAddScalar
VecZnxAddScalarInplace
VecZnxAutomorphism
VecZnxAutomorphismInplace
VecZnxAutomorphismInplaceTmpBytes
VecZnxBigAdd
VecZnxBigAddInplace
VecZnxBigAddNormal
Add a discrete normal distribution on res.
VecZnxBigAddSmall
VecZnxBigAddSmallInplace
VecZnxBigAlloc
Allocates as crate::layouts::VecZnxBig.
VecZnxBigAutomorphism
VecZnxBigAutomorphismInplace
VecZnxBigAutomorphismInplaceTmpBytes
VecZnxBigBytesOf
Returns the size in bytes to allocate a crate::layouts::VecZnxBig.
VecZnxBigFromBytes
Consume a vector of bytes into a crate::layouts::VecZnxBig. User must ensure that bytes is memory aligned and that it length is equal to [VecZnxBigAllocBytes].
VecZnxBigFromSmall
VecZnxBigNegate
VecZnxBigNegateInplace
VecZnxBigNormalize
VecZnxBigNormalizeTmpBytes
VecZnxBigSub
VecZnxBigSubInplace
VecZnxBigSubNegateInplace
VecZnxBigSubSmallA
VecZnxBigSubSmallB
VecZnxBigSubSmallInplace
VecZnxBigSubSmallNegateInplace
VecZnxCopy
VecZnxDftAdd
VecZnxDftAddInplace
VecZnxDftAddScaledInplace
VecZnxDftAlloc
VecZnxDftApply
VecZnxDftBytesOf
VecZnxDftCopy
VecZnxDftFromBytes
VecZnxDftSub
VecZnxDftSubInplace
VecZnxDftSubNegateInplace
VecZnxDftZero
VecZnxFillNormal
VecZnxFillUniform
VecZnxIdftApply
VecZnxIdftApplyConsume
VecZnxIdftApplyTmpA
VecZnxIdftApplyTmpBytes
VecZnxLsh
VecZnxLshInplace
VecZnxLshTmpBytes
VecZnxMergeRings
VecZnxMergeRingsTmpBytes
VecZnxMulXpMinusOne
VecZnxMulXpMinusOneInplace
VecZnxMulXpMinusOneInplaceTmpBytes
VecZnxNegate
VecZnxNegateInplace
VecZnxNormalize
VecZnxNormalizeInplace
VecZnxNormalizeTmpBytes
VecZnxRotate
VecZnxRotateInplace
VecZnxRotateInplaceTmpBytes
VecZnxRsh
VecZnxRshInplace
VecZnxRshTmpBytes
VecZnxSplitRing
VecZnxSplitRingTmpBytes
VecZnxSub
VecZnxSubInplace
VecZnxSubNegateInplace
VecZnxSubScalar
VecZnxSubScalarInplace
VecZnxSwitchRing
VecZnxZero
VmpApplyDft
VmpApplyDftTmpBytes
VmpApplyDftToDft
VmpApplyDftToDftAdd
VmpApplyDftToDftAddTmpBytes
VmpApplyDftToDftTmpBytes
VmpPMatAlloc
VmpPMatBytesOf
VmpPMatFromBytes
VmpPrepare
VmpPrepareTmpBytes
VmpZero