Quantcast
Channel: Math.NET Numerics
Viewing all articles
Browse latest Browse all 971

Edited Feature: Modulo operator on matrix and vector [5662]

$
0
0
Hi - Is there a modulus operator on a matrix? More specifically, I'm creating a matrix:

var matrixA = new DenseMatrix(new[,] { { 5.0, 8.0 }, { 17.0, 3.0 } });
and I would like to perform the following operation:
var matrixB = matrixA % 26;
or something to that effect. The application is for encryption (Hill Cipher).
Thanks,
Mike

Viewing all articles
Browse latest Browse all 971

Trending Articles