Latest 0.2.0
Homepage https://github.com/ghenania/MGMatrix
License MIT
Platforms ios 8.0, requires ARC
Frameworks Accelerate
Authors

MGMatrix provides a high efficiency implementation of many standards Matrix operations.
It is built over Accelerate iOS and uses vDSP and LAPACK for performances.
MGMatrix interface is easy to use and Debug tools are here too help you during your developments.

How to

Easily instantiate Matrix

MGMatrix* A = [MGMatrix rows:2 columns:2 values:
1.0,   2.0,
3.0,   4.0
];
MGMatrix* B = [MGMatrix identity:2];

Algebric operations

// A^T
[A transpose];

// A^-1
[A invert];

Artithmetic operations

// A + B
[A plus:B];

// A - B
[A minus:B];

// A * B
[A multiplyBy:B];

// A * A^-1
[A multiplyByInverseOf:A];

// A * B^T
[A multiplyByTransposeOf:B];

// 3*A + B
[A scaleBy:3.0 plus:B];

// A * B + C
[A multiplyBy:B plus:C];

// A * B - C
[A multiplyBy:B minus:C];

Pretty logging

// C
[C prettyLogWithName:@"C"];
C = 
( -1.500000  -4.500000 )
( -3.000000  -6.000000 )

Todo

Ask me which opetaions you need and I’ll implement them.

ARC

MGMatrix needs ARC.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Accelerate.Framework
  • iOS 8+

Installation

MGMatrix is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MGMatrix"

Author

Mohamed GHENANIA, [email protected]

License

MGMatrix is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MGMatrix",
    "version": "0.2.0",
    "summary": "High efficiency Matrix operations in Objective-C using Accelerate.framework.",
    "description": "MGMatrix proposed high efficiency Matrix operations in Objective-C which wraps BLAS, LAPACK and vDSP libraries in Accelerate.framework.",
    "homepage": "https://github.com/ghenania/MGMatrix",
    "license": "MIT",
    "authors": {
        "Mohamed GHENANIA": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ghenania/MGMatrix.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MGMatrix": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "Accelerate"
}

Pin It on Pinterest

Share This