예제 #1
0
        public static IVectorMultipliable convert(IMatrixConvertible matrix, string representation)
        {
            switch (representation)
            {
            case "CCS":
                return(new CCS(matrix));

            case "CRS":
                return(new CRS(matrix));

            case "Dense2D":
                return(new Dense2D(matrix));

            case "DenseJagged":
                return(new DenseJagged(matrix));

            case "IncidenceList":
                return(new IncidenceList(matrix));

            default:
                return(null);
            }
        }
예제 #2
0
 public Dense2D(IMatrixConvertible matrixRepresentation)
 {
     init(matrixRepresentation.toMatrix());
 }
예제 #3
0
 public IncidenceList(IMatrixConvertible matrixRepresentation)
 {
     init(matrixRepresentation.toMatrix());
 }