#include#include NTL::mat_ZZ A(4, 3); //create matrix of integers NTL::ZZ rows = A.NumRows(); //calculate the number of rows std::cout << "The number of rows in A is " << rows << std::endl;
#includeOutput: The number of rows in B is 2 In both examples, we use the mat_ZZ NumRows function to determine the number of rows in the matrix of integers. The NTL package library includes functions and algorithms for various applications in algebraic number theory, arithmetic geometry, cryptography, and coding theory.#include NTL::mat_ZZ B(2, 5); //create matrix of integers NTL::ZZ rows = B.NumRows(); //calculate the number of rows std::cout << "The number of rows in B is " << rows << std::endl;