Exemplo n.º 1
0
        /// <summary>
        /// 8. Добавление ленточных последовательностей элементов в массив
        /// </summary>
        private static async Task DataSequenceBandAddRowsTests()
        {
            using (SparseMatrixRepSeq sparseMatrixRepSeq = new SparseMatrixRepSeq("8"))
            {
                await sparseMatrixRepSeq.ClearAsync();

                double[] seq0   = new double[] { -5.55, 0, 15, 211, 0.09 };
                var      tuple0 = await sparseMatrixRepSeq.AddRowsSequenceBandAsync(seq0,
                                                                                    5, 2, 15);

                await sparseMatrixRepSeq.PrintRowsFromSequencesBand();
            }
            Console.WriteLine("---Successful end of method---");
        }