
cc.redberry.groovy.MatrixDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of groovy Show documentation
Show all versions of groovy Show documentation
Redberry is an open source computer algebra system designed for tensor
manipulation. It implements basic computer algebra system routines as well as
complex tools for real computations in physics.
This is the Groovy facade for Redberry. It contains the classes and
categories defining DSL features and syntax notations for common routines from
redebrry-core and redberry-physics.
package cc.redberry.groovy;
import cc.redberry.core.indices.IndexType;
/**
* Matrix signature: index type, number of upper and lower matrix indices
*/
public class MatrixDescriptor {
private final IndexType type;
private final int upper, lower;
public MatrixDescriptor(IndexType type, int upper, int lower) {
this.type = type;
this.upper = upper;
this.lower = lower;
}
public IndexType getType() {
return type;
}
public int getUpper() {
return upper;
}
public int getLower() {
return lower;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy