public final class TensorContraction extends Object implements Comparable<TensorContraction>
| Modifier and Type | Field and Description |
|---|---|
long[] |
indexContractions |
short |
tensorId |
| Constructor and Description |
|---|
TensorContraction(short tensorId,
long[] indexContractions) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TensorContraction o) |
boolean |
containsFreeIndex() |
boolean |
equals(Object obj) |
static short |
getFromIndexId(long contraction) |
static short |
getToIndexId(long contraction) |
static short |
getToTensorId(long contraction) |
int |
hashCode() |
void |
sortContractions() |
String |
toString() |
public final short tensorId
public final long[] indexContractions
public TensorContraction(short tensorId,
long[] indexContractions)
public void sortContractions()
public boolean containsFreeIndex()
public int compareTo(TensorContraction o)
compareTo in interface Comparable<TensorContraction>public static short getFromIndexId(long contraction)
public static short getToIndexId(long contraction)
public static short getToTensorId(long contraction)
Copyright © 2014. All Rights Reserved.