SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions | Variables
stdlib.sc File Reference

Functions

uint sizeof (bool x)
 
uint sizeof (uint8 x)
 
uint sizeof (uint16 x)
 
uint sizeof (uint32 x)
 
uint sizeof (uint64 x)
 
uint sizeof (int8 x)
 
uint sizeof (int16 x)
 
uint sizeof (int32 x)
 
uint sizeof (int64 x)
 
uint sizeof (float32 x)
 
uint sizeof (float64 x)
 
string clientAuth ()
 
string argument (string name)
 
template<type T, dim N>
void publish (string name, T[[N]] val)
 
void publish (string name, string str)
 
template<domain D, type T, dim N>
D T flatten (D T[[N]] arr)
 
template<domain D1, domain D2, type T1, type T2, dim N>
bool shapesAreEqual (D1 T1[[N]] first, D2 T2[[N]] second)
 
template<domain D1, domain D2, domain D3, type T1, type T2, type T3, dim N>
bool shapesAreEqual (D1 T1[[N]] first, D2 T2[[N]] second, D3 T3[[N]] third)
 
template<type T>
string arrayToString (T scalar)
 
template<type T>
string arrayToString (T[[1]] vec)
 
template<type T, dim N>
string arrayToString (T[[N]] arr)
 
template<type T>
void printVector (T[[1]] vec)
 
template<type T>
void printMatrix (T[[2]] mat)
 
template<type T>
void print3dArray (T[[3]] arr)
 
template<type T, dim N>
void printArray (T[[N]] arr)
 
template<domain D>
D bool any (D bool b)
 
template<domain D>
D bool any (D bool[[1]] vec)
 
template<domain D, dim N>
D bool any (D bool[[N]] arr)
 
template<domain D>
D bool any (D bool[[1]] vec, uint k)
 
template<domain D>
D bool all (D bool b)
 
template<domain D>
D bool all (D bool[[1]] vec)
 
template<domain D, dim N>
D bool all (D bool[[N]] arr)
 
template<domain D>
D bool all (D bool[[1]] vec, uint k)
 
template<domain D, type T>
D T sum (D T x)
 
template<domain D>
D uint sum (D bool[[1]] x)
 
template<domain D>
D uint8 sum (D uint8[[1]] x)
 
template<domain D>
D uint16 sum (D uint16[[1]] x)
 
template<domain D>
D uint32 sum (D uint32[[1]] x)
 
template<domain D>
D uint sum (D uint[[1]] x)
 
template<domain D>
D int8 sum (D int8[[1]] x)
 
template<domain D>
D int16 sum (D int16[[1]] x)
 
template<domain D>
D int32 sum (D int32[[1]] x)
 
template<domain D>
D int sum (D int[[1]] x)
 
template<domain D>
D float32 sum (D float32[[1]] x)
 
template<domain D>
D float64 sum (D float64[[1]] x)
 
template<domain D>
D uint sum (D bool[[1]] vec, uint k)
 
template<domain D>
D uint8 sum (D uint8[[1]] vec, uint k)
 
template<domain D>
D uint16 sum (D uint16[[1]] vec, uint k)
 
template<domain D>
D uint32 sum (D uint32[[1]] vec, uint k)
 
template<domain D>
D uint sum (D uint[[1]] vec, uint k)
 
template<domain D>
D int8 sum (D int8[[1]] vec, uint k)
 
template<domain D>
D int16 sum (D int16[[1]] vec, uint k)
 
template<domain D>
D int32 sum (D int32[[1]] vec, uint k)
 
template<domain D>
D int sum (D int[[1]] vec, uint k)
 
template<domain D>
D float32 sum (D float32[[1]] vec, uint k)
 
template<domain D>
D float64 sum (D float64[[1]] vec, uint k)
 
template<domain D, type T>
D T product (D T x)
 
template<domain D>
D uint8 product (D uint8[[1]] x)
 
template<domain D>
D uint16 product (D uint16[[1]] x)
 
template<domain D>
D uint32 product (D uint32[[1]] x)
 
template<domain D>
D uint product (D uint[[1]] x)
 
template<domain D>
D int8 product (D int8[[1]] x)
 
template<domain D>
D int16 product (D int16[[1]] x)
 
template<domain D>
D int32 product (D int32[[1]] x)
 
template<domain D>
D int product (D int[[1]] x)
 
template<domain D>
D float32 product (D float32[[1]] x)
 
template<domain D>
D float64 product (D float64[[1]] x)
 
template<domain D>
D uint8 product (D uint8[[1]] vec, uint k)
 
template<domain D>
D uint16 product (D uint16[[1]] vec, uint k)
 
template<domain D>
D uint32 product (D uint32[[1]] vec, uint k)
 
template<domain D>
D uint product (D uint[[1]] vec, uint k)
 
