src/main/java/de/orat/math/cga/impl1/CGA1Multivector1a.java
@Override
    public double[] extractCoordinates(int grade){
        List<ScaledBasisBlade> gblades = extractBlades(new int[]{grade});
        int n =  5;//spaceDim();
        CGA1Metric indexTable = CGA1Metric.getInstance();
        double[] result = new double[Util.binominal(n, grade)];
        for (int i=0;i<gblades.size();i++){
            ScaledBasisBlade basisBlade = gblades.get(i);
            result[indexTable.getIndex(basisBlade.bitmap, grade)] = basisBlade.scale;
        }
        return result;
    }
/**
     * Extract the coordinates from all basis blades of the given grade
     * inclusive 0 values.
     * 
     * Equivalent to k-vector/k-blades.
     * 
     * @param grade grade
     * @return all coordinates corresponding to the given grade inclusive 0 values.
     */
Extract the coordinates from all basis blades of the given grade
inclusive 0 values.

Equivalent to k-vector/k-blades.

@param grade grade
@return all coordinates corresponding to the given grade inclusive 0 values.
Extract the coordinates from all basis blades of the given grade inclusive 0 values . Equivalent to k - vector / k - blades . @param grade grade @return all coordinates corresponding to the given grade inclusive 0 values .
@Override
    public double[] extractCoordinates(int grade){
        List<ScaledBasisBlade> gblades = extractBlades(new int[]{grade});
        int n =  5;
        CGA1Metric indexTable = CGA1Metric.getInstance();
        double[] result = new double[Util.binominal(n, grade)];
        for (int i=0;i<gblades.size();i++){
            ScaledBasisBlade basisBlade = gblades.get(i);
            result[indexTable.getIndex(basisBlade.bitmap, grade)] = basisBlade.scale;
        }
        return result;
    }
@ Override public double [ ] extractCoordinates ( int grade ) { List < ScaledBasisBlade > gblades = extractBlades ( new int [ ] { grade } ) ; int n = 5 ; CGA1Metric indexTable = CGA1Metric . getInstance ( ) ; double [ ] result = new double [ Util . binominal ( n , grade ) ] ; for ( int i = 0 ; i < gblades . size ( ) ; i ++ ) { ScaledBasisBlade basisBlade = gblades . get ( i ) ; result [ indexTable . getIndex ( basisBlade . bitmap , grade ) ] = basisBlade . scale ; } return result ; }
Extract the coordinates from all basis blades of the given grade
 inclusive 0 values.
Extract the coordinates from all basis blades of the given grade inclusive 0 values .
//spaceDim();