예제 #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.");
     }
 }
예제 #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.");
     }
 }
예제 #3
0
 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.");
     }
 }
예제 #4
0
 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.");
     }
 }
예제 #5
0
 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.");
     }
 }
예제 #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;
        }
예제 #7
0
 public VariableMatrix(Variable[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
 public RationalNumberMatrix(RationalNumber[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
예제 #9
0
 public CharMatrix(char[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
예제 #10
0
 public IdentityBoolMatrix(bool[,] rep, MatrixPredicate predicate) : base(rep, IdentityPredicate)
 {
 }
예제 #11
0
 public BoolMatrix(bool[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
예제 #12
0
 public DoubleMatrix(double[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }
예제 #13
0
 public IntegerMatrix(int[,] rep, MatrixPredicate predicate) : base(rep, predicate)
 {
 }