i have an assignment for oop class and i cannot figure it out. i could implement it with int[,] but it is not allowed. i have to do it with List. i can implement other methods by myself but i need help creating the constructor first. can someone help me with this problem?
Implement the types using classes. Represent the types using sequences of same-type elements (List in C#).
so far i have done this but i think this is incorrect.
public class Matrix
{
private List matrix;
private int size;
public Matrix(int b1, int b2, int n)
{
if (b1 < 0 || b2 > n - 1 || b1 + b2 != n) throw new Exception("Invalid inputs!");
size = n;
}
}
i have an assignment for oop class and i cannot figure it out. i could implement it with int[,] but it is not allowed. i have to do it with List. i can implement other methods by myself but i need help creating the constructor first. can someone help me with this problem?
Implement the types using classes. Represent the types using sequences of same-type elements (List in C#). [img]https://i.stack.imgur.com/zIXp3.png[/img]
[b]so far i have done this but i think this is incorrect.[/b] [code]public class Matrix { private List matrix; private int size; public Matrix(int b1, int b2, int n) { if (b1 < 0 || b2 > n - 1 || b1 + b2 != n) throw new Exception("Invalid inputs!"); size = n; } } [/code]
У меня есть объект json с произвольными значениями внутри. И я хочу десериализовать его на карте. Все в порядке, кроме преобразования целых чисел в двойные. См. пример:
{ id :1, inner_obj :{ key : value , num :666, map :{ key : value }}}...
Я пытаюсь вычислить некоторые производные результатов нейронной сети. Если быть точным, мне нужна матрица Якобиана функции, представленной нейронной сетью, и вторая производная функции по ее входным данным.
Я хочу умножить производную якобиана с...
Я пытаюсь вычислить некоторые производные результатов нейронной сети. Если быть точным, мне нужна матрица Якобиана функции, представленной нейронной сетью, и вторая производная функции по ее входным данным.
Я хочу умножить производную якобиана с...
Я работаю над приложением для iOS, которое должно отображать уценку, в которой LaTeX разделен (...) для встроенных математических вычислений и для блочных математических вычислений. Мне нужно, чтобы встроенные математические вычисления естественным...