Пример #1
0
 public virtual void setMatrix(int i0, int i1, int[] c, JamaMatrix X)
 {
     try
     {
         for (int j = i0; j <= i1; j++)
         {
             for (int k = 0; k < c.Length; k++)
             {
                 this.A[j][c[k]] = X.get_Renamed(j - i0, k);
             }
         }
     }
     catch (IndexOutOfRangeException)
     {
         throw new IndexOutOfRangeException("Submatrix indices");
     }
 }
Пример #2
0
 public virtual void setMatrix(int[] r, int j0, int j1, JamaMatrix X)
 {
     try
     {
         for (int i = 0; i < r.Length; i++)
         {
             for (int k = j0; k <= j1; k++)
             {
                 this.A[r[i]][k] = X.get_Renamed(i, k - j0);
             }
         }
     }
     catch (IndexOutOfRangeException)
     {
         throw new IndexOutOfRangeException("Submatrix indices");
     }
 }
Пример #3
0
 public virtual void setMatrix(int[] r, int[] c, JamaMatrix X)
 {
     try
     {
         for (int i = 0; i < r.Length; i++)
         {
             for (int j = 0; j < c.Length; j++)
             {
                 this.A[r[i]][c[j]] = X.get_Renamed(i, j);
             }
         }
     }
     catch (IndexOutOfRangeException)
     {
         throw new IndexOutOfRangeException("Submatrix indices");
     }
 }
Пример #4
0
 public virtual void setMatrix(int i0, int i1, int j0, int j1, JamaMatrix X)
 {
     try
     {
         for (int k = i0; k <= i1; k++)
         {
             for (int l = j0; l <= j1; l++)
             {
                 this.A[k][l] = X.get_Renamed(k - i0, l - j0);
             }
         }
     }
     catch (IndexOutOfRangeException)
     {
         throw new IndexOutOfRangeException("Submatrix indices");
     }
 }
Пример #5
0
		public virtual void setMatrix(int i0, int i1, int[] c, JamaMatrix X)
		{
			try
			{
				for (int j = i0; j <= i1; j++)
				{
					for (int k = 0; k < c.Length; k++)
					{
						this.A[j][c[k]] = X.get_Renamed(j - i0, k);
					}
				}
			}
			catch (IndexOutOfRangeException)
			{
				throw new IndexOutOfRangeException("Submatrix indices");
			}
		}
Пример #6
0
		public virtual void setMatrix(int[] r, int j0, int j1, JamaMatrix X)
		{
			try
			{
				for (int i = 0; i < r.Length; i++)
				{
					for (int k = j0; k <= j1; k++)
					{
						this.A[r[i]][k] = X.get_Renamed(i, k - j0);
					}
				}
			}
			catch (IndexOutOfRangeException)
			{
				throw new IndexOutOfRangeException("Submatrix indices");
			}
		}
Пример #7
0
		public virtual void setMatrix(int[] r, int[] c, JamaMatrix X)
		{
			try
			{
				for (int i = 0; i < r.Length; i++)
				{
					for (int j = 0; j < c.Length; j++)
					{
						this.A[r[i]][c[j]] = X.get_Renamed(i, j);
					}
				}
			}
			catch (IndexOutOfRangeException)
			{
				throw new IndexOutOfRangeException("Submatrix indices");
			}
		}
Пример #8
0
		public virtual void setMatrix(int i0, int i1, int j0, int j1, JamaMatrix X)
		{
			try
			{
				for (int k = i0; k <= i1; k++)
				{
					for (int l = j0; l <= j1; l++)
					{
						this.A[k][l] = X.get_Renamed(k - i0, l - j0);
					}
				}
			}
			catch (IndexOutOfRangeException)
			{
				throw new IndexOutOfRangeException("Submatrix indices");
			}
		}