Definition at line 986 of file functions.h.
◆ create() [1/3]
RCP< const Basic > SymEngine::KroneckerDelta::create |
( |
const RCP< const Basic > & |
a, |
|
|
const RCP< const Basic > & |
b |
|
) |
| const |
|
overridevirtual |
◆ create() [2/3]
◆ create() [3/3]
The discrete, or Kronecker, delta function. A function that takes in two integers i
and j
. It returns 0
if i
and j
are not equal or it returns 1
if i
and j
are equal. http://en.wikipedia.org/wiki/Kronecker_delta
Definition at line 108 of file functions.h.
110 SYMENGINE_ASSERT(b.size() == 2);
111 return create(b[0], b[1]);
virtual RCP< const Basic > create(const RCP< const Basic > &a, const RCP< const Basic > &b) const=0
◆ is_canonical()
bool SymEngine::KroneckerDelta::is_canonical |
( |
const RCP< const Basic > & |
i, |
|
|
const RCP< const Basic > & |
j |
|
) |
| const |
- Returns
true
if canonical
Definition at line 2655 of file functions.cpp.
2658 RCP<const Basic> diff =
expand(
sub(i, j));
2659 if (
eq(*diff, *zero)) {
bool is_a_Number(const Basic &b)
bool eq(const Basic &a, const Basic &b)
Checks equality for a and b
RCP< const Basic > sub(const RCP< const Basic > &a, const RCP< const Basic > &b)
Substracts b from a.
RCP< const Basic > expand(const RCP< const Basic > &self, bool deep=true)
Expands self
◆ type_code_id
const TypeID SymEngine::KroneckerDelta::type_code_id = SYMENGINE_KRONECKERDELTA |
|
static |
Type_code_id shared by all instances
Definition at line 996 of file functions.h.
The documentation for this class was generated from the following files:
- /home/runner/work/symengine/symengine/symengine/functions.h
- /home/runner/work/symengine/symengine/symengine/functions.cpp