Skip to content

Tag Archives: Ruby Matrix-class

The cofactor_expansion() is an inbuilt method in Ruby returns the cofactor_expansion of the given matrix along a given row or column. In other words, it… Read More
The cofactor() is an inbuilt method in Ruby returns the cofactor of the given index. Syntax: mat1.cofactor(i, j) Parameters: The function needs two index i… Read More
The clone() is an inbuilt method in Ruby returns a clone of the given matrix such that the contents are not referenced by identical objects.… Read More
The symmetric?() is an inbuilt method in Ruby returns a boolean value. It returns true if the matrix is symmetric, else it returns false. It… Read More
The / is an inbuilt method in Ruby returns a matrix which has the division of two matrix mat1 and mat2. Here, division means multiplication… Read More
The – is an inbuilt method in Ruby returns a matrix which has the subtraction of two matrix mat1 and mat2. Syntax: mat1 – mat2… Read More
The + is an inbuilt method in Ruby returns a matrix which has the addition of two matrix mat1 and mat2. Syntax: mat1 + mat2… Read More
The ** is an inbuilt method in Ruby returns the matrix after the matrix is multiplied with self N times. It returns the matrix exponentiation… Read More
The conjugate() is an inbuilt method in Ruby returns the conjugate matrix. Syntax: mat1.conjugate() Parameters: The function does not accepts any parameter. Return Value: It… Read More
The row_size() is an inbuilt method in Ruby returns the number of rows in the given matrix. Syntax: mat1.row_size() Parameters: The function does not takes… Read More
The row_count() is an inbuilt method in Ruby returns the number of rows in the given matrix. Syntax: mat1.row_count() Parameters: The function does not takes… Read More
The zero() is an inbuilt method in Ruby returns an N x M zero matrix where each element is zero. Syntax: mat1.zero(N, M) Parameters: The… Read More
The scalar() is an inbuilt method in Ruby returns an N x N diagonal matrix where each diagonal element is value. Syntax: mat1.scalar(N, value) Parameters:… Read More
The I() is an inbuilt method in Ruby returns a Identity matrix of N X N size. Syntax: mat1.I(N) Parameters: The function accepts a mandatory… Read More
The unit() is an inbuilt method in Ruby returns an Identity matrix of N X N size. Syntax: mat1.unit(N) Parameters: The function accepts a mandatory… Read More

Start Your Coding Journey Now!