LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | List of all members
ndarray::detail::RangeTransformer< T > Class Template Reference

#include <arange.h>

Public Types

typedef int argument_type
 
typedef T result_type
 

Public Member Functions

 RangeTransformer (T const &offset, T const &scale)
 
operator() (int n) const
 

Private Attributes

_offset
 
_scale
 

Detailed Description

template<typename T>
class ndarray::detail::RangeTransformer< T >

Definition at line 97 of file arange.h.

Member Typedef Documentation

template<typename T >
typedef int ndarray::detail::RangeTransformer< T >::argument_type

Definition at line 101 of file arange.h.

template<typename T >
typedef T ndarray::detail::RangeTransformer< T >::result_type

Definition at line 102 of file arange.h.

Constructor & Destructor Documentation

template<typename T >
ndarray::detail::RangeTransformer< T >::RangeTransformer ( T const &  offset,
T const &  scale 
)
inlineexplicit

Definition at line 104 of file arange.h.

Member Function Documentation

template<typename T >
T ndarray::detail::RangeTransformer< T >::operator() ( int  n) const
inline

Definition at line 106 of file arange.h.

106 { return static_cast<T>(n) * _scale + _offset; }

Member Data Documentation

template<typename T >
T ndarray::detail::RangeTransformer< T >::_offset
private

Definition at line 98 of file arange.h.

template<typename T >
T ndarray::detail::RangeTransformer< T >::_scale
private

Definition at line 99 of file arange.h.


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