template<domain D>
D int8 product (D int8[[1]] vec, uint k)
 
template<domain D>
D int16 product (D int16[[1]] vec, uint k)
 
template<domain D>
D int32 product (D int32[[1]] vec, uint k)
 
template<domain D>
D int product (D int[[1]] vec, uint k)
 
template<domain D>
D float32 product (D float32[[1]] vec, uint k)
 
template<domain D>
D float64 product (D float64[[1]] vec, uint k)
 
template<domain D, type T>
D T min (D T scalar)
 
template<type T>
min (T[[1]] vec)
 
template<domain D, type T>
D T min (D T[[1]] vec)
 
template<type T, dim N>
min (T[[N]] arr)
 
template<domain D, type T>
D T min (D T[[1]] x, D T[[1]] y)
 
template<domain D, type T>
D T min (D T[[1]] vec, uint k)
 
template<domain D, type T>
D T max (D T scalar)
 
template<type T>
max (T[[1]] vec)
 
template<domain D, type T>
D T max (D T[[1]] vec)
 
template<type T, dim N>
max (T[[N]] arr)
 
template<domain D, type T>
D T max (D T[[1]] x, D T[[1]] y)
 
template<domain D, type T>
D T max (D T[[1]] vec, uint k)
 
template<dim N>
int8 abs (int8[[N]] x)
 
template<dim N>
int16 abs (int16[[N]] x)
 
template<dim N>
int32 abs (int32[[N]] x)
 
template<dim N>
int64 abs (int64[[N]] x)
 
template<dim N>
float32 abs (float32[[N]] x)
 
template<dim N>
float64 abs (float64[[N]] x)
 
int round (float32 x)
 
int round (float64 x)
 
template<dim N>
float32 sqrt (float32[[N]] x)
 
template<dim N>
float64 sqrt (float64[[N]] x)
 
template<dim N>
float32 sin (float32[[N]] x)
 
template<dim N>
float64 sin (float64[[N]] x)
 
template<dim N>
float32 erf (float32[[N]] x)
 
template<dim N>
float64 erf (float64[[N]] x)
 
template<dim N>
float32 exp (float32[[N]] x)
 
template<dim N>
float64 exp (float64[[N]] x)
 
template<dim N>
float32 ln (float32[[N]] x)
 
template<dim N>
float64 ln (float64[[N]] x)
 
template<domain D>
D bool isNegligible (D float32 a)
 
template<domain D>
D bool isNegligible (D float64 a)
 
template<domain D>
D bool isNegligible (D float32[[1]] a)
 
template<domain D>
D bool isNegligible (D float64[[1]] a)
 
string substring (string x, uint s, uint e)
 
bool isPrefixOf (string a, string b)
 
bool isSuffixOf (string a, string b)
 
template<domain D>
D uint iota (uint n)
 
template<type T>
sort (T[[1]] x)
 
template<type T>
sort (T[[1]] x, bool ascending)
 

Variables

uint8 UINT8_MAX = 255
 
uint8 UINT8_MIN = 0
 
uint16 UINT16_MAX = 65535
 
uint16 UINT16_MIN = 0
 
uint32 UINT32_MAX = 4294967295
 
uint32 UINT32_MIN = 0
 
uint64 UINT64_MAX = 18446744073709551615
 
uint64 UINT64_MIN = 0
 
int8 INT8_MAX = 127
 
int8 INT8_MIN = -128
 
int16 INT16_MAX = 32767
 
int16 INT16_MIN = -32768
 
int32 INT32_MAX = 2147483647
 
int32 INT32_MIN = -2147483648
 
int64 INT64_MAX = 9223372036854775807
 
int64 INT64_MIN = -9223372036854775808
 

Variable Documentation

◆ INT16_MAX

int16 INT16_MAX = 32767

◆ INT16_MIN

int16 INT16_MIN = -32768

◆ INT32_MAX

int32 INT32_MAX = 2147483647

◆ INT32_MIN

int32 INT32_MIN = -2147483648

◆ INT64_MAX

int64 INT64_MAX = 9223372036854775807

◆ INT64_MIN

int64 INT64_MIN = -9223372036854775808

◆ INT8_MAX

int8 INT8_MAX = 127

◆ INT8_MIN

int8 INT8_MIN = -128

◆ UINT16_MAX

uint16 UINT16_MAX = 65535

◆ UINT16_MIN

uint16 UINT16_MIN = 0

◆ UINT32_MAX

uint32 UINT32_MAX = 4294967295

◆ UINT32_MIN

uint32 UINT32_MIN = 0

◆ UINT64_MAX

uint64 UINT64_MAX = 18446744073709551615

◆ UINT64_MIN

uint64 UINT64_MIN = 0

◆ UINT8_MAX

uint8 UINT8_MAX = 255

◆ UINT8_MIN

uint8 UINT8_MIN = 0