Sha256: a9ed1499ed6a6cd6a59fd6f131b55b0ce33dd191cf24f66ff7a26e57b7e8b19a

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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 

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

Version data entries

1 entries across 1 versions & 1 rubygems

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