All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cc.redberry.groovy.MatrixDescriptor Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.1.10
Show newest version
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