src/utils/matrix/AbstractMatrix.java
public Matrix normAsMatrix(int p) throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(norm(p));
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(norm(p));
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createNormExpression(expressionLock, this, result, p);
            return result;
        }
    }
/**
     * Takes cumulative p- norm (p is number equal or bigger than 1) of this matrix.<br>
     * Applies masking element wise if this matrix is masked.<br>
     *
     * @param p p value for norm.
     * @throws MatrixException throws exception if matrix operation fails.
     * @return norm of matrix.
     */
Takes cumulative p- norm (p is number equal or bigger than 1) of this matrix.
Applies masking element wise if this matrix is masked.

@param p p value for norm.
@throws MatrixException throws exception if matrix operation fails.
@return norm of matrix.
Takes cumulative p - norm ( p is number equal or bigger than 1 ) of this matrix . Applies masking element wise if this matrix is masked . @param p p value for norm . @throws MatrixException throws exception if matrix operation fails . @return norm of matrix .
public Matrix normAsMatrix(int p) throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(norm(p));
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(norm(p));
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createNormExpression(expressionLock, this, result, p);
            return result;
        }
    }
public Matrix normAsMatrix ( int p ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) return constantAsMatrix ( norm ( p ) ) ; else { double expressionLock = procedureFactory . startExpression ( this ) ; Matrix result = constantAsMatrix ( norm ( p ) ) ; result . setProcedureFactory ( procedureFactory ) ; procedureFactory . createNormExpression ( expressionLock , this , result , p ) ; return result ; } }
Takes cumulative p- norm (p is number equal or bigger than 1) of this matrix.<br>
 Applies masking element wise if this matrix is masked.<br>
Takes cumulative p - norm ( p is number equal or bigger than 1 ) of this matrix . <br > Applies masking element wise if this matrix is masked . <br >