Package net.algart.math

Examples of net.algart.math.IPoint.toOneDimensional()


                }
                IPoint p = IPoint.valueOf(shift);
                IPoint shifted = from.add(p);
                long cyclicIndex = matrix.cyclicIndex(shifted.coordinates());
                long pseudoCyclicIndex = matrix.pseudoCyclicIndex(shifted.coordinates());
                long oneDimensional = shifted.toOneDimensional(matrix.dimensions(), true);
                if (pseudoCyclicIndex != oneDimensional)
                    throw new AssertionError("Bug A detected: pseudo-cyclic index calculated differently "
                        + "in Matrix and IPoint: " + pseudoCyclicIndex + " and " + oneDimensional);
                long rPseudoCyclicIndex = hugePseudoCyclicIndex(matrix.dimensions(), shifted.coordinates());
                if (pseudoCyclicIndex != rPseudoCyclicIndex)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.