SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
crossProduct[[2]]

Functions

template<domain D :shared3p >
D int8 crossProduct (D int8[[2]] x, D int8[[2]] y)
 
template<domain D :shared3p >
D int16 crossProduct (D int16[[2]] x, D int16[[2]] y)
 
template<domain D :shared3p >
D int32 crossProduct (D int32[[2]] x, D int32[[2]] y)
 
template<domain D :shared3p >
D int crossProduct (D int[[2]] x, D int[[2]] y)
 
template<domain D :shared3p >
D float32 crossProduct (D float32[[2]] x, D float32[[2]] y)
 
template<domain D :shared3p >
D float64 crossProduct (D float64[[2]] x, D float64[[2]] y)
 

Detailed Description

Function for finding the cross product of two matrices.

Note
D - shared3p protection domain
Supported types - int8 / int16 / int32 / int / float32 / float64
Parameters
x,y- matrices of supported type
Returns
returns a matrix with the cross product of each row of the two input matrices
Leakage
None

Function Documentation

◆ crossProduct() [1/6]

D float32 crossProduct ( D float32[[2]]  x,
D float32[[2]]  y 
)

◆ crossProduct() [2/6]

D float64 crossProduct ( D float64[[2]]  x,
D float64[[2]]  y 
)

◆ crossProduct() [3/6]

D int16 crossProduct ( D int16[[2]]  x,
D int16[[2]]  y 
)

◆ crossProduct() [4/6]

D int32 crossProduct ( D int32[[2]]  x,
D int32[[2]]  y 
)

◆ crossProduct() [5/6]

D int8 crossProduct ( D int8[[2]]  x,
D int8[[2]]  y 
)

◆ crossProduct() [6/6]

D int crossProduct ( D int[[2]]  x,
D int[[2]]  y 
)