FK20 CUDA
g1p_scale.cu File Reference
#include "fp.cuh"
#include "g1.cuh"
Include dependency graph for g1p_scale.cu:

Go to the source code of this file.

Functions

__device__ void g1p_scale (g1p_t &p, const fp_t &s)
 Scale the coordinates of a projective point. This operation multiplies each coordinate of p by s: (x, y, z) := (x*s, y*s, z*s). More...
 

Function Documentation

◆ g1p_scale()

__device__ void g1p_scale ( g1p_t p,
const fp_t s 
)

Scale the coordinates of a projective point. This operation multiplies each coordinate of p by s: (x, y, z) := (x*s, y*s, z*s).

Parameters
[in,out]pPoint in G1 (stores result after call)
[in]sMultiplicand in Fp. Must be nonzero.
Returns
void

Definition at line 16 of file g1p_scale.cu.

Here is the call graph for this function: