struct

ORTools::Sat::DenseMatrixProto

Inherits Protobuf::Message < Struct < Value < Object

Constants

FIELDS = {1 => {name: :num_rows, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :num_cols, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :entries, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : Protobuf::Buffer)
new(num_rows : Int32 | Nil = nil, num_cols : Int32 | Nil = nil, entries : Array(Int32) | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
entries
entries=(entries : Array(Int32) | Nil)
num_cols
num_cols=(num_cols : Int32 | Nil)
num_rows
num_rows=(num_rows : Int32 | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf