Cosan  1.0
Data Analytics Library
template2.cpp File Reference
#include <iostream>
#include <vector>
#include <type_traits>
#include <numeric>
#include <string>
#include <gsl/gsl>
#include <concepts>
#include <cosan/data/CosanData.h>

Go to the source code of this file.

Functions

template<typename NumericType , typename = typename std::enable_if<std::is_arithmetic<NumericType>::value,NumericType>::type>
void f (NumericType a)
 
int main ()
 

Variables

template<typename NumericType >
concept Numeric = std::is_arithmetic<NumericType>::value
 

Function Documentation

◆ f()

template<typename NumericType , typename = typename std::enable_if<std::is_arithmetic<NumericType>::value,NumericType>::type>
void f ( NumericType  a)

Definition at line 26 of file template2.cpp.

26  {
27  std::cout<<a<<std::endl;
28 
29 }

◆ main()

int main ( )

Definition at line 47 of file template2.cpp.

47  {
48  f<std::string>(3);
49  int
51  return 0;
52 }

Variable Documentation

◆ Numeric

template<typename NumericType >
concept Numeric = std::is_arithmetic<NumericType>::value

Definition at line 21 of file template2.cpp.

Cosan::CosanMatrix
Eigen::Matrix< NumericType, Eigen::Dynamic, Eigen::Dynamic > CosanMatrix
Definition: CosanBO.h:37