Represents a matrix with GPU-accelerated operations.
void add_vector(const Vector &v)
Adds a vector to each column of the matrix.
Matrix copy() const
Creates a deep copy of the matrix.
Matrix multiply(const Matrix &other) const
Multiplies this matrix with another matrix.
Matrix relu() const
Applies the ReLU activation function to the matrix.
Matrix softmax() const
Applies the softmax function to the matrix column-wise.
void forward(const Matrix &X)
Perform forward propagation through the network.
Defines the NeuralNetwork class for a simple feedforward neural network.