Public Types | Static Public Attributes | List of all members
vnl_numeric_traits< short > Class Template Reference

#include <vnl_numeric_traits.h>

Inheritance diagram for vnl_numeric_traits< short >:
Inheritance graph
[legend]

Public Types

typedef unsigned short abs_t
 Return value of abs(). More...
 
typedef int double_t
 Name of a type twice as long as this one for accumulators and products. More...
 
typedef double real_t
 Name of type which results from multiplying this type with a double. More...
 

Static Public Attributes

static constexpr short zero = 0
 Additive identity. More...
 
static constexpr short one = 1
 Multiplicative identity. More...
 
static constexpr short maxval = 0x7fff
 Maximum value which this type can assume. More...
 

Detailed Description

template<>
class vnl_numeric_traits< short >

Definition at line 164 of file vnl_numeric_traits.h.

Member Typedef Documentation

◆ abs_t

typedef unsigned short vnl_numeric_traits< short >::abs_t

Return value of abs().

Definition at line 174 of file vnl_numeric_traits.h.

◆ double_t

typedef int vnl_numeric_traits< short >::double_t

Name of a type twice as long as this one for accumulators and products.

Definition at line 176 of file vnl_numeric_traits.h.

◆ real_t

typedef double vnl_numeric_traits< short >::real_t

Name of type which results from multiplying this type with a double.

Definition at line 178 of file vnl_numeric_traits.h.

Member Data Documentation

◆ maxval

constexpr short vnl_numeric_traits< short >::maxval = 0x7fff
static

Maximum value which this type can assume.

Definition at line 172 of file vnl_numeric_traits.h.

◆ one

constexpr short vnl_numeric_traits< short >::one = 1
static

Multiplicative identity.

Definition at line 170 of file vnl_numeric_traits.h.

◆ zero

constexpr short vnl_numeric_traits< short >::zero = 0
static

Additive identity.

Definition at line 168 of file vnl_numeric_traits.h.


The documentation for this class was generated from the following files: