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

Functions

template<domain D :shared3p >
D uint colSums (D bool mat)
 
template<domain D :shared3p >
D uint8 colSums (D uint8 mat)
 
template<domain D :shared3p >
D uint16 colSums (D uint16 mat)
 
template<domain D :shared3p >
D uint32 colSums (D uint32 mat)
 
template<domain D :shared3p >
D uint colSums (D uint mat)
 
template<domain D :shared3p >
D int8 colSums (D int8 mat)
 
template<domain D :shared3p >
D int16 colSums (D int16 mat)
 
template<domain D :shared3p >
D int32 colSums (D int32 mat)
 
template<domain D :shared3p >
D int colSums (D int mat)
 
template<domain D :shared3p >
D float32 colSums (D float32 mat)
 
template<domain D :shared3p >
D float64 colSums (D float64 mat)
 
template<domain D :shared3p >
D fix32 colSums (D fix32 mat)
 
template<domain D :shared3p >
D fix64 colSums (D fix64 mat)
 

Detailed Description

Function for summarizing the columns of a matrix.

Note
D - shared3p protection domain
Supported types - bool / uint8 / uint16 / uint32 / uint / int8 / int16 / int32 / int / float32 / float64 / fix32 / fix64
When adding boolean values, the numerical value of boolean is used
Parameters
mat- a matrix of supported type
Returns
returns a vector with the sums of each column in the input matrix
Leakage
None

Function Documentation

◆ colSums() [1/13]

template<domain D :shared3p >
D uint colSums ( D bool  mat)

◆ colSums() [2/13]

template<domain D :shared3p >
D fix32 colSums ( D fix32  mat)

◆ colSums() [3/13]

template<domain D :shared3p >
D fix64 colSums ( D fix64  mat)

◆ colSums() [4/13]

template<domain D :shared3p >
D float32 colSums ( D float32  mat)

◆ colSums() [5/13]

template<domain D :shared3p >
D float64 colSums ( D float64  mat)

◆ colSums() [6/13]

template<domain D :shared3p >
D int colSums ( D int  mat)

◆ colSums() [7/13]

template<domain D :shared3p >
D int16 colSums ( D int16  mat)

◆ colSums() [8/13]

template<domain D :shared3p >
D int32 colSums ( D int32  mat)

◆ colSums() [9/13]

template<domain D :shared3p >
D int8 colSums ( D int8  mat)

◆ colSums() [10/13]

template<domain D :shared3p >
D uint colSums ( D uint  mat)

◆ colSums() [11/13]

template<domain D :shared3p >
D uint16 colSums ( D uint16  mat)

◆ colSums() [12/13]

template<domain D :shared3p >
D uint32 colSums ( D uint32  mat)

◆ colSums() [13/13]

template<domain D :shared3p >
D uint8 colSums ( D uint8  mat)