Package fr.soleil.data.container.matrix

Examples of fr.soleil.data.container.matrix.DoubleMatrix


                    TangoAttribute tangoAttribute = new TangoAttribute(scanServerDeviceName + "/" + attributeName);
                    doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if ((doubleValues != null) && (x < dimX) && (y < dimY)) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                } catch (DevFailed e) {
                    LOGGER.error("Cannot read {}/{} {}", scanServerDeviceName, attributeName,
                            DevFailedUtils.toString(e));
                    LOGGER.debug("Stack trace", e);
View Full Code Here


                            + attributeName);
                    double[] doubleValues = (double[]) tangoAttribute.readArray(Double.TYPE);
                    int dimX = tangoAttribute.getDimX();
                    int dimY = tangoAttribute.getDimY();
                    if (doubleValues != null && x < dimX && y < dimY) {
                        DoubleMatrix matrix = new DoubleMatrix();
                        matrix.setFlatValue(doubleValues, dimY, dimX);
                        value = matrix.getValueAt(y, x);
                    }
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                }
View Full Code Here

        for (int i = 0; i < l; i++) {
            for (int j = 0; j < c; j++) {
                matrixTable[i][j] = Double.valueOf(i * c + j);
            }
        }
        DoubleMatrix result = new DoubleMatrix();
        try {
            result.setValue(matrixTable);
        }
        catch (UnsupportedDataTypeException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
View Full Code Here

        final Button setNumberMatrixButton = new Button(optionGroup, SWT.PUSH);
        setNumberMatrixButton.setText("setNumberMatrix");
        setNumberMatrixButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                DoubleMatrix data = generateData();
                theComponent.setNumberMatrix(data.getValue());
            }
        });
    }
View Full Code Here

        for (int i = 0; i < l; i++) {
            for (int j = 0; j < c; j++) {
                matrixTable[i][j] = Double.valueOf(i * c + j);
            }
        }
        DoubleMatrix result = new DoubleMatrix();
        try {
            result.setValue(matrixTable);
        }
        catch (UnsupportedDataTypeException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of fr.soleil.data.container.matrix.DoubleMatrix

Copyright © 2018 www.massapicom. 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.