Skip to content

DMikaia/matrix-op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matrix-op

This project is a small project used for matrix operation and manipulation.

Features

  • Display:
let matrix_a: Matrix<f64> = Matrix::create_with(2, 2, vec![3.0, 4.0, 7.0, 2.0]);

print!("{}", matrix_a);
  • Addition:
let matrix_a: Matrix<f64> = Matrix::create_with(2, 2, vec![3.0, 4.0, 7.0, 2.0]);
let matrix_b: Matrix<f64> = Matrix::create_with(3, 3, vec![3.0, 1.0, 5.0, 2.0]);

print!("{}", matrix_a + matrix_b);
  • Substraction:
let matrix_a: Matrix<f64> = Matrix::create_with(2, 2, vec![3.0, 4.0, 7.0, 2.0]);
let matrix_b: Matrix<f64> = Matrix::create_with(3, 3, vec![3.0, 1.0, 5.0, 2.0]);

print!("{}", matrix_a - matrix_b);
  • Multiplication:
let matrix_a: Matrix<f64> = Matrix::create_with(2, 2, vec![3.0, 4.0, 7.0, 2.0]);
let matrix_b: Matrix<f64> = Matrix::create_with(3, 3, vec![3.0, 1.0, 5.0, 2.0]);

print!("{}", matrix_a * matrix_b);
  • Transpose:
let matrix_a: Matrix<f64> = Matrix::create_with(2, 2, vec![3.0, 4.0, 7.0, 2.0]);

print!("{}", matrix_a.transpose());

About

A Rust project for matrix manipulation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages