Sha256: c3664e187efce90ae95135a3b7a9ff1c9cb6f7096e64abf5e30d29263a790323

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

module CsrMatrix
    module Exceptions
        # Occurs when user enters a null matrix for processing.
        class NullMatrixException < StandardError; end 

        # Occurs when a sparse matrix operation occurs wherein its dimensions result in the operation being unavailable.   
        class MatrixDimException < StandardError; end      

        # Occurs when the matrix builder expects a specific type; and is provided the wrong type to generate the sparse matrix.
        class MatrixTypeException < StandardError; end 

        # Occurs when the system divides by 0; standard arithmetic error.    
        class DivideByZeroException < StandardError; end   

        # Occurs when index queried is out of range of the matrix.
        class IndexOutOfRangeException < StandardError; end
        
        # Occurs when the sparse matrix is used in processing against a null / nil value.
        class ArgumentNullException < StandardError; end   

        #
        class InvariantError < StandardError; end 
    end # exceptions
end # csrmatrix

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csrmatrix-1.0.1 lib/csrmatrix/exceptions.rb