GEOSX
Static Public Member Functions | List of all members
LvArray::indexing::ConditionalMultiply< B_IS_ONE > Struct Template Reference

A helper struct to multiply two numbers. More...

#include <indexing.hpp>

Static Public Member Functions

template<typename A , typename B >
static constexpr auto multiply (A const a, B const b)
 

Detailed Description

template<bool B_IS_ONE>
struct LvArray::indexing::ConditionalMultiply< B_IS_ONE >

A helper struct to multiply two numbers.

Template Parameters
B_IS_ONEIf true the multiplication is skipped.

Definition at line 37 of file indexing.hpp.

Member Function Documentation

◆ multiply()

template<bool B_IS_ONE>
template<typename A , typename B >
static constexpr auto LvArray::indexing::ConditionalMultiply< B_IS_ONE >::multiply ( A const  a,
B const  b 
)
inlinestatic
Template Parameters
AThe type of a.
Bthe type of b.
Returns
Return the product of a and b.
Parameters
aThe left multiplication operand.
bThe right multiplication operand.

Definition at line 47 of file indexing.hpp.


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