Skip to content

AlanMet/DartMatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Matrix Library for Dart

A lightweight and efficient matrix manipulation library written in Dart.
Designed for numerical computing, neural network utilities, and general matrix operations.

can be downloaded through pub.dev


๐Ÿš€ Getting Started

Add the library files to your Dart project, then import the needed modules:

import 'matrices/matrix.dart';
import 'matrices/nnutils.dart';
``

## ๐Ÿงฐ Features
Core matrix data structure with standard operations: addition, multiplication, transpose, etc.

Neural network utilities such as activation functions and gradient calculations

Helper utilities for matrix validation and math functions

Support for common linear algebra operations

## ๐Ÿ“– Usage Example
```dart
import 'matrices/matrix.dart';

void main() {
  // Create two matrices
  var A = Matrix([
    [1, 2],
    [3, 4],
  ]);

  var B = Matrix([
    [5, 6],
    [7, 8],
  ]);

  // Multiply matrices
  var C = A * B;

  print('Result:\n$C');
}

๐Ÿ“ File Details

matrix.dart Contains the Matrix class implementation with constructors, operators, and basic matrix algebra methods.

  • matrices.dart Contains extended matrix operations, batch processing, and utility functions operating on multiple matrices.

  • nnutils.dart Neural network helper functions such as activation (ReLU, sigmoid), loss calculations, and derivatives.

  • utils.dart General-purpose utilities like input validation, numeric helpers, and common math operations.

About

Simple matrix module

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages