Beispiel #1
0
 public DoubleColumnVector(double[,] rep, MatrixPredicate predicate) : base(rep, SingleColumnPredicate)
 {
     if (!predicate(this))
     {
         throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
     }
 }
Beispiel #2
0
 public IntegerRowVector(int[,] rep, MatrixPredicate predicate) : base(rep, SingleRowPredicate)
 {
     if (!predicate(this))
     {
         throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
     }
 }
 public IdentityCharMatrix(char[,] rep, MatrixPredicate predicate) : base(rep, IdentityPredicate)
 {
     if (!predicate(this))
     {
         throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
     }
 }
 public DiagonalBoolMatrix(bool[,] rep, MatrixPredicate predicate) : base(rep, DiagonalPredicate)
 {
     if (!predicate(this))
     {
         throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
     }
 }
 internal SquareDoubleMatrix(double[,] rep, MatrixPredicate predicate) : base(rep, SquarePredicate)
 {
     if (!predicate(this))
     {
         throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
     }
 }
Beispiel #6
0
        public Matrix(T[,] rep, MatrixPredicate predicate)
        {
            this.row = rep.GetLength(0);
            this.col = rep.GetLength(1);

            if (!predicate(this))
            {
                throw new ArgumentException("The given matrix does not meet the requirements of the specified kind of matrix.");
            }
            if (row < 1 || col < 1)
            {
                throw new NullMatrixException("The size of the matrix is outside the acceptable bounds", row, col);
            }

            mRep = rep;
        }
Beispiel #7
0
 public VariableMatrix(Variable[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public RationalNumberMatrix(RationalNumber[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public CharMatrix(char[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public IdentityBoolMatrix(bool[,] rep, MatrixPredicate predicate) : base(rep, IdentityPredicate)
 {
 }
 public BoolMatrix(bool[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public DoubleMatrix(double[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public IntegerMatrix(int[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }