HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file io.compute.MatrixInt by ben
expand copy to clipboardexpand
uses Compute

/*
{"description" : "This interface represents a integer type matrix stored on an external compute device"}
*/
interface MatrixInt extends ExtMemory {

    /* {"@description" : "Creates the matrix with the given height and width on the given Compute device"} */
    MatrixInt(store Compute device, int height, int width)

    /* {"@description" : "Writes to the matrix starting at index [0][0] up to the height and width of the host 2d-array given by content"} */
    void write(int content[][])

    /* {"@description" : "Reads the entire matrix stored on the external Compute device, returns this as a host 2d-array"} */
    int[][] read()
    
}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n io.compute.MatrixInt -m "reason for update" -u yourUsername
Version 1 (this version) by ben
Notes for this version: Standard Library Initialisation