SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions
dotProduct[[1]]

Functions

template<domain D :shared3p >
D uint8 dotProduct (D uint8 x, D uint8 y)
 
template<domain D :shared3p >
D uint16 dotProduct (D uint16 x, D uint16 y)
 
template<domain D :shared3p >
D uint32 dotProduct (D uint32 x, D uint32 y)
 
template<domain D :shared3p >
D uint dotProduct (D uint x, D uint y)
 
template<domain D :shared3p >
D int8 dotProduct (D int8 x, D int8 y)
 
template<domain D :shared3p >
D int16 dotProduct (D int16 x, D int16 y)
 
template<domain D :shared3p >
D int32 dotProduct (D int32 x, D int32 y)
 
template<domain D :shared3p >
D int dotProduct (D int x, D int y)
 
template<domain D :shared3p >
D float32 dotProduct (D float32 x, D float32 y)
 
template<domain D :shared3p >
D float64 dotProduct (D float64 x, D float64 y)
 

Detailed Description

Function for finding the dot product of two vectors.

Note
D - shared3p domain
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64
Parameters
x,y- input vectors
Returns
returns a scalar with the dot product of the two input vectors
Leakage
None

Function Documentation

◆ dotProduct() [1/10]

template<domain D :shared3p >
D float32 dotProduct ( D float32  x,
D float32  y 
)

◆ dotProduct() [2/10]

template<domain D :shared3p >
D float64 dotProduct ( D float64  x,
D float64  y 
)

◆ dotProduct() [3/10]

template<domain D :shared3p >
D int dotProduct ( D int  x,
D int  y 
)

◆ dotProduct() [4/10]

template<domain D :shared3p >
D int16 dotProduct ( D int16  x,
D int16  y 
)

◆ dotProduct() [5/10]

template<domain D :shared3p >
D int32 dotProduct ( D int32  x,
D int32  y 
)

◆ dotProduct() [6/10]

template<domain D :shared3p >
D int8 dotProduct ( D int8  x,
D int8  y 
)

◆ dotProduct() [7/10]

template<domain D :shared3p >
D uint dotProduct ( D uint  x,
D uint  y 
)

◆ dotProduct() [8/10]

template<domain D :shared3p >
D uint16 dotProduct ( D uint16  x,
D uint16  y 
)

◆ dotProduct() [9/10]

template<domain D :shared3p >
D uint32 dotProduct ( D uint32  x,
D uint32  y 
)

◆ dotProduct() [10/10]

template<domain D :shared3p >
D uint8 dotProduct ( D uint8  x,
D uint8  y 
)