SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
diagMatrixMultiplication[[3]]

Function for multiplying two diagonal matrices.

Note
D - any protection domain
Supported types - uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64
Warning
NB! This matrix multiplication is very conditional. Before using, make sure that your matrices are in the right format. y must be diagonal
Parameters
x,y- 3-dimensional matrices of supported type and shape
Returns
We multiply across the last two dimensions and return a vector of product matrices
Leakage
None