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

Functions

template<domain D :shared3p >
D uint colSums (D bool[[2]] mat)
 
template<domain D :shared3p >
D uint8 colSums (D uint8[[2]] mat)
 
template<domain D :shared3p >
D uint16 colSums (D uint16[[2]] mat)
 
template<domain D :shared3p >
D uint32 colSums (D uint32[[2]] mat)
 
template<domain D :shared3p >
D uint colSums (D uint[[2]] mat)
 
template<domain D :shared3p >
D int8 colSums (D int8[[2]] mat)
 
template<domain D :shared3p >
D int16 colSums (D int16[[2]] mat)
 
template<domain D :shared3p >
D int32 colSums (D int32[[2]] mat)
 
template<domain D :shared3p >
D int colSums (D int[[2]] mat)
 
template<domain D :shared3p >
D float32 colSums (D float32[[2]] mat)
 
template<domain D :shared3p >
D float64 colSums (D float64[[2]] mat)
 
template<domain D :shared3p >
D fix32 colSums (D fix32[[2]] mat)
 
template<domain D :shared3p >
D fix64 colSums (D fix64[[2]] 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]

D uint colSums ( D bool[[2]]  mat)

◆ colSums() [2/13]

D fix32 colSums ( D fix32[[2]]  mat)

◆ colSums() [3/13]

D fix64 colSums ( D fix64[[2]]  mat)

◆ colSums() [4/13]

D float32 colSums ( D float32[[2]]  mat)

◆ colSums() [5/13]

D float64 colSums ( D float64[[2]]  mat)

◆ colSums() [6/13]

D int16 colSums ( D int16[[2]]  mat)

◆ colSums() [7/13]

D int32 colSums ( D int32[[2]]  mat)

◆ colSums() [8/13]

D int8 colSums ( D int8[[2]]  mat)

◆ colSums() [9/13]

D int colSums ( D int[[2]]  mat)

◆ colSums() [10/13]

D uint16 colSums ( D uint16[[2]]  mat)

◆ colSums() [11/13]

D uint32 colSums ( D uint32[[2]]  mat)

◆ colSums() [12/13]

D uint8 colSums ( D uint8[[2]]  mat)

◆ colSums() [13/13]

D uint colSums ( D uint[[2]]  mat)